CN110851201A - Application operation control method, device, terminal and storage medium - Google Patents

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

Info

Publication number
CN110851201A
CN110851201A CN201911035598.7A CN201911035598A CN110851201A CN 110851201 A CN110851201 A CN 110851201A CN 201911035598 A CN201911035598 A CN 201911035598A CN 110851201 A CN110851201 A CN 110851201A
Authority
CN
China
Prior art keywords
scene
scene module
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.)
Granted
Application number
CN201911035598.7A
Other languages
Chinese (zh)
Other versions
CN110851201B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses an application operation control method, an application operation control device, a terminal and a medium, wherein the application operation control method comprises the following steps: upon detecting an enabling request for a first function of the first application, obtaining a scene cycle detection set of the first function; determining a currently processed scene module in a currently processed scene module subset; 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 application automation interface skip is improved, and the execution success rate of the automation script is improved.

Description

Application operation 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 operation control method, an application operation control device, a terminal, and a computer storage medium.
Background
The existing writing mode of the jump script of the automatic interface adopts a linear coding mode to organize the jump script of the automatic UI, and controls are searched and clicked step by step according to the sequence of an applied scene. However, this method is similar to the conventional automated interface jump script of software or application, but it is not well adapted to the automated UI jump of different applications, and it is very easy to use the linear script without considering detailed and error interruption in the writing process due to various unexpected factors.
Disclosure of Invention
The embodiment of the invention provides an application operation control method, an application operation control device, a terminal and a computer storage medium, which can improve the intelligence of application automation interface skip 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 operation control method, where the application operation control method includes:
when a request for starting a first function of the first application is detected, acquiring a scene cycle detection set of the first function, wherein the scene cycle 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 subsets 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;
determining a currently processed scene module in a 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 performing preset operation according to the return result.
Wherein, the preset operation is performed according to the return result, and the preset operation comprises:
if the return result comprises that the currently processed scene module is not hit, a miss counter is added by 1, and whether the value of the miss counter exceeds a threshold value is judged; if yes, error recovery is carried out; and if not, selecting a next scene module from the currently processed scene module subset according to the preset cyclic detection sequence to update the currently processed scene module, and executing the preset operation.
Wherein, the preset operation is performed according to the return result, and the preset operation comprises:
and 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 to be the next scene module and executing the preset operation.
Wherein, the preset operation is performed according to the return result, and the preset operation comprises:
if the returned result includes that the currently processed scene module is hit and a target scene module subset is returned, updating the currently processed scene module subset to be the target scene module subset, updating the currently processed scene module subset to be a 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, the preset operation is performed according to the return result, and the preset operation comprises:
if the returned result includes 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 an initial value of the miss counter is 0.
The first function is divided into the plurality of scene modules according to an interface skip 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 loop detection set according to switching logics presented by the plurality of scene switching sequences.
Wherein the non-linear factor comprises any one of: the game has npc spontaneous movements, behavioral information of other participating users, network fluctuations, client pop messages.
Wherein the error recovery comprises restarting a first function of the first application.
On the other hand, an embodiment of the present invention provides an application operation control apparatus, where the apparatus includes:
a detecting unit, configured to, when a request for starting a first function of the first application is detected, obtain a scene cycle detection set of the first function, where the scene cycle detection set includes multiple scene module subsets divided according to a switching order, each scene module subset includes a corresponding scene module, multiple scene modules in the scene module subsets are provided with a preset cycle detection order, and a scene module is a scene module in the multiple scene modules of the first function;
an execution unit for determining a currently processed scene module of a 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 performing preset operation according to the return result.
Wherein, in the aspect of performing the preset operation according to the return result, the execution unit is configured to: if the return result comprises that the currently processed scene module is not hit, a miss counter is added by 1, and whether the value of the miss counter exceeds a threshold value is judged; if yes, error recovery is carried out; and if not, selecting a next scene module from the currently processed scene module subset according to the preset cyclic detection sequence to update the currently processed scene module, and executing the preset operation.
Wherein, in the aspect of performing the preset operation according to the return result, the execution unit is configured to: and 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 to be the next scene module and executing the preset operation.
Wherein, in the aspect of performing the preset operation according to the return result, the execution unit is configured to: if the returned result includes that the currently processed scene module is hit and a target scene module subset is returned, updating the currently processed scene module subset to be the target scene module subset, updating the currently processed scene module subset to be a 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 performing the preset operation according to the return result, the execution unit is configured to: if the returned result includes 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 an initial value of the miss counter is 0.
The first function is divided into the plurality of scene modules according to an interface skip 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 loop detection set according to switching logics presented by the plurality of scene switching sequences.
Wherein the non-linear factor comprises any one of: the game has npc spontaneous movements, behavioral information of other participating users, network fluctuations, client pop messages.
Wherein the error recovery comprises restarting a first function of the first application.
In 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; and the number of the first and second groups,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of:
when a request for starting a first function of the first application is detected, acquiring a scene cycle detection set of the first function, wherein the scene cycle 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 subsets 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;
determining a currently processed scene module in a 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 performing preset operation according to the return result.
In yet another aspect, an embodiment of the present invention provides a computer storage medium, where one or more instructions are stored, and the one or more instructions are adapted to be loaded by a processor and execute the following steps:
when a request for starting a first function of the first application is detected, acquiring a scene cycle detection set of the first function, wherein the scene cycle 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 subsets 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;
determining a currently processed scene module in a 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 performing preset operation according to the return result.
The embodiment of the invention firstly obtains the scene cycle detection set of the first function when the starting request of the first function aiming at the first application is detected, the scene cycle 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 subsets are provided with a preset cycle detection sequence, the scene module is one of the plurality of scene modules of the first function, secondly, determining the currently processed scene module in the currently processed scene module subset, executing the standardized execution flow configured by the scene module to obtain the return result of the scene module, and the standardized execution flow comprises scene hit judgment, scene operation execution and scene switching judgment, and finally, preset operation is carried out according to the returned result. Therefore, the state of the current first application can be determined through scene loop detection, the preset operation is executed according to the state, the intelligence of application automation interface jumping is improved, and the execution success rate and the fault tolerance rate 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 needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic architecture 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 script fragment diagram of an application running control method according to an embodiment of the present invention;
fig. 2c is an execution schematic diagram of an application operation control method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of an application operation control method according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating an overall process of an automated interface jump script for application run control according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of an application operation control method according to another embodiment of the present invention;
FIG. 6a is a schematic flow chart of a team of players according to an embodiment of the present invention;
FIG. 6b is a schematic diagram of a scene module of another player team provided by an embodiment of the invention;
fig. 7 is a schematic structural diagram of an application operation 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 solution 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 present invention provides an application operation control scheme, which can be applied to a terminal, where the terminal may include but is not limited to: smart phones, tablets, laptops, and desktops, among others. 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 scene interface and a battle scene interface in a game application, where the game application client may include but is not limited to: a mobile guest, a peer guest, etc.; the mobile terminal comprises a mobile terminal, a mobile client, a Personal Computer (PC) terminal and a game server, wherein the mobile client is a game client running in the mobile terminal, and the end game is a game client running in the PC terminal; the team scene refers to a scene in which a player performs a storyline performance in the online game, and the battle scene refers to a scene in which the player performs actual battles in a single game and other game players. As another example, the video application client may be invoked to switch between a labor scene and a snow scene that the video application needs to display, and so on.
The application operation control scheme proposed by the embodiment of the present invention is described below by taking as an example that the application operation control scheme is applied to the communication system shown in fig. 1 and a game application client is invoked to execute the application operation control scheme: as shown in fig. 1, the server may perform a preset operation with respect to the scene loop detection set when detecting an enabling request of the first function of the first application; each game application client may then perform a scene loop detection in response to the enablement request.
Based on the above description, an embodiment of the present invention provides an application operation control method, please refer to fig. 2a, which may include the following steps S201 to S204:
s201, when a request for starting a first function of the first application is detected, obtaining 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 subsets 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.
The enabling request may be sent by touch clicking or voice, which is not limited herein.
Wherein one scene module subset corresponds to one application display interface.
Each scene module subset comprises all scene modules which can be switched to by the same scene module which is chronologically preceding and adjacent.
For example, as shown in fig. 2b, fig. 2b is a schematic diagram of a script fragment of an application operation control method, as shown in the figure: 1) the current scene module returns all possible subsequent scene module lists { scene module 1, scene module 2, scene module 3 and scene module 4} after the operation is finished under the condition that the scene characteristics are hit; 2) and 4 subsequent scene modules, returning None when the scene modules are not hit, and circularly executing the next scene module. This process ensures that all subsequent scenes of the game will be detected in the loop detection and will not be missed due to the speed of script execution. 3) The subsequent scene modules 1, 2, in case of hit and operation, will cause the respective scene to jump, and thus will return to the respective subsequent scene module list. 4) The subsequent scene module 3, in case of hit and execution of the operation, does not cause scene hopping, and thus loops 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 stops.
S202, determining the currently processed scene module in the currently processed scene module subset.
And S203, executing a standardized execution process configured by the scene module to obtain a return result of the scene module, wherein the standardized execution process comprises scene hit judgment, scene operation execution and scene switching judgment.
The return result may be a return value or other instruction, which is not set uniquely here.
And S204, performing preset operation according to the return result.
As shown in fig. 2c, fig. 2c is a schematic diagram of executing an application operation control method, and for a currently processed scene module, a schematic diagram of executing the processed scene module is given, as shown in the following fig. 2: the first step of the scene module is to check the scene characteristics. Only if the check hits, the scene in which the check hits is confirmed to be correct. There are 4 return values for each scene module:
a) new scene module list: the current scene hits and after the operation is performed, there is a series of possible scene cuts. Returning all subsequent scene modules as a list;
b) none (no hit scenario module): the current scene is not hit, and the next scene module in the current module list needs to be executed. While returning this value, the miss counter is self-incremented by 1;
c) false (end block): after the execution of the current scene is finished, the whole automatic script is tested, and then False is returned;
d) true (execution module): and if the next scene module in the current module list is expected to be executed continuously, returning to True.
The embodiment of the invention firstly obtains the scene cycle detection set of the first function when the starting request of the first function aiming at the first application is detected, the scene cycle 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 subsets are provided with a preset cycle detection sequence, the scene module is one of the plurality of scene modules of the first function, secondly, determining the currently processed scene module in the currently processed scene module subset, executing the standardized execution flow configured by the scene module to obtain the return result of the scene module, and the standardized execution flow comprises scene hit judgment, scene operation execution and scene switching judgment, and finally, preset operation is carried out according to the returned result. Therefore, the state of the current first application can be determined through scene loop detection, the preset operation is executed according to the state, the intelligence of application automation interface jumping is improved, and the execution success rate and the fault tolerance rate of the automation script are improved.
Fig. 3 is a schematic flow chart of another application operation control method according to an embodiment of the present invention. As shown in fig. 3, the application execution control method may include the following steps S301 to S304:
s301, when an enabling request for a first function of the first application is detected, a scene cycle detection set of the first function is obtained.
S302, determining the currently processed scene module in the currently processed scene module subset.
And S303, executing the standardized execution flow configured by the scene module to obtain a return result of the scene module.
S304, 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 to be the next scene module and executing the preset operation.
Optionally, the performing a preset operation according to the returned result includes: if the return result comprises that the currently processed scene module is not hit, a miss counter is added by 1, and whether the value of the miss counter exceeds a threshold value is judged; if yes, error recovery is carried out; and if not, selecting a next scene module from the currently processed scene module subset according to the preset cyclic detection sequence to update the currently processed scene module, and executing the preset operation.
Optionally, 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 a target scene module subset is returned, updating the currently processed scene module subset to be the target scene module subset, updating the currently processed scene module subset to be a 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: if the returned result includes 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 an 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,
Figure BDA0002249848400000091
from the above table 1, 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 non-scheme is 48%; wherein, the calculation formula is as follows: the execution completion rate is the script execution completion number divided by the total number of mobile phones, the non-script problems such as installation failure and pull-up game failure are eliminated, the execution completion rate of the scheme is 100%, and the execution completion rate of the non-scheme is 78%; wherein, the calculation formula is as follows: the execution completion rate is the script execution completion number ÷ (script execution completion number + script execution failure number).
The embodiment of the invention firstly obtains the scene cycle detection set of the first function when the starting request of the first function aiming at the first application is detected, the scene cycle 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 subsets are provided with a preset cycle detection sequence, the scene module is one of the plurality of scene modules of the first function, secondly, determining the currently processed scene module in the currently processed scene module subset, executing the standardized execution flow configured by the scene module to obtain the return result of the scene module, and the standardized execution flow comprises scene hit judgment, scene operation execution and scene switching judgment, and finally, preset operation is carried out according to the returned result. Therefore, the state of the current first application can be determined through scene loop detection, the preset operation is executed according to the state, the intelligence of application automation interface jumping is improved, and the execution success rate and the fault tolerance rate of the automation script are improved.
In an embodiment, the first function is divided into the multiple scene modules according to an interface skip logic, the multiple scene modules correspond to multiple scene switching sequences, the multiple 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 a nonlinear factor, and the multiple scene modules form the scene loop detection set according to switching logics presented by the multiple scene switching sequences.
It can be seen that, in this example, each scene is written as an independent scene module, that is, the scene module is an independent unit and can be reused in various places, so that the maintenance workload of the code is also reduced.
Optionally, the non-linear factor includes any one of: the game has npc spontaneous movements, behavioral information of other participating users, network fluctuations, client pop messages.
Wherein, the non-linear factor can be one or
Optionally, the error recovery comprises restarting a first function of the first application.
Fig. 4 is a flowchart illustrating an overall process of an automated interface jump script for application operation control according to an embodiment of the present invention. In the present application, the above method can be implemented by using the overall flowchart of the automated interface jump script for application operation control shown in fig. 4, where the flow involved in the application operation control scheme is described as follows:
step A represents a cyclic selection scene module, consistent with that shown in FIG. 2 b;
step B indicates that when execution returns None (no hit scenario module), { miss counter } will increment by 1. When the value of the miss counter exceeds a set threshold value, the test script or the game is considered to have some error (such as game card pause);
and C, carrying out error recovery after the step B. Such as restarting the game, re-entering the start interface, etc. And the whole testing process is restored to be original. Therefore, the whole test flow has the self-recovery capability;
step D shows that after a certain scene module returns False (end module), the whole testing process is normally ended.
The following describes the application operation control method in detail by taking an example of applying the application operation control method provided by the embodiment of the invention to a single game in a mobile client. Games herein may include, but are not limited to: a horizontal game in which a screen is fixed on a horizontal plane and a scroll map setting is generally set to move from left to right, and a vertical game in which a screen is fixed on a vertical plane. In the embodiment of the invention, the realization steps of the target game application in the preset scene cycle detection set are used, and the game is explained by taking a horizontal version game in a mobile client as an example; the specific process can be seen in fig. 5:
after detecting the opening operation of the mobile client, the terminal can start the mobile client and acquire a scene cycle detection set corresponding to the mobile client from a corresponding game server (hereinafter referred to as a server); determining a currently processed scene module in the current first subset of scene modules: executing the standardized execution flow configured by the scene module to obtain a return result of the scene module; and 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 to be the next scene module and executing the preset operation.
FIG. 6a is a schematic flow chart of a team of players in a first game, as shown in FIG. 6 a; as shown in the figure:
the normal steps of player team formation in the first game use are that a first interface of a search room appears first, a second interface entering the room appears after loading is completed, and if other players appear, a third interface waiting for other players enters a fourth interface for a homeowner to start a game; and entering a fifth interface of the game through a touch instruction of the user in the fourth interface.
As shown in fig. 6b, fig. 6b is a schematic view of a scene module of a player team in the first game of the present scenario; as shown in the figure:
after entering a search room, two situations occur, one is entering the room, the other is searching the room, traversing one by one, and determining a module hitting scene characteristics as a room entering module;
after entering a room, four situations can occur: waiting for other players, the homeowner to dismiss the room, searching the room and playing the game, traversing one by one according to the sequence of the list, and in the module waiting for other players, further comprising three sub-modules which respectively start the game for the homeowner, dismiss the room for the homeowner and play the game;
if the other player modules hit the module with the scene characteristics, entering a homeowner starting game submodule, wherein the homeowner starting game submodule comprises an entering game submodule;
if the module of the scene characteristics is not hit by other player modules, traversing the house owner to dissolve the room, search the room and play the game until the module of the hit scene characteristics is found;
and if the number of times of the miss reaches eight times, namely two cycles, restarting the game corresponding to the player team.
The embodiment of the invention firstly obtains the scene cycle detection set of the first function when the starting request of the first function aiming at the first application is detected, the scene cycle 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 subsets are provided with a preset cycle detection sequence, the scene module is one of the plurality of scene modules of the first function, secondly, determining the currently processed scene module in the currently processed scene module subset, executing the standardized execution flow configured by the scene module to obtain the return result of the scene module, and the standardized execution flow comprises scene hit judgment, scene operation execution and scene switching judgment, and finally, preset operation is carried out according to the returned result. Therefore, the state of the current first application can be determined through scene loop detection, the preset operation is executed according to the state, the intelligence of application automation interface jumping is improved, and the execution success rate and the fault tolerance rate of the automation script are improved.
Based on the description of the above embodiment of the application operation control method, the embodiment of the present invention further discloses an application operation control device, which may be a computer program (including a program code) running in a terminal. The application run control means may perform the method shown in fig. 2a or fig. 3. Referring to fig. 7, the application execution control device may execute the following units:
a detecting unit 101, configured to, when a request for starting a first function of the first application is detected, obtain a scene cycle detection set of the first function, where the scene cycle detection set includes multiple scene module subsets divided according to a switching order, each scene module subset includes a corresponding scene module, multiple scene modules in the scene module subsets are provided with a preset cycle detection order, and a scene module is a scene module in the multiple 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 performing preset operation according to the return result.
In one embodiment, in terms of the performing the preset operation according to the returned result, the execution unit 102 is configured to: if the return result comprises that the currently processed scene module is not hit, a miss counter is added by 1, and whether the value of the miss counter exceeds a threshold value is judged; if yes, error recovery is carried out; and if not, selecting a next scene module from the currently processed scene module subset according to the preset cyclic detection sequence to update the currently processed scene module, and executing the preset operation.
In another embodiment, in terms of the performing the preset operation according to the returned result, the execution unit 102 is configured to: and 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 to be the next scene module and executing the preset operation.
In another embodiment, in terms of the performing the preset operation according to the returned result, the execution unit 102 is configured to: if the returned result includes that the currently processed scene module is hit and a target scene module subset is returned, updating the currently processed scene module subset to be the target scene module subset, updating the currently processed scene module subset to be a 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 another embodiment, in terms of the performing the preset operation according to the returned result, the execution unit 102 is configured to: if the returned result includes 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 an initial value of the miss counter is 0.
In yet another embodiment, the first function is divided into the multiple scene modules according to an interface skip logic, the multiple scene modules correspond to multiple scene switching sequences, the multiple 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 a nonlinear factor, and the multiple scene modules form the scene loop detection set according to switching logics presented by the multiple scene switching sequences.
In yet another embodiment, the non-linear factor includes any one of: the game has npc spontaneous movements, behavioral information of other participating users, network fluctuations, client pop messages.
In yet another embodiment, the error recovery includes restarting a first function of the first application.
According to an embodiment of the present invention, each step involved in the method shown in fig. 2a or fig. 3 may be executed by each unit in the application execution 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, the units in the application operation control device shown in fig. 7 may be respectively or entirely combined into one or several other units to form the unit, or some unit(s) thereof may be further split into multiple units with smaller functions to form the unit(s), which may achieve the same operation without affecting the achievement of the technical effect of the embodiment of the present invention. The units are divided based on logic functions, and in practical application, the functions of one unit can be realized by a plurality of units, or the functions of a plurality of units can be realized by one unit. In other embodiments of the present invention, the application-based operation control device may also include other units, and in practical applications, these functions may also be implemented by the assistance of other units, and may be implemented by cooperation of a plurality of units.
According to another embodiment of the present invention, the application execution control apparatus device as shown in fig. 7 may be constructed by running a computer program (including program codes) capable of executing steps involved in the respective methods as shown in fig. 2a or fig. 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 a storage element, and the application execution control method of the embodiment of the present invention may be implemented. The computer program may be recorded on a computer-readable recording medium, for example, and loaded and executed in the above-described computing apparatus via the computer-readable recording medium.
The embodiment of the invention firstly obtains the scene cycle detection set of the first function when the starting request of the first function aiming at the first application is detected, the scene cycle 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 subsets are provided with a preset cycle detection sequence, the scene module is one of the plurality of scene modules of the first function, secondly, determining the currently processed scene module in the currently processed scene module subset, executing the standardized execution flow configured by the scene module to obtain the return result of the scene module, and the standardized execution flow comprises scene hit judgment, scene operation execution and scene switching judgment, and finally, preset operation is carried out according to the returned result. Therefore, the state of the current first application can be determined through scene loop detection, the preset operation is executed according to the state, the intelligence of application automation interface jumping is improved, and the execution success rate and the fault tolerance rate 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.
A computer storage medium 204 may be stored in the memory of the terminal, said computer storage medium 204 being adapted to store a computer program comprising program instructions, said processor 201 being adapted to execute said program instructions stored by said computer storage medium 204. The processor 201 (or CPU) is a computing core and a control core of the terminal, and is adapted to implement one or more instructions, and in particular, is adapted to load and execute the one or more instructions so as 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 a request for starting a first function of the first application is detected, acquiring a scene cycle detection set of the first function, wherein the scene cycle 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 subsets 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; determining a currently processed scene module in a 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 performing preset operation according to the return 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 is understood that the computer storage medium herein may include a built-in storage medium in the terminal, and may also include 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), suitable for loading and execution by processor 201. The computer storage medium may be a high-speed RAM memory, or may be a non-volatile memory (non-volatile memory), such as at least one disk memory; and optionally at least one computer storage medium located remotely from the processor.
In one embodiment, one or more instructions stored in a computer storage medium may be loaded and executed by the processor 201 to implement the corresponding steps of the method described above in connection with the scene cut embodiment; in particular implementations, one or more instructions in the computer storage medium are loaded by processor 201 and perform the following steps:
when a request for starting a first function of the first application is detected, acquiring a scene cycle detection set of the first function, wherein the scene cycle 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 subsets 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;
determining a currently processed scene module in a 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 performing preset operation according to the return result.
In one embodiment, the processor 201 loads and specifically executes: if the return result comprises that the currently processed scene module is not hit, a miss counter is added by 1, and whether the value of the miss counter exceeds a threshold value is judged; if yes, error recovery is carried out; and if not, selecting a next scene module from the currently processed scene module subset according to the preset cyclic detection sequence to update the currently processed scene module, and executing the preset operation.
In another embodiment, the processor 201 loads and specifically executes: and 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 to be the next scene module and executing the preset operation.
In another embodiment, the processor 201 loads and specifically executes: if the returned result includes that the currently processed scene module is hit and a target scene module subset is returned, updating the currently processed scene module subset to be the target scene module subset, updating the currently processed scene module subset to be a 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 another embodiment, the processor 201 loads and specifically executes: if the returned result includes 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 an initial value of the miss counter is 0.
In yet another embodiment, the first function is divided into the multiple scene modules according to an interface skip logic, the multiple scene modules correspond to multiple scene switching sequences, the multiple 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 a nonlinear factor, and the multiple scene modules form the scene loop detection set according to switching logics presented by the multiple scene switching sequences.
In yet another embodiment, the non-linear factor includes any one of: the game has npc spontaneous movements, behavioral information of other participating users, network fluctuations, client pop messages.
In yet another embodiment, the error recovery includes restarting a first function of the first application.
The embodiment of the invention firstly obtains the scene cycle detection set of the first function when the starting request of the first function aiming at the first application is detected, the scene cycle 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 subsets are provided with a preset cycle detection sequence, the scene module is one of the plurality of scene modules of the first function, secondly, determining the currently processed scene module in the currently processed scene module subset, executing the standardized execution flow configured by the scene module to obtain the return result of the scene module, and the standardized execution flow comprises scene hit judgment, scene operation execution and scene switching judgment, and finally, preset operation is carried out according to the returned result. Therefore, the state of the current first application can be determined through scene loop detection, the preset operation is executed according to the state, the intelligence of application automation interface jumping is improved, and the execution success rate and the fault tolerance rate of the automation script are improved.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. An application operation control method, characterized by comprising:
when a request for starting a first function of the first application is detected, acquiring a scene cycle detection set of the first function, wherein the scene cycle 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 subsets 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;
determining a currently processed scene module in a 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 performing preset operation according to the return result.
2. The method according to claim 1, wherein the performing a preset operation according to the returned result comprises:
if the return result comprises that the currently processed scene module is not hit, a miss counter is added by 1, and whether the value of the miss counter exceeds a threshold value is judged; if yes, error recovery is carried out; and if not, selecting a next scene module from the currently processed scene module subset according to the preset cyclic detection sequence to update the currently processed 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 comprises:
and 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 to be the next scene module and executing the preset operation.
4. The method according to claim 1, wherein the performing a preset operation according to the returned result comprises:
if the returned result includes that the currently processed scene module is hit and a target scene module subset is returned, updating the currently processed scene module subset to be the target scene module subset, updating the currently processed scene module subset to be a 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.
5. The method according to any one of claims 1 to 4, 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 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 an initial value of the miss counter is 0.
6. The method according to any one of claims 1 to 4, wherein the first function is divided into the plurality of scene modules according to an interface skip 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 non-linear scene switching sequence, the non-linear scene switching sequence refers to a scene state transition sequence formed due to the influence of a non-linear factor, and the plurality of scene modules form the scene loop detection set according to the switching logic presented by the plurality of scene switching sequences.
7. The method of claim 6, wherein the non-linear factor comprises at least one of: the game has npc spontaneous movements, behavioral information of other participating users, network fluctuations, client pop messages.
8. An application execution control apparatus, characterized in that the apparatus comprises:
a detecting unit, configured to, when a request for starting a first function of the first application is detected, obtain a scene cycle detection set of the first function, where the scene cycle detection set includes multiple scene module subsets divided according to a switching order, each scene module subset includes a corresponding scene module, multiple scene modules in the scene module subsets are provided with a preset cycle detection order, and a scene module is a scene module in the multiple scene modules of the first function;
an execution unit for determining a currently processed scene module of a 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 performing preset operation according to the return result.
9. A terminal comprising an input device and an output device, further comprising:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium having stored thereon one or more instructions adapted to be loaded by the processor and to execute the application execution control method according to any of claims 1-7.
10. A computer storage medium having stored thereon one or more instructions adapted to be loaded by a processor and to execute the application execution control method according to any of claims 1-7.
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 true CN110851201A (en) 2020-02-28
CN110851201B 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140258989A1 (en) * 2011-10-10 2014-09-11 Onycom, Inc. Method and system for automating a scene-based test
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140258989A1 (en) * 2011-10-10 2014-09-11 Onycom, Inc. Method and system for automating a scene-based test
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
佚名: "示波器模板测试功能介绍及应用详解", pages 1 - 6, Retrieved from the Internet <URL:https://www.elecfans.com/lab/ceshiceliang/20170801536619.html> *

Also Published As

Publication number Publication date
CN110851201B (en) 2024-01-16

Similar Documents

Publication Publication Date Title
WO2019227994A1 (en) Method and apparatus for updating application prediction model, storage medium, and terminal
CN107018191B (en) Method and device for controlling game
CN110538452B (en) Skill control method, skill control device, computing equipment and storage medium
CN107391325B (en) Hard disk test method and device and terminal
CN104065637A (en) Web-game running method and device
CN102523475B (en) Testing method and device for electronic products, and television set
CN107729231B (en) Fault injection method and device based on operating system
KR20180009352A (en) Method and apparatus for data processing for mobile games
CN109473121B (en) Voice synthesis quality testing method and device
CN104243590A (en) Resource object recommendation method and device
CN107479872B (en) Android animation set playing method, storage medium, electronic device and system
CN108628732B (en) Traversal test method and device for application interface control
CN111796884B (en) Access control method, device, equipment and computer readable storage medium
CN112473144A (en) Game resource data processing method and device
CN105740010A (en) Power-on method and terminal equipment
CN109582382B (en) Loading method and device of configuration information, storage medium and terminal equipment
CN110851201B (en) Application running control method, device, terminal and storage medium
CN112699046A (en) Application program testing method and device, electronic equipment and storage medium
CN109304035B (en) Game time length obtaining method and device, terminal equipment and storage medium
CN114185773A (en) Program testing method, program testing device, electronic equipment and computer readable storage medium
CN110882539B (en) Animation display method and device, storage medium and electronic device
CN115577363A (en) Detection method and device for deserialization utilization chain of malicious code
CN109522187B (en) Method and device for quickly extracting state information
CN111756922A (en) Method and system for running mobile phone game and game terminal
CN109359042B (en) Automatic testing method based on path search algorithm

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