CN109714373A - Script Synergistic method and device - Google Patents

Script Synergistic method and device Download PDF

Info

Publication number
CN109714373A
CN109714373A CN201711007538.5A CN201711007538A CN109714373A CN 109714373 A CN109714373 A CN 109714373A CN 201711007538 A CN201711007538 A CN 201711007538A CN 109714373 A CN109714373 A CN 109714373A
Authority
CN
China
Prior art keywords
script
node
identification information
scene
child node
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
CN201711007538.5A
Other languages
Chinese (zh)
Other versions
CN109714373B (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.)
Beijing Didi Infinity Technology and Development Co Ltd
Original Assignee
Beijing Didi Infinity Technology and Development 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 Beijing Didi Infinity Technology and Development Co Ltd filed Critical Beijing Didi Infinity Technology and Development Co Ltd
Priority to CN201711007538.5A priority Critical patent/CN109714373B/en
Publication of CN109714373A publication Critical patent/CN109714373A/en
Application granted granted Critical
Publication of CN109714373B publication Critical patent/CN109714373B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

It is about script Synergistic method and device, the above method includes: the first request for receiving the first script and sending the present embodiments relate to the field of test technology;Under first node associated with the identification information of the first scene, operation child node corresponding with the identification information of operation waited is inquired;If not inquiring corresponding operation child node, whether the number for monitoring operation child node under first node changes, if variation, inquiry whether there is operation child node corresponding with the identification information of the operation of waiting under first node, until inquiring corresponding operation child node.Embodiment through the invention, even if the time of other script drives terminal trigger actions, waits the operating time different from the script drives terminal of the present embodiment, can still keep listening state, until there is running node corresponding with the operation waited, the collaboration of script ensure that.

Description

Script Synergistic method and device
Technical field
The present embodiments relate to the field of test technology more particularly to script Synergistic method, script collaborative device, electronics to set Standby and computer readable storage medium.
Background technique
For current automated test frame, these frames are can be used in such as Robotium, Appium etc., tester Frame by writing script, and passes through the operation behavior of script drives terminal analog subscriber in conjunction with certain business model, thus Realize automatic test.
But based on current automated test frame, although terminal can be tested with Run Script, the frame It cannot coordinate test of multiple terminals completions to a business scenario.Such as script drives a terminal to trigger in some scene Need the operation of another terminal response, and if script drive another terminal received under the scene aforesaid operations when Between, it is different from the time of aforesaid operations triggering, then will lead to another terminal does not receive aforesaid operations, so as to cause test Failure.
Summary of the invention
The embodiment of the present invention provides script Synergistic method, script collaborative device, electronic equipment and computer-readable storage medium Matter, to solve deficiency in the related technology.
According to a first aspect of the embodiments of the present invention, a kind of script Synergistic method is provided, comprising:
Receiving the first request of the first script transmission, wherein first request includes the identification information of the first scene, with And the identification information of operation that the first script drives terminal waits in first scene;
Under first node associated with the identification information of first scene, the mark of inquiry and the operation of the waiting Know the corresponding operation child node of information;
If not inquiring corresponding operation child node, whether the number for monitoring operation child node under the first node becomes Change, if variation, inquiry whether there is behaviour corresponding with the identification information of the operation of the waiting under the first node Make child node, until corresponding operation child node is inquired, so that the first script drives terminal executes the waiting Operation.
According to a second aspect of the embodiments of the present invention, a kind of script collaborative device is provided, comprising:
Receiving module, for receiving the first request of the first script transmission, wherein first request includes the first scene Identification information and the identification information of operation that is waited in first scene of the first script drives terminal;
First enquiry module, under first node associated with the identification information of first scene, inquiry with The corresponding operation child node of the identification information of the operation of the waiting;
Module is monitored, if monitoring the first segment when the first enquiry module does not inquire corresponding operation child node Whether the number of the lower operation child node of point changes;
Wherein, first enquiry module is also used to the operator section in the case where the monitoring module listens to the first node When the number of variations of point, inquiry is under the first node with the presence or absence of corresponding with the identification information of the operation of the waiting Child node is operated, until corresponding operation child node is inquired, so that the first script drives terminal executes the waiting Operation.
According to a third aspect of the embodiments of the present invention, a kind of electronic equipment is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Receiving the first request of the first script transmission, wherein first request includes the identification information of the first scene, with And the identification information of operation that the first script drives terminal waits in first scene;
Under first node associated with the identification information of first scene, the mark of inquiry and the operation of the waiting Know the corresponding operation child node of information;
If not inquiring corresponding operation child node, whether the number for monitoring operation child node under the first node becomes Change, if variation, inquiry whether there is behaviour corresponding with the identification information of the operation of the waiting under the first node Make child node, until corresponding operation child node is inquired, so that the first script drives terminal executes the waiting Operation.
According to a fourth aspect of the embodiments of the present invention, a kind of computer readable storage medium is provided, calculating is stored thereon with Machine program, the program perform the steps of when being executed by processor
Receiving the first request of the first script transmission, wherein first request includes the identification information of the first scene, with And the identification information of operation that the first script drives terminal waits in first scene;
Under first node associated with the identification information of first scene, the mark of inquiry and the operation of the waiting Know the corresponding operation child node of information;
If not inquiring corresponding operation child node, whether the number for monitoring operation child node under the first node becomes Change, if variation, inquiry whether there is behaviour corresponding with the identification information of the operation of the waiting under the first node Make child node, until corresponding operation child node is inquired, so that the first script drives terminal executes the waiting Operation.
As can be seen from the above embodiments, even if the time of other script drives terminal trigger actions, the script with the present embodiment Drives terminal waits the operating time different, causes not inquire operation section corresponding with the operation that the terminal of script driving is waited Point is based on this implementation, can still keep listening state, until there is running node corresponding with the operation waited, and makes The script can execute waited operation with drives terminal, and then return to the information being successfully tested, and ensure that the collaboration of script.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of schematic flow diagram of the script Synergistic method shown according to embodiments of the present invention.
Fig. 2 is the schematic flow diagram of another script Synergistic method shown according to embodiments of the present invention.
Fig. 3 is the schematic flow diagram of another the script Synergistic method shown according to embodiments of the present invention.
Fig. 4 is the schematic flow diagram of another the script Synergistic method shown according to embodiments of the present invention.
Fig. 5 is a kind of determination third section associated with the identification information of third scenario shown according to embodiments of the present invention The schematic flow diagram of point.
Fig. 6 is the schematic flow diagram of another the script Synergistic method shown according to embodiments of the present invention.
Fig. 7 is a kind of specific schematic flow diagram of the script Synergistic method shown according to embodiments of the present invention.
Fig. 8 is a kind of schematic block diagram of the script collaborative device shown according to embodiments of the present invention.
Fig. 9 is the schematic block diagram of another script collaborative device shown according to embodiments of the present invention.
Figure 10 is the schematic block diagram of another the script collaborative device shown according to embodiments of the present invention.
Figure 11 is the schematic block diagram of another the script collaborative device shown according to embodiments of the present invention.
Figure 12 is the schematic block diagram of another the script collaborative device shown according to embodiments of the present invention.
Figure 13 is the schematic block diagram of another the script collaborative device shown according to embodiments of the present invention.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Fig. 1 is a kind of schematic flow diagram of the script Synergistic method shown according to embodiments of the present invention.The embodiment and The method of embodiment shown in other accompanying drawings specifically can be a kind of lock service (Lock Service), further, the implementation Example can be applied in test equipment, wherein test equipment can be terminal, such as mobile phone, tablet computer, PC, pen Remember this computer etc., test equipment is also possible to server.As described in Figure 1, the script Synergistic method the following steps are included:
Step S1 receives the first request that the first script is sent, wherein first request includes the mark of the first scene The identification information for the operation that information and the first script drives terminal wait in first scene.
In one embodiment, the first script can send the first request by calling the first preset function, wherein the One request can be Http request.
Step S2, under first node associated with the identification information of first scene, inquiry and the waiting The corresponding operation child node of the identification information of operation.
In one embodiment, first node can generate in creation (SET UP) stage of test, such as can basis Embodiment shown in fig. 5 generates.And operate child node then can trigger behaviour in other script drives terminals in the first scene When making, generated under first node, for example, can embodiment according to Fig.2, generate.
Step S3 monitors the number that child node is operated under the first node if not inquiring corresponding operation child node Whether mesh changes, if variation, inquires under the first node with the presence or absence of the identification information phase with the operation of the waiting Corresponding operation child node, until corresponding operation child node is inquired, so that the first script drives terminal executes institute State the operation of waiting.
In one embodiment, if the first script drives terminal waits operation in the first scene, but the operation is corresponding Running node be not present in the corresponding first node of the first scene, the first presetting method does not immediately return to test crash Information, but whether the number that can continue to monitor the operation child node under first node changes.And then in operation child node When number changes, step S2 is executed again, is inquired under first node with the presence or absence of the identification information with the operation of waiting Corresponding operation child node, and until inquiring corresponding operation child node, this shows that other scripts drive some terminal The operation that the terminal that the first script is driven waits is triggered, so that the first script can execute the behaviour waited with drives terminal Make, and then returns to the information being successfully tested.
Even if the time of other script drives terminal trigger actions, when waiting operation with the script drives terminal of the present embodiment Between it is different, cause not inquire running node corresponding with the operation that the terminal of script driving is waited, be based on this implementation, still may be used To keep listening state, until there is running node corresponding with the operation waited, and make the script can be with drives terminal Waited operation is executed, and then returns to the information being successfully tested, ensure that the collaboration of script.
Fig. 2 is the schematic flow diagram of another script Synergistic method shown according to embodiments of the present invention.As shown in Fig. 2, The script Synergistic method further include:
Step S4 receives the second request that the second script is sent, wherein second request includes the mark of the second scene The identification information for the operation that information and the second script drives terminal trigger in second scene;
Step S5 generates operation child node, wherein generate under node corresponding with the identification information of second scene Operation child node and the triggering operation identification information it is associated.
In one embodiment, the second script can send the second request by calling the second preset function, wherein the Two requests can be Http request.
In one embodiment, when the second script drives terminal triggers operation in the second scene, then can be Operation child node corresponding with the operation triggered is generated under the corresponding node of two scenes, so that other script drives terminals When waiting the operation of the triggering in the second scene, it can determine that the operation has been triggered according to the operation child node of generation, into And make other scripts that can execute waited operation with drives terminal.
By taking network about parking lot scape as an example, wherein the terminal of the first script driving is driver terminal, the end of the second script driving End is passenger terminal.
If the first script driving driver terminal etc. order operation to be received, reception order operation is corresponding is identified as new_ for this Order, and then inquire and whether there is operator section associated with new_order under the network about corresponding node of parking lot scape Point then will monitor whether the number for operating child node under the network about corresponding node of parking lot scape changes, and is being sent out if it does not exist When changing, inquired under the network about corresponding node of parking lot scape again with the presence or absence of operator associated with new_order Node, until operation child node associated with new_order is inquired, the first preset function that otherwise the first script is called It will be blocked, so that the first script will not drive driver terminal to execute other operations, such as cancel an order.
When the driving passenger terminal triggering of the second script generates order operation, the corresponding mark of the generation order operation is also New_order can generate operation child node associated with new_order under the network about corresponding node of parking lot scape, from And the number that child node is operated under the network about corresponding node of parking lot scape is changed, so that the method for this implementation is again Secondary inquiry whether there is operation child node associated with mark new_order under the network about corresponding node of parking lot scape, and And associated operation child node can be inquired, so that the first script can drive driver terminal to execute connecing for its waiting Single operation is received and processed subscriptions, to return to the information being successfully tested, ensure that the collaboration of the first script and the second script.
It should be noted that step S4 can be executed after step S1 as shown in Figure 2, can also be held before step S1 Row, can also execute side by side, specific execution sequence is depending on actual conditions with step S1.
Fig. 3 is the schematic flow diagram of another the script Synergistic method shown according to embodiments of the present invention.As shown in figure 3, The script Synergistic method further include:
Step S6 executes the waiting in the first script drives terminal if inquiring corresponding operation child node Operation after, delete corresponding operation child node.
In one embodiment, if inquiring operator corresponding with the identification information of operation waited in step s 2 Node, then after the first script drives terminal executes the operation waited, can delete with corresponding operation child node, and be somebody's turn to do Operation child node does not correspond to the operation that other scripts drive other terminals to be waited, therefore can drive to avoid other scripts When other terminals wait operation, then the operation child node is inquired, and query rate is caused to reduce.
Fig. 4 is the schematic flow diagram of another the script Synergistic method shown according to embodiments of the present invention.As shown in figure 4, Before receiving the first request that the first script is sent, the script Synergistic method further include:
Step S7 receives the third request that third scenario is sent, wherein the third request includes the mark of third scene First preset number of script in information, the third scene;
Step S8 determines third node associated with the identification information of the third scenario;
Step S9, record will in the third scene other scripts of drives terminal number;
Step S10 is raw under the third node when the number of other scripts is equal to first preset number At the script child node of the first preset number, wherein the mark of each script in each script child node and other described scripts Information corresponds association;
It is corresponding to trigger all script child nodes under the third node when the third scene is tested by step S11 Script.
In one embodiment, third scenario can send third request by calling third preset function, wherein the Three requests can be Http request.
It in one embodiment, can be in the creation (SET of test before receiving the first request that the first script is sent UP) stage generates the script child node under the corresponding node of scene.Wherein it is possible to record will drives terminal in the scene foot This number, due to needed under the scene number (namely first preset number) of script to be tested be it is preset, because This can be in the number of counting plus 1, until the number etc. of script whenever there is script in this scenario i.e. by drives terminal In the first preset number, then generate the corresponding script child node of each script respectively under the corresponding node of the scene.
Also, each script child node can be associated one by one with the identification information of corresponding scripts, to guarantee subsequent query Unique script child node can be inquired when some script child node.
Further, when starting test in third scene, so that it may trigger all script child nodes under third node Corresponding script, so that the script of triggering drives corresponding terminal trigger action or waits operation.Based on this, it is ensured that same All scripts under a scene when starting test while being run, the terminal for having avoided different scripts to be driven to the full extent It triggers and waits the time phase difference of associated operation not too large, namely guarantee in the embodiment shown in fig. 1, to listen to first The number required duration that changes that child node is operated under node is not too large, successfully believes so as to feedback test as early as possible Breath.
Fig. 5 is a kind of determination third section associated with the identification information of third scenario shown according to embodiments of the present invention The schematic flow diagram of point.As shown in figure 5, determination third node packet associated with the identification information of the third scenario It includes:
Step S81, it is determined whether there is third node associated with the identification information of the third scenario;
Step S82, third node, generates the third node if it does not exist;
Step S83, third node, deletes the script child node under the third node if it exists.
In one embodiment, before receiving the first request that the first script is sent, if being not present for some scene Its corresponding node, then the corresponding node of the scene can be generated in creation (SET UP) stage of test, so as to it is subsequent When being tested under the scene, the node can be quickly determined.
And it is directed to the scene its corresponding node if it exists, then whether there is script section under may further determine that it Point, script child node, then explanation crosses other scripts after tested under the scene, therefore can delete script if it exists Node is the corresponding child node of script that will be tested, avoids inquiring and survey so as to the script child node being subsequently generated The corresponding child node of the script tried and waste of resource.
Fig. 6 is the schematic flow diagram of another the script Synergistic method shown according to embodiments of the present invention.As shown in fig. 6, The script Synergistic method further include:
Step S12 receives the 4th request that the 4th script is sent, wherein the 4th request includes the mark of the 4th scene Second preset number of script in knowledge information, the 4th scene;
Step S13 determines fourth node associated with the identification information of the 4th script;
Step S14, it is described default when completing to be equal to the number of other scripts of final drive in the 4th scene Number deletes all script child nodes under the fourth node and the fourth node.
In one embodiment, the 4th script can send the 4th request by calling the 4th preset function, wherein the Four requests can be Http request.
In one embodiment, after test script, in disassembly (Tear Down) stage of test, when some script The driving to terminal is completed in some scene, namely completes test process, then can be in the corresponding script of the scene Subtract 1 on the numerical value (namely second preset number) of child node, until the numerical value is reduced to 0, then can determine in this scenario All scripts have been complete test, so as to delete all script sections under the corresponding node of the scene and the node Point, to avoid it is subsequent script is tested again when, detect the corresponding node of the scene for having already passed through test and its under Script child node, and lead to the test result of mistake.
It should be noted that the first preset function, the second preset function, third preset function and the 4th in above-described embodiment Preset function can be respectively API (Application Programming Interface, Application Programming Interface).And it is above-mentioned Corresponding four API of four functions can then be encapsulated in SDK (Software Development Kit, Software Development Kit) In.
First script, the second script, third scenario and the 4th script and other scripts, can be identical script, It can be different script, and other scripts may include the first script, the second script, third scenario and/or the 4th script, The quantity of other scripts is greater than or equal to 2.
First scene, the second scene, third scene and the 4th scene can be identical scene, be also possible to different fields Scape.
First node, second node, third node and fourth node can be identical node, be also possible to different sections Point.
Also, first node, second node, third node and fourth node, and operation child node and script child node, It can store in memory, which can be a kind of ZooKeeper (distributed, Distributed Application of open source code Program Coordination service).
Fig. 7 is a kind of specific schematic flow diagram of the script Synergistic method shown according to embodiments of the present invention.
In one embodiment, as shown in fig. 7, in the SetUp stage, the title of the third function in third request be can be WaitForStart, the mark of the first scene can be mainflow, and service to lock and send third request to call first Function creates the operation of the node of mainflow scene, can by the first script execution, can also be by the second script execution (figure The case where the two executes respectively is shown in 7, specifically can also be by one of them execution).Lock service is creating the first scene After script child node under node and the node, creation can be returned to the first script and the second script respectively and complete information.
The title of first function in test phase, the first request can be WaitFor, the second letter in the second request Several titles can be Signal, requests when lock service receives the first of the first script, can inquire the node of the first scene Under operation child node, and lock service receive the second script second request when, then can be under the node of the first scene The operation child node for generating response, inquires operation child node, can then return to the first script and be successfully tested information.
Certainly, lock service is illustrated only in Fig. 7 and first receives the first request, after the case where receiving the second request, and During actual test, can also first receive the second request, after receive the first request.
The title of the 4th function in the TearDown stage, the 4th request can be WaitForDone, and take to lock Business sends the 4th request and dismantles the operation of the node of mainflow scene to call the 4th function, can be held by the first script Row (can also be shown the case where the two executes respectively, can also specifically be held by one of them by the second script execution in Fig. 7 Row).After node and the script child node under the node of the first scene are deleted in lock service, can respectively to the first script and Second script returns to disassembly and completes information.
With the embodiment of above-mentioned script Synergistic method correspondingly, the invention also provides the implementations of script collaborative device Example.
Fig. 8 is a kind of schematic block diagram of the script collaborative device shown according to embodiments of the present invention.As shown in figure 8, described Script collaborative device includes:
Receiving module 1, for receiving the first request of the first script transmission, wherein first request includes first The identification information for the operation that the identification information of scape and the first script drives terminal wait in first scene;
First enquiry module 2, under first node associated with the identification information of first scene, inquiry with The corresponding operation child node of the identification information of the operation of the waiting;
Module 3 is monitored, if monitoring the first segment when the first enquiry module does not inquire corresponding operation child node Whether the number of the lower operation child node of point changes;
Wherein, first enquiry module 2 is also used to the operator in the case where the monitoring module 3 listens to the first node When the number of variations of node, inquiry is under the first node with the presence or absence of corresponding with the identification information of the operation of the waiting Operation child node, until inquire corresponding operation child node so that the first script drives terminal execute it is described etc. To operation.
Fig. 9 is the schematic block diagram of another script collaborative device shown according to embodiments of the present invention.As shown in figure 9, institute State the second request that receiving module 1 is also used to receive the transmission of the second script, wherein second request includes the mark of the second scene Know the identification information for the operation that information and the second script drives terminal trigger in second scene;
Described device further include:
First generation module 4, for generating operator section under node corresponding with the identification information of second scene Point, wherein the identification information of the operation of the operation child node and triggering of generation is associated.
Figure 10 is the schematic block diagram of another the script collaborative device shown according to embodiments of the present invention.As shown in Figure 10, The script collaborative device further include:
First removing module 5, if being held for inquiring corresponding operation child node in the first script drives terminal After the operation of the row waiting, corresponding operation child node is deleted.
Figure 11 is the schematic block diagram of another the script collaborative device shown according to embodiments of the present invention.As shown in Figure 10, The receiving module 1 is also used to before receiving the first request that the first script is sent, and is received the third that third scenario is sent and is asked Ask, wherein third request include the identification information of third scene, in the third scene script the first preset number;
First determining module 6, for determining third node associated with the identification information of the third scenario;
Logging modle 7, for record will in the third scene other scripts of drives terminal number;
Second generation module 8, when being equal to first preset number for the number in other scripts, described the The script child node of the first preset number is generated under three nodes, wherein each in each script child node and other described scripts The identification information of script corresponds association;
Trigger module 9, for triggering all script sections under the third node when the third scene is tested The corresponding script of point.
Figure 12 is the schematic block diagram of another the script collaborative device shown according to embodiments of the present invention.As shown in figure 12, First determining module 6 includes:
It determines submodule 61, is used to determine whether there is third section associated with the identification information of the third scenario Point;
Submodule 62 is generated, third node, generates the third node if it does not exist;
Submodule 63 is deleted, third node, deletes the script child node under the third node if it exists.
Figure 13 is the schematic block diagram of another the script collaborative device shown according to embodiments of the present invention.As shown in figure 13, The receiving module 1 is also used to receive the 4th request of the 4th script transmission, wherein the 4th request includes the 4th scene Second preset number of script in identification information, the 4th scene;
Second determining module 10, for determining fourth node associated with the identification information of the 4th script;
Second removing module 11, for working as the number etc. completed in the 4th scene to other scripts of final drive In the preset number, all script child nodes under the fourth node and the fourth node are deleted.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in relevant method It is described in detail in embodiment, no detailed explanation will be given here.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize the present invention program.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
The present invention also proposes a kind of electronic equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Receiving the first request of the first script transmission, wherein first request includes the identification information of the first scene, with And the identification information of operation that the first script drives terminal waits in first scene;
Under first node associated with the identification information of first scene, the mark of inquiry and the operation of the waiting Know the corresponding operation child node of information;
If not inquiring corresponding operation child node, whether the number for monitoring operation child node under the first node becomes Change, if variation, inquiry whether there is behaviour corresponding with the identification information of the operation of the waiting under the first node Make child node, until corresponding operation child node is inquired, so that the first script drives terminal executes the waiting Operation.
The present invention also proposes a kind of computer readable storage medium, is stored thereon with computer program, and the program is processed Device performs the steps of when executing
Receiving the first request of the first script transmission, wherein first request includes the identification information of the first scene, with And the identification information of operation that the first script drives terminal waits in first scene;
Under first node associated with the identification information of first scene, the mark of inquiry and the operation of the waiting Know the corresponding operation child node of information;
If not inquiring corresponding operation child node, whether the number for monitoring operation child node under the first node becomes Change, if variation, inquiry whether there is behaviour corresponding with the identification information of the operation of the waiting under the first node Make child node, until corresponding operation child node is inquired, so that the first script drives terminal executes the waiting Operation.
Those skilled in the art are considering specification and after practicing disclosure disclosed herein, will readily occur to of the invention its Its embodiment.The present invention is directed to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (14)

1. a kind of script Synergistic method characterized by comprising
Receive the first request of the first script transmission, wherein first request includes the identification information of the first scene, Yi Jisuo State the identification information for the operation that the first script drives terminal waits in first scene;
Under first node associated with the identification information of first scene, the mark of inquiry and the operation of the waiting is believed The corresponding operation child node of manner of breathing;
If not inquiring corresponding operation child node, whether the number for monitoring operation child node under the first node changes, If variation, inquiry whether there is operator corresponding with the identification information of the operation of the waiting under the first node Node, until corresponding operation child node is inquired, so that the first script drives terminal executes the operation of the waiting.
2. the method according to claim 1, wherein further include:
Receive the second request of the second script transmission, wherein second request includes the identification information of the second scene, Yi Jisuo State the identification information for the operation that the second script drives terminal triggers in second scene;
Operation child node is generated under node corresponding with the identification information of second scene, wherein the operator section of generation The identification information of the operation of point and the triggering is associated.
3. the method according to claim 1, wherein further include:
If inquiring corresponding operation child node, after the first script drives terminal executes the operation of the waiting, delete Except corresponding operation child node.
4. according to the method in any one of claims 1 to 3, which is characterized in that receiving the first of the transmission of the first script Before request, the script Synergistic method further include:
Receive the third request that third scenario is sent, wherein third request includes the identification information of third scene, described the First preset number of script in three scenes;
Determine third node associated with the identification information of the third scenario;
Record will in the third scene other scripts of drives terminal number;
When the number of other scripts is equal to first preset number, the first present count is generated under the third node Purpose script child node, wherein the identification information of each script corresponds in each script child node and other described scripts Association;
When the third scene is tested, the corresponding script of all script child nodes under the third node is triggered.
5. according to the method described in claim 4, it is characterized in that, the determination is related to the identification information of the third scenario The third node of connection includes:
Determine whether there is third node associated with the identification information of the third scenario;
Third node if it does not exist generates the third node;
Third node if it exists deletes the script child node under the third node.
6. according to the method described in claim 4, it is characterized by further comprising:
Receive the 4th request of the 4th script transmission, wherein the 4th request includes the identification information of the 4th scene, described the Second preset number of script in four scenes;
Determine fourth node associated with the identification information of the 4th script;
When completing to be equal to the preset number to the number of other scripts of final drive in the 4th scene, described in deletion All script child nodes under fourth node and the fourth node.
7. a kind of script collaborative device characterized by comprising
Receiving module, for receiving the first request of the first script transmission, wherein first request includes the mark of the first scene Know the identification information for the operation that information and the first script drives terminal wait in first scene;
First enquiry module, under first node associated with the identification information of first scene, inquiry with it is described The corresponding operation child node of the identification information of the operation of waiting;
Module is monitored, if monitoring under the first node when the first enquiry module does not inquire corresponding operation child node Whether the number of operation child node changes;
Wherein, first enquiry module is also used to operate child node in the case where the monitoring module listens to the first node When number of variations, inquiry whether there is operation corresponding with the identification information of the operation of the waiting under the first node Child node, until corresponding operation child node is inquired, so that the first script drives terminal executes the behaviour of the waiting Make.
8. the method according to the description of claim 7 is characterized in that the receiving module is also used to receive the transmission of the second script Second request, wherein identification information and the second script drives terminal of second request including the second scene are in institute State the identification information of the operation triggered in the second scene;
Described device further include:
First generation module, for generating operation child node under node corresponding with the identification information of second scene, In, the identification information of the operation of the operation child node and triggering of generation is associated.
9. the method according to the description of claim 7 is characterized in that further include:
First removing module, if executing institute in the first script drives terminal for inquiring corresponding operation child node After the operation for stating waiting, corresponding operation child node is deleted.
10. method according to any one of claims 7 to 9, which is characterized in that the receiving module is also used to receiving Before the first request that first script is sent, the third request that third scenario is sent is received, wherein third request includes the First preset number of script in the identification information of three scenes, the third scene;
First determining module, for determining third node associated with the identification information of the third scenario;
Logging modle, for record will in the third scene other scripts of drives terminal number;
Second generation module, when being equal to first preset number for the number in other scripts, in the third section The lower script child node for generating the first preset number of point, wherein each script in each script child node and other described scripts Identification information correspond association;
Trigger module, for triggering all script child nodes pair under the third node when the third scene is tested The script answered.
11. according to the method described in claim 10, it is characterized in that, first determining module includes:
It determines submodule, is used to determine whether there is third node associated with the identification information of the third scenario;
Submodule is generated, third node, generates the third node if it does not exist;
Submodule is deleted, third node, deletes the script child node under the third node if it exists.
12. according to the method described in claim 10, it is characterized in that, the receiving module is also used to receive the transmission of the 4th script The 4th request, wherein the 4th request includes the identification information of the 4th scene, script is second pre- in the 4th scene If number;
Second determining module, for determining fourth node associated with the identification information of the 4th script;
Second removing module, for described when completing to be equal to the number of other scripts of final drive in the 4th scene Preset number deletes all script child nodes under the fourth node and the fourth node.
13. a kind of electronic equipment characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Receive the first request of the first script transmission, wherein first request includes the identification information of the first scene, Yi Jisuo State the identification information for the operation that the first script drives terminal waits in first scene;
Under first node associated with the identification information of first scene, the mark of inquiry and the operation of the waiting is believed The corresponding operation child node of manner of breathing;
If not inquiring corresponding operation child node, whether the number for monitoring operation child node under the first node changes, If variation, inquiry whether there is operator corresponding with the identification information of the operation of the waiting under the first node Node, until corresponding operation child node is inquired, so that the first script drives terminal executes the operation of the waiting.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor It is performed the steps of when execution
Receive the first request of the first script transmission, wherein first request includes the identification information of the first scene, Yi Jisuo State the identification information for the operation that the first script drives terminal waits in first scene;
Under first node associated with the identification information of first scene, the mark of inquiry and the operation of the waiting is believed The corresponding operation child node of manner of breathing;
If not inquiring corresponding operation child node, whether the number for monitoring operation child node under the first node changes, If variation, inquiry whether there is operator corresponding with the identification information of the operation of the waiting under the first node Node, until corresponding operation child node is inquired, so that the first script drives terminal executes the operation of the waiting.
CN201711007538.5A 2017-10-25 2017-10-25 Script cooperation method and device Active CN109714373B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711007538.5A CN109714373B (en) 2017-10-25 2017-10-25 Script cooperation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711007538.5A CN109714373B (en) 2017-10-25 2017-10-25 Script cooperation method and device

Publications (2)

Publication Number Publication Date
CN109714373A true CN109714373A (en) 2019-05-03
CN109714373B CN109714373B (en) 2021-10-12

Family

ID=66252380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711007538.5A Active CN109714373B (en) 2017-10-25 2017-10-25 Script cooperation method and device

Country Status (1)

Country Link
CN (1) CN109714373B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973725A (en) * 2013-01-28 2014-08-06 阿里巴巴集团控股有限公司 Distributed collaboration method and collaboration device
US9021440B1 (en) * 2014-08-11 2015-04-28 Pmc-Sierra Us, Inc. System and method for automated test script generation
CN106055367A (en) * 2016-06-01 2016-10-26 腾讯科技(深圳)有限公司 Script file loading method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973725A (en) * 2013-01-28 2014-08-06 阿里巴巴集团控股有限公司 Distributed collaboration method and collaboration device
US9021440B1 (en) * 2014-08-11 2015-04-28 Pmc-Sierra Us, Inc. System and method for automated test script generation
CN106055367A (en) * 2016-06-01 2016-10-26 腾讯科技(深圳)有限公司 Script file loading method and device

Also Published As

Publication number Publication date
CN109714373B (en) 2021-10-12

Similar Documents

Publication Publication Date Title
US8498635B2 (en) Dynamic fault analysis for a centrally managed network element in a telecommunications system
CN109048996B (en) Robot abnormal state processing method and device
CN104765678A (en) Method and device for testing applications on mobile terminal
CN110765024A (en) Simulation test method, simulation test device, electronic equipment and computer-readable storage medium
CN107786430B (en) Robot chatting method and system
CN110427324B (en) Joint debugging system, joint debugging method, computer equipment and storage medium
CN108920146A (en) Page control assembly and visual Simulation operating system
CN111625810B (en) Equipment login method, equipment and system
US20210174286A1 (en) System and Method of Running an Agent Guide Script-Flow in an Employee Desktop Web Client
CN114726789A (en) Method, device, equipment and medium for traffic management and traffic management policy configuration
CN105573842B (en) The method and device of process recovery processing is carried out in the application
CN109714373A (en) Script Synergistic method and device
CN110389886B (en) Additional function testing method and device of main application program and storage medium
CN105763365A (en) Method and device for processing anomaly
CN105975359A (en) Method and device for data cleaning of server and server
CN105245535A (en) Multi-client uniform management method and system
CN105607953B (en) The method and device of process recovery processing is carried out in the application
CN110262871B (en) Container instance start-stop method and device for container application, computer equipment and storage medium
CN113419829A (en) Job scheduling method, device, scheduling platform and storage medium
CN109933908A (en) A kind of service node model store method, application method and device
CN113869841A (en) Workflow control method, system and storage medium
CN106850245B (en) Diagnostic test message processing method and device
CN112148348B (en) Task processing method, device and storage medium
CN104298750B (en) Renewal processing method and processing device for real-time system communication
CN115344473A (en) Software testing method, device, terminal, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant