CN110851201B - Application running control method, device, terminal and storage medium - Google Patents

Application running control method, device, terminal and storage medium Download PDF

Info

Publication number
CN110851201B
CN110851201B CN201911035598.7A CN201911035598A CN110851201B CN 110851201 B CN110851201 B CN 110851201B CN 201911035598 A CN201911035598 A CN 201911035598A CN 110851201 B CN110851201 B CN 110851201B
Authority
CN
China
Prior art keywords
scene
module
scene module
currently processed
subset
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
Application number
CN201911035598.7A
Other languages
Chinese (zh)
Other versions
CN110851201A (en
Inventor
蔡怡峰
王昱杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911035598.7A priority Critical patent/CN110851201B/en
Publication of CN110851201A publication Critical patent/CN110851201A/en
Application granted granted Critical
Publication of CN110851201B publication Critical patent/CN110851201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention discloses an application operation control method, an application operation control device, a terminal and a medium, wherein the method comprises the following steps: when an enabling request of a first function of the first application is detected, acquiring a scene circulation detection set of the first function; determining a currently processed scene module in the subset of currently processed scene modules; and executing the standardized execution flow configured by the scene module to obtain a return result of the scene module, and performing preset operation according to the return result, so that the intelligence of the jump of the application automation interface is improved, and the execution success rate of the automation script is improved.

Description

Application running control method, device, terminal and storage medium
Technical Field
The present invention relates to the field of application control, and in particular, to an application running control method, an application running control device, a terminal, and a computer storage medium.
Background
The existing automatic interface jump script writing mode adopts a linear coding mode to organize an automatic UI jump script, and controls are searched step by step and clicked according to the scene sequence of the application. However, this approach is similar to the conventional automatic interface skip script of software or application, but is not well adapted to the automatic UI skip of different applications, and may be easily interrupted by mistakes due to various unexpected factors, which are not considered in detail in the writing process, by using the linear script.
Disclosure of Invention
The embodiment of the invention provides an application running control method, an application running control device, a terminal and a computer storage medium, which can improve the intelligence of the jump of an application automation interface and improve the execution success rate and the fault tolerance rate of an automation script.
In one aspect, an embodiment of the present invention provides an application running control method, where the application running control method includes:
when an enabling request of a first function of the first application is detected, a scene circulation detection set of the first function is obtained, wherein the scene circulation detection set comprises a plurality of scene module subsets divided according to a switching sequence, each scene module subset comprises a corresponding scene module, a preset circulation detection sequence is set for a plurality of scene modules in the scene module subset, and the scene modules are scene modules in the plurality of scene modules of the first function;
determining a currently processed scene module in the subset of currently processed scene modules;
executing a standardized execution flow configured by the scene module to obtain a return result of the scene module, wherein the standardized execution flow comprises scene hit judgment, scene operation execution and scene switching judgment;
And carrying out preset operation according to the returned result.
The performing a preset operation according to the returned result includes:
if the returned result comprises that the currently processed scene module is not hit, a miss counter is self-added by 1, and whether the value of the miss counter exceeds a threshold value is judged; if yes, error recovery is carried out; if not, selecting a next scene module from the scene module subset currently processed according to the preset loop detection sequence to update the scene module currently processed, and executing the preset operation.
The performing a preset operation according to the returned result includes:
if the returned result includes that the currently processed scene module is hit and the next scene module of the currently processed scene module in the currently processed scene module subset needs to be continuously executed, updating the currently processed scene module into the next scene module and executing the preset operation.
The performing a preset operation according to the returned result includes:
if the return result includes that the currently processed scene module is hit and returns to a target scene module subset, updating the currently processed scene module subset to the target scene module subset, updating the currently processed scene module to be the first scene module in the target scene module subset, and executing the preset operation, wherein the target scene module subset is a scene module subset which can be switched by the currently processed scene module.
The performing a preset operation according to the returned result includes:
and if the returned result comprises that the currently processed scene module is hit and the currently processed scene module is the final scene module of the first function, resetting a miss counter of the first function, and stopping executing the preset operation, wherein the initial value of the miss counter is 0.
The first function is divided into a plurality of scene modules according to interface jump logic, the plurality of scene modules correspond to a plurality of scene switching sequences, the plurality of scene switching sequences comprise a single linear scene switching sequence and at least one nonlinear scene switching sequence, the nonlinear scene switching sequence refers to a scene state transition sequence formed due to the influence of nonlinear factors, and the plurality of scene modules form the scene cycle detection set according to switching logic presented by the plurality of scene switching sequences.
Wherein the nonlinear factor includes any one of the following: the game has npc spontaneous movements, other participating users' behavioral information, network fluctuations, client side popup messages.
Wherein the error recovery includes restarting a first function of the first application.
In another aspect, an embodiment of the present invention provides an application running control apparatus, including:
the detection unit is used for acquiring a scene circulation detection set of a first function of the first application when an enabling request of the first function is detected, wherein the scene circulation detection set comprises a plurality of scene module subsets divided according to a switching sequence, each scene module subset comprises a corresponding scene module, the plurality of scene modules in the scene module subset are provided with a preset circulation detection sequence, and the scene module is one of the plurality of scene modules of the first function;
an execution unit for determining a currently processed scene module of the subset of currently processed scene modules: executing a standardized execution flow configured by the scene module to obtain a return result of the scene module, wherein the standardized execution flow comprises scene hit judgment, scene operation execution and scene switching judgment; and carrying out preset operation according to the returned result.
Wherein, in the aspect of the preset operation according to the returned result, the execution unit is configured to: if the returned result comprises that the currently processed scene module is not hit, a miss counter is self-added by 1, and whether the value of the miss counter exceeds a threshold value is judged; if yes, error recovery is carried out; if not, selecting a next scene module from the scene module subset currently processed according to the preset loop detection sequence to update the scene module currently processed, and executing the preset operation.
Wherein, in the aspect of the preset operation according to the returned result, the execution unit is configured to: if the returned result includes that the currently processed scene module is hit and the next scene module of the currently processed scene module in the currently processed scene module subset needs to be continuously executed, updating the currently processed scene module into the next scene module and executing the preset operation.
Wherein, in the aspect of the preset operation according to the returned result, the execution unit is configured to: if the return result includes that the currently processed scene module is hit and returns to a target scene module subset, updating the currently processed scene module subset to the target scene module subset, updating the currently processed scene module to be the first scene module in the target scene module subset, and executing the preset operation, wherein the target scene module subset is a scene module subset which can be switched by the currently processed scene module.
Wherein, in the aspect of the preset operation according to the returned result, the execution unit is configured to: and if the returned result comprises that the currently processed scene module is hit and the currently processed scene module is the final scene module of the first function, resetting a miss counter of the first function, and stopping executing the preset operation, wherein the initial value of the miss counter is 0.
The first function is divided into a plurality of scene modules according to interface jump logic, the plurality of scene modules correspond to a plurality of scene switching sequences, the plurality of scene switching sequences comprise a single linear scene switching sequence and at least one nonlinear scene switching sequence, the nonlinear scene switching sequence refers to a scene state transition sequence formed due to the influence of nonlinear factors, and the plurality of scene modules form the scene cycle detection set according to switching logic presented by the plurality of scene switching sequences.
Wherein the nonlinear factor includes any one of the following: the game has npc spontaneous movements, other participating users' behavioral information, network fluctuations, client side popup messages.
Wherein the error recovery includes restarting a first function of the first application.
In still another aspect, an embodiment of the present invention provides a terminal, where the terminal includes an input device and an output device, and the terminal further includes:
a processor adapted to implement one or more instructions; the method comprises the steps of,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of:
When an enabling request of a first function of the first application is detected, a scene circulation detection set of the first function is obtained, wherein the scene circulation detection set comprises a plurality of scene module subsets divided according to a switching sequence, each scene module subset comprises a corresponding scene module, a preset circulation detection sequence is set for a plurality of scene modules in the scene module subset, and the scene modules are scene modules in the plurality of scene modules of the first function;
determining a currently processed scene module in the subset of currently processed scene modules;
executing a standardized execution flow configured by the scene module to obtain a return result of the scene module, wherein the standardized execution flow comprises scene hit judgment, scene operation execution and scene switching judgment;
and carrying out preset operation according to the returned result.
In yet another aspect, embodiments of the present invention provide a computer storage medium storing one or more instructions adapted to be loaded by a processor and to perform the steps of:
when an enabling request of a first function of the first application is detected, a scene circulation detection set of the first function is obtained, wherein the scene circulation detection set comprises a plurality of scene module subsets divided according to a switching sequence, each scene module subset comprises a corresponding scene module, a preset circulation detection sequence is set for a plurality of scene modules in the scene module subset, and the scene modules are scene modules in the plurality of scene modules of the first function;
Determining a currently processed scene module in the subset of currently processed scene modules;
executing a standardized execution flow configured by the scene module to obtain a return result of the scene module, wherein the standardized execution flow comprises scene hit judgment, scene operation execution and scene switching judgment;
and carrying out preset operation according to the returned result.
The method comprises the steps of firstly, when an enabling request of a first function of a first application is detected, obtaining a scene circulation detection set of the first function, wherein the scene circulation detection set comprises a plurality of scene module subsets divided according to a switching sequence, each scene module subset comprises a corresponding scene module, a plurality of scene modules in the scene module subset are provided with a preset circulation detection sequence, the scene modules are scene modules in the plurality of scene modules of the first function, secondly, determining a currently processed scene module in the currently processed scene module subset, executing a standardized execution flow configured by the scene module to obtain a return result of the scene module, and finally performing preset operation according to the return result. Therefore, the state of the current first application can be determined through scene cycle detection, and the preset operation is executed according to the state, so that the intelligence of the jump of the application automation interface is improved, and the execution success rate and fault tolerance of the automation script are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a communication system according to an embodiment of the present invention;
FIG. 2a is a schematic flow chart of an application operation control method according to an embodiment of the present invention;
FIG. 2b is a schematic diagram of a script fragment of an application run control method according to an embodiment of the present invention;
FIG. 2c is a schematic diagram illustrating the execution of an application running control method according to an embodiment of the present invention;
FIG. 3 is a flowchart of an application running control method according to another embodiment of the present invention;
FIG. 4 is an overall flowchart of an automated interface jump script for application execution control provided by an embodiment of the present invention;
FIG. 5 is a flowchart of an application running control method according to another embodiment of the present invention;
FIG. 6a is a schematic flow chart of a player team according to an embodiment of the present invention;
FIG. 6b is a schematic diagram of another scenario module of player teams according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an application running control device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The embodiment of the invention provides an application operation control scheme, which can be applied to a terminal, wherein the terminal can comprise but is not limited to: smart phones, tablet computers, laptop computers, desktop computers, and the like. The terminal can call the corresponding application client to execute the scene switching scheme according to the actual service requirement. For example, a game application client may be invoked to switch between a team scenario interface and a combat scenario interface in a game application, where the game application client may include, but is not limited to: a hand-tour client, an end-tour client, etc.; wherein, the hand game client refers to a game client running in the mobile terminal, and the end game refers to a game client running in a PC (Personal Computer ) end; team scenes refer to scenes in which players perform scenario performances in online games, and battle scenes refer to scenes in which players actually fight in single games and other game players. For another example, the video application client may be invoked to switch between a labor scene and a snowing scene that the video application needs to display, and so on.
The following describes an application operation control scheme according to an embodiment of the present invention, taking an example of applying the application operation control scheme to a communication system as shown in fig. 1, and invoking a game application client to execute the application operation control scheme: as shown in fig. 1, when detecting an enabling request of a first function of the first application, the server may perform a preset operation with respect to the scene cycle detection set; each game application client may then conduct scene cycle detection in response to the enablement request.
Based on the above description, an embodiment of the present invention proposes an application running control method, referring to fig. 2a, the application running control method may include the following steps S201 to S204:
s201, when an enabling request of a first function of the first application is detected, a scene circulation detection set of the first function is obtained, wherein the scene circulation detection set comprises a plurality of scene module subsets divided according to a switching sequence, each scene module subset comprises a corresponding scene module, a preset circulation detection sequence is set for the plurality of scene modules in the scene module subset, and the scene modules are scene modules in the plurality of scene modules of the first function.
The enabling request may be sent by touch clicking or voice, which is not limited herein.
Wherein a subset of the scene modules corresponds to an application display interface.
Wherein each scene module subset includes all scene modules that can be switched to by the same scene module that is preceding in timing and adjacent.
For example, as shown in fig. 2b, fig. 2b is a schematic diagram of a script fragment for applying a running control method, as shown in the following: 1) The current scene module returns all possible follow-up scene module lists { scene module 1, scene module 2, scene module 3, scene module 4}, after the execution of the operation under the condition of hitting the scene characteristics; 2) And 4 subsequent scene modules return to None under the condition of no hit, and the next scene module is circularly executed. This process ensures that all subsequent scenes of the game are detected in the loop detection and are not missed because of how fast the script is executed. 3) The subsequent scene modules 1,2, in case of hit and execution of an operation, will cause respective scene jumps and thus return respective subsequent scene module lists. 4) The subsequent scene module 3 does not cause scene jump in the case of hit and execution of operation, and thus is cyclically executed to the subsequent scene module 4 as in None. 5) And the subsequent scene module 4 accords with the termination condition of the script under the condition of hitting and executing the operation, and the whole script is stopped.
S202, determining a currently processed scene module in the subset of currently processed scene modules.
S203, executing a standardized execution flow configured by the scene module to obtain a return result of the scene module, wherein the standardized execution flow comprises scene hit judgment, scene operation execution and scene switching judgment.
The return result may be a return value or other instruction, where no unique setting is made.
S204, performing preset operation according to the returned result.
As shown in fig. 2c, fig. 2c is a schematic diagram of execution of an application running control method, and shows, for a scene module currently being processed, a schematic diagram of execution of the scene module of the process, as shown in the following: the first step of the scene module is to check scene features. Only if the check hits, the scene can be confirmed to be correct. There are 4 return values per scene module:
a) New scene module list: the current scene hits and after performing the operation there is a series of possible scene cuts. Returning all subsequent scene modules as a list;
b) None (miss scene module): the current scene does not hit and the next scene module of the current module list needs to be executed. While returning this value, the miss counter self-increments by 1;
c) False (end module): after the execution of the current scene is finished, the whole automatic script test is finished, and then False is returned;
d) True (execution module): if the next scene module of the current module list is expected to be executed, returning True.
The method comprises the steps of firstly, when an enabling request of a first function of a first application is detected, obtaining a scene circulation detection set of the first function, wherein the scene circulation detection set comprises a plurality of scene module subsets divided according to a switching sequence, each scene module subset comprises a corresponding scene module, a plurality of scene modules in the scene module subset are provided with a preset circulation detection sequence, the scene modules are scene modules in the plurality of scene modules of the first function, secondly, determining a currently processed scene module in the currently processed scene module subset, executing a standardized execution flow configured by the scene module to obtain a return result of the scene module, and finally performing preset operation according to the return result. Therefore, the state of the current first application can be determined through scene cycle detection, and the preset operation is executed according to the state, so that the intelligence of the jump of the application automation interface is improved, and the execution success rate and fault tolerance of the automation script are improved.
Fig. 3 is a schematic flow chart of another method for controlling application operation according to an embodiment of the present invention. As shown in fig. 3, the application running control method may include the following steps S301 to S304:
s301, acquiring a scene circulation detection set of a first function of the first application when an enabling request of the first function is detected.
S302, determining a currently processed scene module in the subset of currently processed scene modules.
S303, executing the standardized execution flow configured by the scene module to obtain a return result of the scene module.
And S304, if the returned result comprises that the currently processed scene module is hit and the next scene module of the currently processed scene module in the currently processed scene module subset needs to be continuously executed, updating the currently processed scene module into the next scene module and executing the preset operation.
Optionally, the performing a preset operation according to the returned result includes: if the returned result comprises that the currently processed scene module is not hit, a miss counter is self-added by 1, and whether the value of the miss counter exceeds a threshold value is judged; if yes, error recovery is carried out; if not, selecting a next scene module from the scene module subset currently processed according to the preset loop detection sequence to update the scene module currently processed, and executing the preset operation.
Optionally, the performing a preset operation according to the returned result includes: if the return result includes that the currently processed scene module is hit and returns to a target scene module subset, updating the currently processed scene module subset to the target scene module subset, updating the currently processed scene module to be the first scene module in the target scene module subset, and executing the preset operation, wherein the target scene module subset is a scene module subset which can be switched by the currently processed scene module.
Optionally, the preset operation further includes: and if the returned result comprises that the currently processed scene module is hit and the currently processed scene module is the final scene module of the first function, resetting a miss counter of the first function, and stopping executing the preset operation, wherein the initial value of the miss counter is 0.
For example, according to the above-described scheme, tests were performed on one hundred terminals, the test results are shown in table 1,
from table 1 above, it can be seen that: in one hundred terminals, the execution completion rate of the scheme is 83%, and the execution completion rate of the scheme is 48%; wherein, the calculation formula: execution completion rate = script execution completion number +.total number of mobile phones, and eliminate non-script problems such as installation failure and pull-up game failure, the execution completion rate of the scheme is 100%, and the execution completion rate of the non-scheme is 78%; wherein, the calculation formula: execution completion rate=script execution completion number ++script execution failure number.
The method comprises the steps of firstly, when an enabling request of a first function of a first application is detected, obtaining a scene circulation detection set of the first function, wherein the scene circulation detection set comprises a plurality of scene module subsets divided according to a switching sequence, each scene module subset comprises a corresponding scene module, a plurality of scene modules in the scene module subset are provided with a preset circulation detection sequence, the scene modules are scene modules in the plurality of scene modules of the first function, secondly, determining a currently processed scene module in the currently processed scene module subset, executing a standardized execution flow configured by the scene module to obtain a return result of the scene module, and finally performing preset operation according to the return result. Therefore, the state of the current first application can be determined through scene cycle detection, and the preset operation is executed according to the state, so that the intelligence of the jump of the application automation interface is improved, and the execution success rate and fault tolerance of the automation script are improved.
In one embodiment, the first function is divided into the plurality of scene modules according to interface jump logic, the plurality of scene modules correspond to a plurality of scene switching sequences, the plurality of scene switching sequences include a single linear scene switching sequence and at least one nonlinear scene switching sequence, the nonlinear scene switching sequence refers to a scene state transition sequence formed due to the influence of nonlinear factors, and the plurality of scene modules form the scene cycle detection set according to switching logic presented by the plurality of scene switching sequences.
It can be seen that in this example, each scene is written as an independent scene module, i.e. the scene module is a separate unit, which can be reused in various places, thus reducing the maintenance workload of the code.
Optionally, the nonlinear factor includes any one of the following: the game has npc spontaneous movements, other participating users' behavioral information, network fluctuations, client side popup messages.
Wherein the nonlinear factor may be one or
Optionally, the error recovery includes restarting a first function of the first application.
Fig. 4 is an overall flowchart of an automated interface jump script for application running control according to an embodiment of the present invention. In this application, the above method may be implemented through an overall flowchart of an automated interface jump script of application operation control shown in fig. 4, where the flow related to the application operation control scheme is described as follows:
step A represents a circularly selected scene module, which is consistent with that shown in FIG. 2 b;
step B indicates that when execution returns to None (no hit scene module) { miss counter } will self increment by 1. When { miss counter } exceeds a set threshold, it is considered that the test script or game has had some error (e.g., the game is stuck, etc.);
Step C is followed by step B for error recovery. Such as a restart of the game, reenter a start interface, etc. The whole test procedure is restored to the original state. Therefore, the whole test flow has self-recovery capability;
step D indicates that when a certain scene module returns False (end module), the whole test process is normally ended.
The following describes in detail an application running control method according to an embodiment of the present invention, taking an application running control method applied to a single game in a hand-game client as an example. Games herein may include, but are not limited to: a horizontal game, a vertical game, or the like, is a game in which a screen is fixed to a horizontal plane, and a scroll map setting is generally provided with a left-to-right movement, and a vertical game is a game in which a screen is fixed to a vertical plane. In the embodiment of the invention, the method is formed by the implementation steps of the target game application in a preset scene cycle detection set, and the game is illustrated by taking a transverse game in a hand game client as an example; the specific flow is shown in fig. 5:
after detecting the opening operation of the hand-tour client, the terminal can start the hand-tour client and acquire a scene circulation detection set corresponding to the hand-tour client from a corresponding game server (hereinafter referred to as a server); determining a currently processed scene module in the current first scene module subset: executing a standardized execution flow configured by the scene module to obtain a return result of the scene module; and if the returned result comprises hit of the currently processed scene module and the next scene module of the currently processed scene module in the scene module subset needing to be continuously executed is detected, updating the currently processed scene module into the next scene module and executing the preset operation.
FIG. 6a is a schematic flow chart of a team formation of players in a first game; as shown in the figure:
the normal step of player team formation in the first game use is that a first interface for searching a room appears firstly, a second interface for entering the room appears after loading is completed, if other players appear, a third interface for waiting for other players is entered, and a fourth interface for starting the game of a homeowner is entered; and entering a fifth interface of the game through a touch instruction of the user in the fourth interface.
FIG. 6b is a schematic view of a scene module of a team of players in the first game of the present embodiment; as shown in the figure:
after entering a search room, two conditions can occur, one is entering the room, the other is searching the room, traversing one by one, and determining that the module hitting the scene feature is a module entering the room;
after entering the room, four situations can occur: waiting for other players, breaking up rooms, searching rooms and playing games, traversing one by one according to the list order, wherein the waiting for other player modules comprises three sub-modules for starting games for the homeowner, breaking up rooms for the homeowner and playing games;
if the modules of the scene feature hit in the waiting other player modules, entering a homeowner starting game sub-module, wherein the homeowner starting game sub-module comprises a entering game sub-module;
If the modules of the scene features are not hit by the other player modules, traversing the homeowner to break up the room, search the room and play the game until the hit modules of the scene features are found;
if the number of misses reaches eight, namely two loops, restarting the game corresponding to the player team.
The method comprises the steps of firstly, when an enabling request of a first function of a first application is detected, obtaining a scene circulation detection set of the first function, wherein the scene circulation detection set comprises a plurality of scene module subsets divided according to a switching sequence, each scene module subset comprises a corresponding scene module, a plurality of scene modules in the scene module subset are provided with a preset circulation detection sequence, the scene modules are scene modules in the plurality of scene modules of the first function, secondly, determining a currently processed scene module in the currently processed scene module subset, executing a standardized execution flow configured by the scene module to obtain a return result of the scene module, and finally performing preset operation according to the return result. Therefore, the state of the current first application can be determined through scene cycle detection, and the preset operation is executed according to the state, so that the intelligence of the jump of the application automation interface is improved, and the execution success rate and fault tolerance of the automation script are improved.
Based on the above description of the embodiments of the application running control method, the embodiments of the present invention also disclose an application running control device, which may be a computer program (including program code) running in a terminal. The application execution control device may perform the method shown in fig. 2a or fig. 3. Referring to fig. 7, the application operation control device may operate the following units:
a detection unit 101, configured to obtain, when an enabling request for a first function of the first application is detected, a scene cycle detection set of the first function, where the scene cycle detection set includes a plurality of scene module subsets divided according to a switching sequence, each scene module subset includes a corresponding scene module, a plurality of scene modules in the scene module subset are provided with a preset cycle detection sequence, and a scene module is a scene module in the plurality of scene modules of the first function;
an execution unit 102, configured to determine a currently processed scene module in the currently processed scene module subset; executing a standardized execution flow configured by the scene module to obtain a return result of the scene module, wherein the standardized execution flow comprises scene hit judgment, scene operation execution and scene switching judgment; and carrying out preset operation according to the returned result.
In one embodiment, in the aspect of performing the preset operation according to the returned result, the executing unit 102 is configured to: if the returned result comprises that the currently processed scene module is not hit, a miss counter is self-added by 1, and whether the value of the miss counter exceeds a threshold value is judged; if yes, error recovery is carried out; if not, selecting a next scene module from the scene module subset currently processed according to the preset loop detection sequence to update the scene module currently processed, and executing the preset operation.
In yet another embodiment, in the aspect of performing the preset operation according to the returned result, the executing unit 102 is configured to: if the returned result includes that the currently processed scene module is hit and the next scene module of the currently processed scene module in the currently processed scene module subset needs to be continuously executed, updating the currently processed scene module into the next scene module and executing the preset operation.
In yet another embodiment, in the aspect of performing the preset operation according to the returned result, the executing unit 102 is configured to: if the return result includes that the currently processed scene module is hit and returns to a target scene module subset, updating the currently processed scene module subset to the target scene module subset, updating the currently processed scene module to be the first scene module in the target scene module subset, and executing the preset operation, wherein the target scene module subset is a scene module subset which can be switched by the currently processed scene module.
In yet another embodiment, in the aspect of performing the preset operation according to the returned result, the executing unit 102 is configured to: and if the returned result comprises that the currently processed scene module is hit and the currently processed scene module is the final scene module of the first function, resetting a miss counter of the first function, and stopping executing the preset operation, wherein the initial value of the miss counter is 0.
In still another embodiment, the first function is divided into the plurality of scene modules according to interface jump logic, the plurality of scene modules correspond to a plurality of scene switching sequences, the plurality of scene switching sequences include a single linear scene switching sequence and at least one nonlinear scene switching sequence, the nonlinear scene switching sequence refers to a scene state transition sequence formed due to influence of nonlinear factors, and the plurality of scene modules form the scene cycle detection set according to switching logic presented by the plurality of scene switching sequences.
In yet another embodiment, the nonlinear factor includes any one of the following: the game has npc spontaneous movements, other participating users' behavioral information, network fluctuations, client side popup messages.
In yet another embodiment, the error recovery includes restarting a first function of the first application.
According to one embodiment of the invention, the steps involved in the method shown in fig. 2a or 3 may be performed by the units in the application run control device shown in fig. 7. For example, step S201 shown in fig. 2a may be performed by the detection unit 101 shown in fig. 7, and steps S202, S203, S204 may be performed by the execution unit 102 shown in fig. 7; as another example, step S401 shown in fig. 4 may be performed by the detection unit 101 shown in fig. 7, and steps S302, S303, S304 may be performed by the execution unit 102 shown in fig. 7.
According to another embodiment of the present invention, each unit in the application running control apparatus shown in fig. 7 may be separately or completely combined into one or several other units, or some unit(s) thereof may be further split into a plurality of units with smaller functions, which may achieve the same operation without affecting the achievement of the technical effects of the embodiments of the present invention. The above units are divided based on logic functions, and in practical applications, the functions of one unit may be implemented by a plurality of units, or the functions of a plurality of units may be implemented by one unit. In other embodiments of the present invention, the application-based running control apparatus may also include other units, and in actual applications, these functions may also be implemented with assistance from other units, and may be implemented by cooperation of a plurality of units.
According to another embodiment of the present invention, an application operation control apparatus device as shown in fig. 7 may be constructed by running a computer program (including program code) capable of executing the steps involved in the respective methods as shown in fig. 2a or 3 on a general-purpose computing device such as a computer including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read only storage medium (ROM), and the like, and a storage element, and implementing the application operation control method of the embodiment of the present invention. The computer program may be recorded on, for example, a computer-readable recording medium, and loaded into and executed by the above-described computing device via the computer-readable recording medium.
The method comprises the steps of firstly, when an enabling request of a first function of a first application is detected, obtaining a scene circulation detection set of the first function, wherein the scene circulation detection set comprises a plurality of scene module subsets divided according to a switching sequence, each scene module subset comprises a corresponding scene module, a plurality of scene modules in the scene module subset are provided with a preset circulation detection sequence, the scene modules are scene modules in the plurality of scene modules of the first function, secondly, determining a currently processed scene module in the currently processed scene module subset, executing a standardized execution flow configured by the scene module to obtain a return result of the scene module, and finally performing preset operation according to the return result. Therefore, the state of the current first application can be determined through scene cycle detection, and the preset operation is executed according to the state, so that the intelligence of the jump of the application automation interface is improved, and the execution success rate and fault tolerance of the automation script are improved.
Based on the description of the method embodiment and the device embodiment, the embodiment of the invention also provides a terminal. Referring to fig. 8, the terminal includes at least a processor 201, an input device 202, an output device 203, and a computer storage medium 204. Wherein the processor 201, input device 202, output device 203, and computer storage medium 204 within the terminal may be connected by a bus or other means.
The computer storage medium 204 may be stored in a memory of the terminal, the computer storage medium 204 being for storing a computer program comprising program instructions, the processor 201 being for executing the program instructions stored by the computer storage medium 204. The processor 201 (or CPU (Central Processing Unit, central processing unit)) is a computing core and a control core of the terminal, which are adapted to implement one or more instructions, in particular to load and execute one or more instructions to implement a corresponding method flow or a corresponding function; in one embodiment, the processor 201 according to the embodiment of the present invention may be configured to perform a series of application running control processes, including: when an enabling request of a first function of the first application is detected, a scene circulation detection set of the first function is obtained, wherein the scene circulation detection set comprises a plurality of scene module subsets divided according to a switching sequence, each scene module subset comprises a corresponding scene module, a preset circulation detection sequence is set for a plurality of scene modules in the scene module subset, and the scene modules are scene modules in the plurality of scene modules of the first function; determining a currently processed scene module in the subset of currently processed scene modules; executing a standardized execution flow configured by the scene module to obtain a return result of the scene module, wherein the standardized execution flow comprises scene hit judgment, scene operation execution and scene switching judgment; and carrying out preset operation according to the returned result.
The embodiment of the invention also provides a computer storage medium (Memory), which is a Memory device in the terminal and is used for storing programs and data. It will be appreciated that the computer storage medium herein may include both a built-in storage medium in the terminal and an extended storage medium supported by the terminal. The computer storage medium provides a storage space that stores an operating system of the terminal. Also stored in this memory space are one or more instructions, which may be one or more computer programs (including program code), adapted to be loaded and executed by the processor 201. The computer storage medium herein may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory; optionally, at least one computer storage medium remote from the processor may be present.
In one embodiment, one or more instructions stored in a computer storage medium may be loaded and executed by processor 201 to implement the respective steps of the methods described above in connection with the scene-cut embodiment; in particular implementations, one or more instructions in a computer storage medium are loaded by processor 201 and perform the steps of:
When an enabling request of a first function of the first application is detected, a scene circulation detection set of the first function is obtained, wherein the scene circulation detection set comprises a plurality of scene module subsets divided according to a switching sequence, each scene module subset comprises a corresponding scene module, a preset circulation detection sequence is set for a plurality of scene modules in the scene module subset, and the scene modules are scene modules in the plurality of scene modules of the first function;
determining a currently processed scene module in the subset of currently processed scene modules;
executing a standardized execution flow configured by the scene module to obtain a return result of the scene module, wherein the standardized execution flow comprises scene hit judgment, scene operation execution and scene switching judgment;
and carrying out preset operation according to the returned result.
In one embodiment, the processor 201 loads and specifically performs: if the returned result comprises that the currently processed scene module is not hit, a miss counter is self-added by 1, and whether the value of the miss counter exceeds a threshold value is judged; if yes, error recovery is carried out; if not, selecting a next scene module from the scene module subset currently processed according to the preset loop detection sequence to update the scene module currently processed, and executing the preset operation.
In yet another embodiment, the processor 201 loads and specifically performs: if the returned result includes that the currently processed scene module is hit and the next scene module of the currently processed scene module in the currently processed scene module subset needs to be continuously executed, updating the currently processed scene module into the next scene module and executing the preset operation.
In yet another embodiment, the processor 201 loads and specifically performs: if the return result includes that the currently processed scene module is hit and returns to a target scene module subset, updating the currently processed scene module subset to the target scene module subset, updating the currently processed scene module to be the first scene module in the target scene module subset, and executing the preset operation, wherein the target scene module subset is a scene module subset which can be switched by the currently processed scene module.
In yet another embodiment, the processor 201 loads and specifically performs: and if the returned result comprises that the currently processed scene module is hit and the currently processed scene module is the final scene module of the first function, resetting a miss counter of the first function, and stopping executing the preset operation, wherein the initial value of the miss counter is 0.
In still another embodiment, the first function is divided into the plurality of scene modules according to interface jump logic, the plurality of scene modules correspond to a plurality of scene switching sequences, the plurality of scene switching sequences include a single linear scene switching sequence and at least one nonlinear scene switching sequence, the nonlinear scene switching sequence refers to a scene state transition sequence formed due to influence of nonlinear factors, and the plurality of scene modules form the scene cycle detection set according to switching logic presented by the plurality of scene switching sequences.
In yet another embodiment, the nonlinear factor includes any one of the following: the game has npc spontaneous movements, other participating users' behavioral information, network fluctuations, client side popup messages.
In yet another embodiment, the error recovery includes restarting a first function of the first application.
The method comprises the steps of firstly, when an enabling request of a first function of a first application is detected, obtaining a scene circulation detection set of the first function, wherein the scene circulation detection set comprises a plurality of scene module subsets divided according to a switching sequence, each scene module subset comprises a corresponding scene module, a plurality of scene modules in the scene module subset are provided with a preset circulation detection sequence, the scene modules are scene modules in the plurality of scene modules of the first function, secondly, determining a currently processed scene module in the currently processed scene module subset, executing a standardized execution flow configured by the scene module to obtain a return result of the scene module, and finally performing preset operation according to the return result. Therefore, the state of the current first application can be determined through scene cycle detection, and the preset operation is executed according to the state, so that the intelligence of the jump of the application automation interface is improved, and the execution success rate and fault tolerance of the automation script are improved.
The foregoing disclosure is illustrative of the present invention and is not to be construed as limiting the scope of the invention, which is defined by the appended claims.

Claims (9)

1. An application running control method, characterized by comprising:
when an enabling request of a first function for a first application is detected, a scene circulation detection set of the first function is obtained, wherein the scene circulation detection set comprises a plurality of scene module subsets divided according to a switching sequence, each scene module subset comprises a corresponding scene module, a preset circulation detection sequence is set for a plurality of scene modules in the scene module subset, and the scene modules are scene modules in the plurality of scene modules of the first function;
determining a currently processed scene module in the subset of currently processed scene modules;
executing a standardized execution flow configured by the scene module to obtain a return result of the scene module, wherein the standardized execution flow comprises scene hit judgment, scene operation execution and scene switching judgment;
and carrying out preset operation according to the returned result, wherein the preset operation comprises the following steps: if the returned result comprises that the currently processed scene module is not hit, a miss counter is self-added by 1, and whether the value of the miss counter exceeds a threshold value is judged; if yes, performing error recovery, wherein the error recovery comprises restarting a first function of the first application; if not, selecting a next scene module from the scene module subset currently processed according to the preset loop detection sequence to update the scene module currently processed, and executing the preset operation.
2. The method according to claim 1, wherein the performing a preset operation according to the returned result includes:
if the returned result includes that the currently processed scene module is hit and the next scene module of the currently processed scene module in the currently processed scene module subset needs to be continuously executed, updating the currently processed scene module into the next scene module and executing the preset operation.
3. The method according to claim 1, wherein the performing a preset operation according to the returned result includes:
if the return result includes that the currently processed scene module is hit and returns to a target scene module subset, updating the currently processed scene module subset to the target scene module subset, updating the currently processed scene module to be the first scene module in the target scene module subset, and executing the preset operation, wherein the target scene module subset is a scene module subset which can be switched by the currently processed scene module.
4. A method according to any one of claims 1-3, wherein said performing a preset operation according to said returned result comprises:
And if the returned result comprises that the currently processed scene module is hit and the currently processed scene module is the final scene module of the first function, resetting a miss counter of the first function, and stopping executing the preset operation, wherein the initial value of the miss counter is 0.
5. A method according to any one of claims 1-3, wherein the first function is partitioned with the plurality of scene modules according to interface jump logic, the plurality of scene modules corresponding to a plurality of scene switching sequences, the plurality of scene switching sequences comprising a single linear scene switching sequence and at least one nonlinear scene switching sequence, the nonlinear scene switching sequence being a scene state transition sequence due to nonlinear factors, the plurality of scene modules constituting the scene cycle detection set according to switching logic presented by the plurality of scene switching sequences.
6. The method of claim 5, wherein the non-linear factors include at least one of: the game has npc spontaneous movements, other participating users' behavioral information, network fluctuations, client side popup messages.
7. An application execution control device, characterized in that the device comprises:
the device comprises a detection unit, a first application and a second application, wherein the detection unit is used for acquiring a scene circulation detection set of a first function when an enabling request of the first function for the first application is detected, the scene circulation detection set comprises a plurality of scene module subsets divided according to a switching sequence, each scene module subset comprises a corresponding scene module, a plurality of scene modules in the scene module subset are provided with a preset circulation detection sequence, and the scene modules are scene modules in the plurality of scene modules of the first function;
an execution unit for determining a currently processed scene module of the subset of currently processed scene modules: executing a standardized execution flow configured by the scene module to obtain a return result of the scene module, wherein the standardized execution flow comprises scene hit judgment, scene operation execution and scene switching judgment; and carrying out preset operation according to the returned result, wherein the preset operation comprises the following steps: if the returned result comprises that the currently processed scene module is not hit, a miss counter is self-added by 1, and whether the value of the miss counter exceeds a threshold value is judged; if yes, performing error recovery, wherein the error recovery comprises restarting a first function of the first application; if not, selecting a next scene module from the scene module subset currently processed according to the preset loop detection sequence to update the scene module currently processed, and executing the preset operation.
8. A terminal comprising an input device and an output device, further comprising:
a processor adapted to implement one or more instructions; the method comprises the steps of,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the application execution control method of any one of claims 1-6.
9. A computer storage medium storing one or more instructions adapted to be loaded by a processor and to perform the application execution control method of any one of claims 1-6.
CN201911035598.7A 2019-10-28 2019-10-28 Application running control method, device, terminal and storage medium Active CN110851201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911035598.7A CN110851201B (en) 2019-10-28 2019-10-28 Application running control method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911035598.7A CN110851201B (en) 2019-10-28 2019-10-28 Application running control method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110851201A CN110851201A (en) 2020-02-28
CN110851201B true CN110851201B (en) 2024-01-16

Family

ID=69598094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911035598.7A Active CN110851201B (en) 2019-10-28 2019-10-28 Application running control method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110851201B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649100A (en) * 2016-11-16 2017-05-10 福建天晴数码有限公司 Automatic test method and system
CN107861852A (en) * 2017-06-26 2018-03-30 平安普惠企业管理有限公司 Webpage error handling method, system and readable storage medium storing program for executing
CN109558307A (en) * 2017-09-26 2019-04-02 卓望数码技术(深圳)有限公司 A kind of test method and system of games
CN109857668A (en) * 2019-02-03 2019-06-07 苏州市龙测智能科技有限公司 UI automated function test method, test device, test equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101118602B1 (en) * 2011-10-10 2012-02-27 어니컴 주식회사 Method and system for gui testing with scene-driven scenario

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649100A (en) * 2016-11-16 2017-05-10 福建天晴数码有限公司 Automatic test method and system
CN107861852A (en) * 2017-06-26 2018-03-30 平安普惠企业管理有限公司 Webpage error handling method, system and readable storage medium storing program for executing
CN109558307A (en) * 2017-09-26 2019-04-02 卓望数码技术(深圳)有限公司 A kind of test method and system of games
CN109857668A (en) * 2019-02-03 2019-06-07 苏州市龙测智能科技有限公司 UI automated function test method, test device, test equipment and storage medium

Also Published As

Publication number Publication date
CN110851201A (en) 2020-02-28

Similar Documents

Publication Publication Date Title
WO2019227994A1 (en) Method and apparatus for updating application prediction model, storage medium, and terminal
CN111273969B (en) State switching method, device, equipment and storage medium
CN107018191B (en) Method and device for controlling game
CN110538452B (en) Skill control method, skill control device, computing equipment and storage medium
CN105573778B (en) Application program starting method and terminal
CN108154197B (en) Method and device for realizing image annotation verification in virtual scene
CN106250182B (en) File processing method and device and electronic equipment
CN111796884A (en) Access control method, device, equipment and computer readable storage medium
CN111298434B (en) Service processing method, device, equipment and storage medium
CN109582382B (en) Loading method and device of configuration information, storage medium and terminal equipment
CN109569214B (en) Application display method and device in split screen mode and display equipment
CN112699046B (en) Application program testing method and device, electronic equipment and storage medium
CN110908880A (en) Embedded point code injection method, event reporting method and related equipment thereof
CN110851201B (en) Application running control method, device, terminal and storage medium
CN112286485A (en) Method and device for controlling application through voice, electronic equipment and storage medium
CN106535152B (en) Application data processing method, device and system based on terminal
CN109522187B (en) Method and device for quickly extracting state information
CN113144606B (en) Skill triggering method of virtual object and related equipment
CN110597566B (en) Application processing method and device, storage medium and electronic equipment
CN110882539B (en) Animation display method and device, storage medium and electronic device
CN114185773A (en) Program testing method, program testing device, electronic equipment and computer readable storage medium
CN110602027A (en) Automatic control method and device for game
CN109587325B (en) Application operation control method and device, storage medium and electronic equipment
CN112559073A (en) Program starting method, inter-class relation construction method and device and mobile terminal
CN105138380A (en) Method and device for starting Linux system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40022157

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant