CN116820417B - Software function control method and device, storage medium and electronic device - Google Patents
Software function control method and device, storage medium and electronic device Download PDFInfo
- Publication number
- CN116820417B CN116820417B CN202311084472.5A CN202311084472A CN116820417B CN 116820417 B CN116820417 B CN 116820417B CN 202311084472 A CN202311084472 A CN 202311084472A CN 116820417 B CN116820417 B CN 116820417B
- Authority
- CN
- China
- Prior art keywords
- information
- target
- data
- action
- determining
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 230000009471 action Effects 0.000 claims abstract description 116
- 239000011159 matrix material Substances 0.000 claims abstract description 82
- 230000003993 interaction Effects 0.000 claims abstract description 76
- 238000012545 processing Methods 0.000 claims abstract description 34
- 230000006870 function Effects 0.000 claims description 99
- 238000004590 computer program Methods 0.000 claims description 16
- 230000002159 abnormal effect Effects 0.000 claims description 12
- 230000002452 interceptive effect Effects 0.000 claims description 12
- 238000009434 installation Methods 0.000 claims description 10
- 238000005538 encapsulation Methods 0.000 claims description 8
- 230000000694 effects Effects 0.000 abstract description 2
- 230000008859 change Effects 0.000 description 14
- 230000008569 process Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 238000011161 development Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000000306 recurrent effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/24—Object-oriented
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4488—Object-oriented
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the application provides a software function control method, a device, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring software function information of a system; acquiring element information of target software according to the software function information; calling a target interface to execute target operation on target software based on the element information so as to realize the function of the target software; determining an element action result and a data interaction result according to the operation result; and respectively carrying out matching processing on the element action data matrix and the data interaction matrix, and determining that the target operation is in a normal state under the condition that a matching result meets a preset condition. According to the application, the related operation can be carried out on the target software by calling the related interfaces only by acquiring the software function information and the corresponding element information of the source APP, so that the problem of high software function control difficulty is solved, and the effects of reducing the source APP software function control difficulty and improving the source APP software development efficiency are achieved.
Description
Technical Field
The embodiment of the application relates to the technical field of software function control, in particular to a software function control method, a device, a storage medium and an electronic device.
Background
The current control method of the APP on the mobile phone is mainly realized by defining an external access channel, and specifically comprises the following two steps:
1. defining an external Intent;
2. defining an open package and a class name, and defining an exported flag;
the method needs additional development of the source APP on one hand, and needs a specific mode and format of externally agreed data access on the other hand, and version variation can cause unavailability of the method, so that more factors need to be considered when relevant source APP development is carried out, and development difficulty is increased.
There is no better solution to the above problems.
Disclosure of Invention
The embodiment of the application provides a software function control method, a device, a storage medium and an electronic device, which are used for at least solving the problem of high control difficulty of source APP software functions in the related art.
According to an embodiment of the present application, there is provided a software function control method including:
acquiring software function information of a system;
acquiring element information of target software according to the software function information;
invoking a target interface to perform a target operation on the target software based on the element information to realize a target software function, wherein the system comprises a plurality of target software;
determining an element action result and a data interaction result according to the operation result, wherein the element action result comprises an element action data matrix, and the data interaction result comprises a data interaction matrix;
and respectively carrying out matching processing on the element action data matrix and the data interaction matrix, and determining that the target operation is in a normal state under the condition that a matching result meets a preset condition.
In one exemplary embodiment of the present application,
the step of determining the element action result according to the operation result comprises the following steps:
determining element action information according to a target operation result, wherein the element action information comprises action path information and action characteristic information of the element information, and the action characteristic information at least comprises element action time and element action queue distribution information;
determining the element action data matrix based on the action path information and the action feature information;
the matching processing of the element action data matrix comprises the following steps:
and carrying out first matching processing on the element action data matrix through a preset first model, and determining that the target operation is in a normal state under the condition that a first matching result meets a first matrix condition, or determining that the target operation is in an abnormal state.
In one exemplary embodiment of the present application,
the determining the data interaction result according to the operation result comprises the following steps:
according to a target operation result, interface interaction information is determined, wherein the interface interaction information comprises data period information and data characteristic information of the target interface, and the data characteristic information at least comprises data queue distribution information of a data queue interacted with the target interface;
determining a data interaction matrix based on the data period information and the data characteristic information;
the matching processing of the data interaction matrix comprises the following steps:
and carrying out second matching processing on the data interaction matrix through a preset second model, and determining that the target operation is in a normal state under the condition that a second matching result meets a second matrix condition, or determining that the target operation is in an abnormal state.
In an exemplary embodiment, the acquiring the element information of the target software according to the software function information includes at least any one of the following:
acquiring local list information according to the software function information, wherein the local list information is built in a local installation package in advance; acquiring the element information based on the local manifest information;
or alternatively, the first and second heat exchangers may be,
acquiring Internet resource address information according to the software function information; and acquiring the element information based on the Internet resource address information.
In an exemplary embodiment, the invoking the target interface to perform the target operation on the target software based on the element information includes at least any one of:
acquiring first software function information; calling a first interface to execute a first operation according to the first software function information;
or alternatively, the first and second heat exchangers may be,
acquiring functional interaction object information; based on the interactive object information, carrying out encapsulation processing on the target function class to obtain a target operation object; and acquiring a second interface through the target operation object to execute a second operation, wherein the acquisition of the second interface is executed according to the acquired operation instruction.
According to another embodiment of the present application, there is provided a software function control apparatus including:
the function information acquisition module is used for acquiring the software function information of the system;
the element information acquisition module is used for acquiring element information of target software according to the software function information, wherein the system comprises a plurality of target software;
the target operation module is used for calling a target interface to execute target operation on the target software based on the element information so as to realize the function of the target software;
the result determining module is used for determining an element action result and a data interaction result according to the operation result, wherein the element action result comprises an element action data matrix, and the data interaction result comprises a data interaction matrix;
and the state judging module is used for respectively carrying out matching processing on the element action data matrix and the data interaction matrix, and determining that the target operation is in a normal state under the condition that a matching result meets a preset condition.
In an exemplary embodiment, the element information acquisition module includes at least any one of the following:
the first element acquisition unit is used for acquiring local list information according to the software function information, wherein the local list information is preset in a local installation package; acquiring the element information based on the local manifest information;
the second element acquisition unit is used for acquiring internet resource address information according to the software function information; and acquiring the element information based on the Internet resource address information.
In an exemplary embodiment, the target operation module includes at least any one of:
the first operation unit is used for acquiring first software function information; calling a first interface to execute a first operation according to the first software function information;
the second operation unit is used for acquiring the functional interaction object information; based on the interactive object information, carrying out encapsulation processing on the target function class to obtain a target operation object; and acquiring a second interface through the target operation object to execute a second operation, wherein the second interface is acquired according to an operation instruction.
According to a further embodiment of the application, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the application, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the application, the related operation can be carried out on the target software by calling the related interfaces only by acquiring the software function information and the corresponding element information of the source APP, the problems of version change and the like are not required to be considered, and different data access modes and formats can be adapted, so that the control difficulty of the software function is reduced, the problem of high control difficulty of the source APP software function is solved, and the effects of reducing the control difficulty of the source APP software function and improving the development efficiency of the source APP software are achieved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a mobile terminal of a software function control method according to an embodiment of the present application;
FIG. 2 is a flow chart of a software function control method according to an embodiment of the application;
fig. 3 is a block diagram of a software function control apparatus according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal according to a software function control method according to an embodiment of the present application. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a software function control method in an embodiment of the present application, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In this embodiment, a software function control method is provided, fig. 2 is a flowchart of a software function control method according to an embodiment of the present application, and as shown in fig. 2, the flowchart includes the following steps:
step S201, acquiring software function information of a system;
in this embodiment, the relevant information of a function to be controlled of a certain software in the system is acquired, so that the function can be conveniently controlled.
The software function information comprises APP information of all or a specific certain software APP in the system, and specifically comprises information such as installation package name, version number, system IP of the APP, interface document, help document and the like; before acquiring the software function and information, it is necessary to first start an external control APP that controls the APP, initialize the related auxiliary function interface SDK, and acquire control authority of the operation to allow control of the related function, so as to ensure that the related operation can be accurately and smoothly executed.
Step S202, acquiring element information of target software according to the software function information, wherein the system comprises a plurality of target software;
in this embodiment, after the software function information is determined, the information such as the interface element of the related function software is determined through the system path corresponding to the software function information, so as to facilitate and accurately control the related software function.
The element information includes, but is not limited to, interface element list of the controlled APP, element type, element attribute, text type of the element displayed, element state, hierarchical relationship among the elements, element action value and action path, element interaction event and state change, and the like.
Step S203, based on the element information, a target interface is called to execute target operation on the target software so as to realize the function of the target software;
in this embodiment, because the element information and the software information provide the information such as the element change path and the change state, after the element information and the software information are determined, the relevant interface can be directly called to control the element information corresponding to the relevant software function according to the relevant path and the state change condition, and the version change and the data access mode and format are not required to be considered, so that the software function control capability is enhanced.
The target operation includes (but is not limited to) opening a designated interface, acquiring an operation object, calling the operation object to finish the designated operation, switching the interface, returning and the like.
Step S204, determining an element action result and a data interaction result according to the operation result, wherein the element action result comprises an element action data matrix, and the data interaction result comprises a data interaction matrix;
in this embodiment, after the target operation is executed, the operation result may be checked back to detect whether the target operation is accurate; in the process of executing the target operation, the change process of the elements and the characteristics of the data interacted with the related interfaces can be represented in a matrix mode, and whether the target operation is correct or not can be judged by judging the change of the matrixes.
The element action data matrix may be (but not limited to) composed of action path information and action characteristic information of element information when the target operation is performed, and the data interaction matrix may be (but not limited to) composed of data cycle information and data characteristic information of data interaction with the target interface.
Step S205, performing matching processing on the element action data matrix and the data interaction matrix, and determining that the target operation is in a normal state when the matching result meets a preset condition.
In this embodiment, the element action data matrix and the data interaction matrix are respectively compared and matched with the data matrix under normal operation, so as to quickly determine whether the related operation is normal.
The main execution body of the above steps may be, but not limited to, a base station, a terminal, and the like.
In an alternative embodiment of the present application,
the step of determining the element action result according to the operation result comprises the following steps:
step S2041, determining element action information according to a target operation result, wherein the element action information comprises action path information and action characteristic information of the element information, and the action characteristic information at least comprises element action time and element action queue distribution information;
step S2042 of determining the element motion data matrix based on the motion path information and the motion feature information;
the matching processing of the element action data matrix comprises the following steps:
step S2051, performing a first matching process on the element action data matrix through a preset first model, and determining that the target operation is in a normal state if the first matching result meets a first matrix condition, or determining that the target operation is in an abnormal state if the first matching result meets the first matrix condition.
In this embodiment, in general, when the target operation is executed, the state change, the call path, and the like of the corresponding element are fixed, so that by detecting the element action path and the action feature in the execution process of the target operation, it can be determined whether the target operation is normal.
The action path information comprises path information of data interaction when relevant elements change and an interface is called when target operation is executed; the element action time includes (but is not limited to) information such as change time node, state change frequency and period, effective period, enqueue/dequeue time node and waiting time of element action queue and the like of related element in executing target operation, and the element action queue distribution information includesInformation such as the length of an action queue, the length distribution of the action queue, the time distribution of the action queue in and out of the action queue, and the like of relevant elements when the target operation is executed; under the condition that the related data information is obtained, converting the related data information into a matrix according to a preset rule, for example, for the length of a queue, the length of the queue byte is greater than 32 and less than 64 and is 1, otherwise, the length of the queue byte is 0; for the action path, the A-B-C nodes respectively correspond to 0-1-2; for the queue dequeuing time, more than 1s is 1, otherwise, 0, and the like, at this time, an element action data matrix consisting of element action information and element queue information can be obtained:;
the first model comprises a fuzzy matching model, a weight matching model, a text matching model (such as TF-IDF, word embedding model), a time sequence model (such as LSTM, GRU and the like), a sequence model (such as Transformer and the like) and other model combinations, and the selection of a specific model can be selected according to specific situations; the first matching processing comprises the step of performing matching processing on element action data matrixes by using a first model obtained by training matrixes consisting of element action information and element queue information corresponding to target operation under normal conditions, and determining that the first matrixes meet first matrix conditions when the first model can be matched with the first matrixes; or performing matrix comparison matching on the submatrices corresponding to the motion path information and the submatrices corresponding to the path information under the preset normal operation, and simultaneously matching the submatrices corresponding to the element motion time and the element motion queue distribution information with the submatrices corresponding to the preset motion time and the queue distribution, wherein the preset motion time and the preset queue distribution can be obtained through big data statistics; correspondingly, the path condition comprises that the action path is the same as the preset path information or the submatrix calculation result is the same as the preset result, and the action characteristic condition comprises that the action characteristic information is the same as the preset action time and the queue distribution is the same as the preset result or the submatrix calculation result is the same as the preset result.
For example, when an operation is performed, the length of each queue of the first element is 32 bytes, the maximum queue length can be 64 bytes considering different file format conversions, the distribution of different queues is (1-0) -1-1-0 (bytes greater than 32 and less than 64 are 1, otherwise 0, the interval between brackets indicates that the queue interval is smaller, the matrix indicates that 1-1-1-0 can be present), the corresponding path change is a-B-C, and the actually detected queue distribution is 0- (1-0) -1-0 (the matrix indicates that 0-1-1-0 can be present), the corresponding path change is a-B-C, and it can be determined that the target operation may have an abnormality.
It should be noted that, when the length of the data queue exceeds the expected value or the time of the data going into and out of the queue does not meet the expected value, the target manipulation is judged to be in an abnormal condition, and in this case, an operation alarm can be performed through mechanisms such as abnormal processing, error code processing, log recording and the like so as to remind a worker to adjust related operations.
In an alternative embodiment of the present application,
the determining the data interaction result according to the operation result comprises the following steps:
step S2043, determining interface interaction information according to a target operation result, wherein the interface interaction information comprises data cycle information and data characteristic information of the target interface, and the data characteristic information at least comprises data queue distribution information of a data queue interacted with the target interface;
step S2044, determining a data interaction matrix based on the data period information and the data characteristic information;
the matching processing of the data interaction matrix comprises the following steps:
step S2052, performing a second matching process on the data interaction matrix through a preset second model, and determining that the target operation is in a normal state if the second matching result meets a second matrix condition, or determining that the target operation is in an abnormal state.
In this embodiment, in general, when a target operation is executed, since the operation is specified, a data interaction period and a data queue for interacting with an associated interface in a specific system are fixed (a certain float is allowed in consideration of temporary system conversion), so that it is only necessary to detect the interaction period and the data queue characteristics of the associated data and the interface to determine whether the associated operation is correct.
The data period information includes (but is not limited to) information such as an interaction period, interaction time consumption and the like of the data interaction process of the target interface, and the data queue distribution information includes information such as a data queue length, a data queue length distribution, a time distribution of a data queue in and out of the data queue and the like of related data of the data interaction with the target interface; the second models comprise a time sequence model (such as LSTM, GRU and the like) and a sequence model (such as transfomer and the like) and the like; the method comprises the steps that the method is similar to an element action matrix, and under the condition that related data information is obtained, related interaction information is converted into a matrix according to a preset rule; the second matrix condition includes that the data period information is the same as the preset data interaction period (namely, the corresponding submatrices are the same or the calculation results are the same), and the data characteristic condition includes that the characteristics such as the queue length of related data for data interaction are the same as the preset data characteristics.
In an optional embodiment, the acquiring the element information of the target software according to the software function information includes at least any one of the following:
step S2021, obtaining local list information according to the software function information, wherein the local list information is pre-built in a local installation package; acquiring the element information based on the local manifest information;
in this embodiment, the efficiency of operating the software function can be improved by obtaining the local manifest information through the local installation package, and related information does not need to be loaded from the outside.
Or alternatively, the first and second heat exchangers may be,
step S2022, according to the software function information, obtaining Internet resource address information; and acquiring the element information based on the Internet resource address information.
In this embodiment, obtaining element information based on internet resource address information can reduce the size of an installation packet, thereby facilitating transmission of the installation packet.
The internet resource address information includes url (Uniform Resource Locator ), which is a concise representation of the location and access method of the resources available on the internet, and is the address of the standard resources on the internet. Each file on the internet has a unique url that contains information indicating the location of the file and how it is handled by the browser.
In an optional embodiment, the calling a target interface to perform a target operation on the target software based on the element information includes at least any one of:
step S2031, acquiring first software function information; calling a first interface to execute a first operation according to the first software function information;
in this embodiment, the first software function information includes information such as a specified interface class name and a corresponding id name, and the first operation includes opening a function interface of the specified software.
Or alternatively, the first and second heat exchangers may be,
step S2032, obtaining function interaction object information; based on the interactive object information, carrying out encapsulation processing on the target function class to obtain a target operation object; and acquiring a second interface through the target operation object to execute a second operation, wherein the second interface is acquired according to an operation instruction.
In this embodiment, the interactive object information includes information such as a specified id, a content text, an interface path, etc. for performing the interactive operation, and correspondingly, the information may be obtained by id or content text retrieval, interface path retrieval, etc.; the interactive object corresponding to the interactive object information is an interactive object defined in the auxiliary function SDK; the encapsulation processing comprises encapsulation based on auxiliary function accessibilityNodeInfo class, the interactive object supports access of basic controls such as buttons, text boxes, input boxes, list boxes and pictures, and also supports two interfaces for externally providing attribute management and operation methods, wherein the second operation comprises (but is not limited to) access of basic controls such as buttons, text boxes, input boxes, list boxes and pictures, and attribute management and related operation according to external instructions, and the second interface comprises (but is not limited to) two interfaces of attribute management and operation methods.
In an alternative embodiment, after the acquiring the element information of the target software according to the software function information, the method further includes:
step S2023, obtaining a voice command, wherein the voice command is used for indicating to execute a target operation on the target software, and the voice command is obtained after recognition analysis of external voice;
in this embodiment, in order to facilitate the user to perform related operations, a voice command may be input by means of voice input, and then semantic analysis and recognition are performed on the input voice command by means of voice development programming software and related algorithm models, so as to determine the voice command to be executed.
The correlation algorithm model may be a hidden markov model, a recurrent neural network (Recurrent Neural Network, RNN), or the like.
Step S2024, determining target element information based on the voice instruction, wherein the element information includes the target element information;
in this embodiment, the software elements that need to perform the operation are redetermined according to the voice command, so that the related operation is performed accurately.
The process of determining the target element information may be reloading the interface element list, or searching based on the original interface element list.
Step S2025, based on the target element information, calls a target interface to execute a target operation on the target software.
In this embodiment, after determining the software function that needs to execute the target operation, the auxiliary function programming interface is called, the interface element identifier is input, and the element is operated and controlled, where the target operation includes (but is not limited to) clicking, double clicking, long pressing, sliding, and the like.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
In this embodiment, a software function control device is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 3 is a block diagram of a software function control apparatus according to an embodiment of the present application, as shown in fig. 3, including:
a function information acquisition module 31 for acquiring software function information of the system;
an element information acquisition module 32, configured to acquire element information of target software according to the software function information, where the system includes a plurality of target software;
a target operation module 33, configured to invoke a target interface to perform a target operation on the target software based on the element information, so as to implement a target software function;
a result determining module 34, configured to determine an element action result and a data interaction result according to the operation result, where the element action result includes an element action data matrix, and the data interaction result includes a data interaction matrix;
the state judging module 35 is configured to perform matching processing on the element action data matrix and the data interaction matrix, and determine that the target operation is in a normal state when a matching result meets a preset condition.
In an alternative embodiment of the present application,
the result determination module 34 includes:
the system comprises an action element determining unit, a control unit and a control unit, wherein the action element determining unit is used for determining element action information according to a target operation result, the element action information comprises action path information and action characteristic information of the element information, and the action characteristic information at least comprises element action time and element action queue distribution information;
an action matrix determining unit configured to determine the element action data matrix based on the action path information and the action feature information;
the status determination module 35 includes:
and the first state judging unit is used for carrying out first matching processing on the element action data matrix through a preset first model, and determining that the target operation is in a normal state under the condition that a first matching result meets a first matrix condition, or determining that the target operation is in an abnormal state.
In an alternative embodiment, the result determination module 34 further includes:
the interaction acquisition unit is used for determining interface interaction information according to a target operation result, wherein the interface interaction information comprises data period information and data characteristic information of the target interface, and the data characteristic information at least comprises data queue distribution information of a data queue interacted with the target interface;
an interaction matrix determining unit, configured to determine a data interaction matrix based on the data period information and the data feature information;
the status determination module 35 includes:
and the second state judging unit is used for carrying out second matching processing on the data interaction matrix through a preset second model, and determining that the target operation is in a normal state under the condition that a second matching result meets a second matrix condition, or determining that the target operation is in an abnormal state.
In an alternative embodiment, the element information collection module 32 includes at least any one of the following:
the first element acquisition unit is used for acquiring local list information according to the software function information, wherein the local list information is preset in a local installation package; acquiring the element information based on the local manifest information;
or alternatively, the first and second heat exchangers may be,
the second element acquisition unit is used for acquiring internet resource address information according to the software function information; and acquiring the element information based on the Internet resource address information.
In an alternative embodiment, the target operation module 33 includes at least any one of the following:
the first operation unit is used for acquiring first software function information; calling a first interface to execute a first operation according to the first software function information;
or alternatively, the first and second heat exchangers may be,
the second operation unit is used for acquiring the functional interaction object information; based on the interactive object information, carrying out encapsulation processing on the target function class to obtain a target operation object; and acquiring a second interface through the target operation object to execute a second operation, wherein the second interface is acquired according to an operation instruction.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the application also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application should be included in the protection scope of the present application.
Claims (8)
1. A software function control method, comprising:
acquiring software function information of a system;
acquiring element information of target software according to the software function information, wherein the system comprises a plurality of target software;
based on the element information, calling a target interface to execute target operation on the target software so as to realize a target software function;
determining an element action result and a data interaction result according to the operation result, wherein the element action result comprises an element action data matrix, and the data interaction result comprises a data interaction matrix;
respectively carrying out matching processing on the element action data matrix and the data interaction matrix, and determining that the target operation is in a normal state under the condition that a matching result meets a preset condition;
wherein, according to the operation result, determining the element action result comprises:
determining element action information according to a target operation result, wherein the element action information comprises action path information and action characteristic information of the element information, and the action characteristic information at least comprises element action time and element action queue distribution information;
determining the element action data matrix based on the action path information and the action feature information;
the matching processing of the element action data matrix comprises the following steps:
performing first matching processing on the element action data matrix through a preset first model, and determining that the target operation is in a normal state under the condition that a first matching result meets a first matrix condition, or determining that the target operation is in an abnormal state;
wherein, according to the operation result, determining the data interaction result includes: according to a target operation result, interface interaction information is determined, wherein the interface interaction information comprises data period information and data characteristic information of the target interface, and the data characteristic information at least comprises data queue distribution information of a data queue interacted with the target interface; determining a data interaction matrix based on the data period information and the data characteristic information;
the matching processing of the data interaction matrix comprises the following steps:
and carrying out second matching processing on the data interaction matrix through a preset second model, and determining that the target operation is in a normal state under the condition that a second matching result meets a second matrix condition, or determining that the target operation is in an abnormal state.
2. The method of claim 1, wherein the obtaining the element information of the target software according to the software function information includes at least any one of:
acquiring local list information according to the software function information, wherein the local list information is built in a local installation package in advance; acquiring the element information based on the local manifest information;
or alternatively, the first and second heat exchangers may be,
acquiring Internet resource address information according to the software function information; and acquiring the element information based on the Internet resource address information.
3. The method of claim 1, wherein invoking a target interface to perform a target operation on the target software based on the element information comprises at least any one of:
acquiring first software function information; calling a first interface to execute a first operation according to the first software function information;
or alternatively, the first and second heat exchangers may be,
acquiring functional interaction object information; based on the interactive object information, carrying out encapsulation processing on the target function class to obtain a target operation object; and acquiring a second interface through the target operation object to execute a second operation, wherein the acquisition of the second interface is executed according to the acquired operation instruction.
4. A software function control apparatus, comprising:
the function information acquisition module is used for acquiring the software function information of the system;
the element information acquisition module is used for acquiring element information of target software according to the software function information, wherein the system comprises a plurality of target software;
the target operation module is used for calling a target interface to execute target operation on the target software based on the element information so as to realize the function of the target software;
the result determining module is used for determining an element action result and a data interaction result according to the operation result, wherein the element action result comprises an element action data matrix, and the data interaction result comprises a data interaction matrix;
the state judging module is used for respectively carrying out matching processing on the element action data matrix and the data interaction matrix, and determining that the target operation is in a normal state under the condition that a matching result meets a preset condition;
wherein, the result determination module includes:
the system comprises an action element determining unit, a control unit and a control unit, wherein the action element determining unit is used for determining element action information according to a target operation result, the element action information comprises action path information and action characteristic information of the element information, and the action characteristic information at least comprises element action time and element action queue distribution information;
an action matrix determining unit configured to determine the element action data matrix based on the action path information and the action feature information;
the interaction acquisition unit is used for determining interface interaction information according to a target operation result, wherein the interface interaction information comprises data period information and data characteristic information of the target interface, and the data characteristic information at least comprises data queue distribution information of a data queue interacted with the target interface;
an interaction matrix determining unit, configured to determine a data interaction matrix based on the data period information and the data feature information;
the state judging module comprises:
the first state judging unit is used for carrying out first matching processing on the element action data matrix through a preset first model, and determining that the target operation is in a normal state under the condition that a first matching result meets a first matrix condition, or determining that the target operation is in an abnormal state;
and the second state judging unit is used for carrying out second matching processing on the data interaction matrix through a preset second model, and determining that the target operation is in a normal state under the condition that a second matching result meets a second matrix condition, or determining that the target operation is in an abnormal state.
5. The apparatus of claim 4, wherein the element information collection module comprises at least any one of:
the first element acquisition unit is used for acquiring local list information according to the software function information, wherein the local list information is preset in a local installation package; acquiring the element information based on the local manifest information;
or alternatively, the first and second heat exchangers may be,
the second element acquisition unit is used for acquiring internet resource address information according to the software function information; and acquiring the element information based on the Internet resource address information.
6. The apparatus of claim 5, wherein the target operation module comprises at least any one of:
the first operation unit is used for acquiring first software function information; calling a first interface to execute a first operation according to the first software function information;
or alternatively, the first and second heat exchangers may be,
the second operation unit is used for acquiring the functional interaction object information; based on the interactive object information, carrying out encapsulation processing on the target function class to obtain a target operation object; and acquiring a second interface through the target operation object to execute a second operation, wherein the second interface is acquired according to an operation instruction.
7. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program, wherein the computer program is arranged to perform the method of any of the claims 1 to 3 when run.
8. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of the claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311084472.5A CN116820417B (en) | 2023-08-28 | 2023-08-28 | Software function control method and device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311084472.5A CN116820417B (en) | 2023-08-28 | 2023-08-28 | Software function control method and device, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116820417A CN116820417A (en) | 2023-09-29 |
CN116820417B true CN116820417B (en) | 2023-11-14 |
Family
ID=88118782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311084472.5A Active CN116820417B (en) | 2023-08-28 | 2023-08-28 | Software function control method and device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116820417B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112204526A (en) * | 2018-03-27 | 2021-01-08 | 西门子股份公司 | Method for configuring an automation system |
US11157151B1 (en) * | 2020-07-28 | 2021-10-26 | Citrix Systems, Inc. | Direct linking within applications |
CN114546424A (en) * | 2022-01-25 | 2022-05-27 | 联想(北京)有限公司 | Application release method, device and equipment |
CN115629814A (en) * | 2022-09-09 | 2023-01-20 | 网易(杭州)网络有限公司 | Data processing method and device and electronic equipment |
CN115658525A (en) * | 2022-11-02 | 2023-01-31 | 平安科技(深圳)有限公司 | User interface checking method and device, storage medium and computer equipment |
CN116150711A (en) * | 2022-12-16 | 2023-05-23 | 连连(杭州)信息技术有限公司 | Software processing method and device, electronic equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060036941A1 (en) * | 2001-01-09 | 2006-02-16 | Tim Neil | System and method for developing an application for extending access to local software of a wireless device |
-
2023
- 2023-08-28 CN CN202311084472.5A patent/CN116820417B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112204526A (en) * | 2018-03-27 | 2021-01-08 | 西门子股份公司 | Method for configuring an automation system |
US11157151B1 (en) * | 2020-07-28 | 2021-10-26 | Citrix Systems, Inc. | Direct linking within applications |
CN114546424A (en) * | 2022-01-25 | 2022-05-27 | 联想(北京)有限公司 | Application release method, device and equipment |
CN115629814A (en) * | 2022-09-09 | 2023-01-20 | 网易(杭州)网络有限公司 | Data processing method and device and electronic equipment |
CN115658525A (en) * | 2022-11-02 | 2023-01-31 | 平安科技(深圳)有限公司 | User interface checking method and device, storage medium and computer equipment |
CN116150711A (en) * | 2022-12-16 | 2023-05-23 | 连连(杭州)信息技术有限公司 | Software processing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN116820417A (en) | 2023-09-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108510082B (en) | Method and device for processing machine learning model | |
EP3731161A1 (en) | Model application method and system, and model management method and server | |
CN107632697B (en) | Processing method, device, storage medium and the electronic equipment of application program | |
CN107678800B (en) | Background application cleaning method and device, storage medium and electronic equipment | |
CN111552838A (en) | Data processing method and device, computer equipment and storage medium | |
CN116755844B (en) | Data processing method, device and equipment of simulation engine and storage medium | |
WO2023124425A1 (en) | Data processing method and apparatus, electronic device, and storage medium | |
CN108664665A (en) | Data format method for transformation, device, equipment and readable storage medium storing program for executing | |
CN109408658A (en) | Expression picture reminding method, device, computer equipment and storage medium | |
US20200286012A1 (en) | Model application method, management method, system and server | |
CN113360300B (en) | Interface call link generation method, device, equipment and readable storage medium | |
CN116820417B (en) | Software function control method and device, storage medium and electronic device | |
CN111104122B (en) | Method for mapping xml service logic to java service logic | |
CN116339694B (en) | Extension method and device of low-code platform assembly, electronic equipment and storage medium | |
CN112650777A (en) | Data warehouse manufacturing method and device, terminal equipment and computer storage medium | |
CN111444249A (en) | User portrait generation method, device and equipment based on thermal data and storage medium | |
CN116668520A (en) | Gateway-based service arrangement method, system, equipment and storage medium | |
CN115426416A (en) | Protocol conversion method and device, electronic equipment and storage medium | |
CN113946420A (en) | Method and system for providing operating environment of Internet of things | |
CN107888445B (en) | Method and device for analyzing performance state, computer equipment and storage medium | |
CN113111108A (en) | File data source warehousing analysis access method | |
US20150309788A1 (en) | Function module modularizing method in data distribution service and modularizing apparatus thereof | |
CN113010674B (en) | Text classification model packaging method, text classification method and related equipment | |
CN111081253B (en) | Voice processing method, device and system | |
US20210064990A1 (en) | Method for machine learning deployment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |