CN104239199A - Virtual robot generation method, automatic test method and related device - Google Patents

Virtual robot generation method, automatic test method and related device Download PDF

Info

Publication number
CN104239199A
CN104239199A CN201310241617.8A CN201310241617A CN104239199A CN 104239199 A CN104239199 A CN 104239199A CN 201310241617 A CN201310241617 A CN 201310241617A CN 104239199 A CN104239199 A CN 104239199A
Authority
CN
China
Prior art keywords
predetermined registration
virtual robot
registration operation
measurand
program
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
CN201310241617.8A
Other languages
Chinese (zh)
Other versions
CN104239199B (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.)
Hangzhou Alibaba Overseas Internet Industry Co ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201310241617.8A priority Critical patent/CN104239199B/en
Publication of CN104239199A publication Critical patent/CN104239199A/en
Application granted granted Critical
Publication of CN104239199B publication Critical patent/CN104239199B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Manipulator (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a virtual robot generation method, an automatic test method and a related device. The virtual robot generation method includes: acquiring operation identifications of multiple preset operations needed to be executed when a virtual robot tests a tested object; indicating a user to train the virtual robot to be capable of executing the preset operations on the basis of the operation identification of each preset operation; generating programs needed by the virtual robot for executing each preset operation according to operations executed to the operation identification of each preset operation by the user; establishing a corresponding relation between a preset attribute parameter and each generated program to generate the virtual robot which is provided with the preset attribute parameter and adopts the programs to execute the multiple preset operations on the tested object. By means of the scheme, workload during automatic testing is relieved for testers while testing efficiency is improved.

Description

The generation method of virtual robot, automated testing method and relevant apparatus
Technical field
The application relates to automatization testing technique field, particularly relates to a kind of generation method of the virtual robot for automatic test, automated testing method and relevant apparatus.
Background technology
When using existing automated testing method to test measurand, normally first need to write test case according to test for measurand, then writing corresponding automatized script according to test case, when testing, completing the test to measurand by operation automatized script.
Wherein, test case generally represents some fixing operations performed measurand according to fixing order, accordingly, run the automatized script that this test case is corresponding, namely can realize performing these fixing operations according to this fixing order to measurand, thus the test completed measurand, obtain test result.
From above-mentioned existing automated testing method, need to write test case when testing, and write corresponding automatized script according to test case, and test case and automatized script write the extensive work needing to consume tester, and when the attribute of measurand frequently changes, need to safeguard accordingly test case and automatized script, also need to consume the more workload of tester.Further, writing and maintenance work of a large amount of test cases and automatized script, also reduces the efficiency of carrying out automatic test.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of generation method of virtual robot, automated testing method and relevant apparatus, and the workload consuming tester when carrying out automatic test for solving in prior art is comparatively large, and inefficient problem.
The embodiment of the present application is achieved through the following technical solutions:
The embodiment of the present application provides a kind of generation method of the virtual robot for automatic test, comprising:
Obtain the operation mark needing the multiple predetermined registration operation performed when using virtual robot to test measurand;
Respectively based on the operation mark of each predetermined registration operation, indicating user training virtual robot has the ability performing this predetermined registration operation;
Respectively according to the operation that user performs for the operation mark of each predetermined registration operation, generating virtual machine people performs the required program used of this predetermined registration operation;
By setting up the corresponding relation between the preset attribute parameter of virtual robot and the described program of generation, generation has described preset attribute parameter, and use described program to perform the virtual robot of described multiple predetermined registration operation to described measurand, described preset attribute parameter for the virtual robot that generates in the process that described measurand is tested from the operation that main separation will perform.
The embodiment of the present application additionally provides a kind of method that virtual robot using above-mentioned generation method to generate carries out automatic test, comprising:
The virtual robot generated, after startup test, is selected property parameters according to the operation in the preset attribute parameter of virtual robot, is determined this operation that will perform described measurand;
Use the described program corresponding to operation that will perform, corresponding operation is performed to described measurand, obtains operating result;
By judging property parameters according to the result in described preset attribute parameter, to the judgement of described operating result, determine next time to the operation that described measurand will perform, or terminate the test to described measurand.
The embodiment of the present application additionally provides a kind of generating apparatus of the virtual robot for automatic test, comprising:
Mark acquiring unit, needs the operation mark of the multiple predetermined registration operation performed during for obtaining and using virtual robot to test measurand;
Indicating member, for respectively based on the operation mark of each predetermined registration operation, indicating user training virtual robot has the ability performing this predetermined registration operation;
Program Generating unit, for respectively according to the operation that user performs for the operation mark of each predetermined registration operation, generating virtual machine people performs the required program used of this predetermined registration operation;
Robot generation unit, for the corresponding relation by setting up between the preset attribute parameter of virtual robot and the described program of generation, generation has described preset attribute parameter, and use described program to perform the virtual robot of described multiple predetermined registration operation to described measurand, described preset attribute parameter for the virtual robot that generates in the process that described measurand is tested from the operation that main separation will perform.
The embodiment of the present application additionally provides a kind of automatic test device, is integrated in the virtual robot using above-mentioned generating apparatus to generate, comprises:
Operation selection unit, for the virtual robot that generates after startup test, selects property parameters according to the operation in the preset attribute parameter of virtual robot, determines this operation that will perform described measurand;
Operation execution unit, for using the program corresponding to the described operation that will perform, performing corresponding operation to described measurand, obtaining operating result;
Result treatment unit, for by judging property parameters according to the result in described preset attribute parameter, to the judgement of described operating result, determines next time to the operation that described measurand will perform, or terminates the test to described measurand.
In the above-mentioned virtual robot generation scheme that the embodiment of the present application provides, first the operation mark needing the multiple predetermined registration operation performed when using virtual robot to test measurand is obtained, and respectively based on the operation mark of each predetermined registration operation, indicating user training virtual robot has the ability performing this predetermined registration operation, and respectively according to the operation that user performs for the operation mark of each predetermined registration operation, generating virtual machine people performs the program that this predetermined registration operation uses, then by setting up the corresponding relation between the preset attribute parameter of virtual robot and the program of generation, generation has this preset attribute parameter, and use this program to perform the virtual robot of the plurality of predetermined registration operation to measurand, wherein, preset attribute parameter for the virtual robot that generates in the process that measurand is tested from the operation that main separation will perform.By after such scheme generating virtual machine people, this virtual robot namely can be used to be tested measurand by the operation that will perform from main separation.Compared to existing technology, no longer need writing of the automatized script of test case and corresponding test case, thus also with regard to no longer needing, test case and automatized script are safeguarded, only need by after man-machine interaction generating virtual machine people, by autonomous the testing measurand of virtual robot, decrease the workload of tester in automatic test course, and improve testing efficiency.
The further feature of the application and advantage will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the application.The object of the application and other advantages realize by structure specifically noted in write instructions, claims and accompanying drawing and obtain.
Accompanying drawing explanation
Accompanying drawing is used to provide further understanding of the present application, and forms a part for instructions, is used from explanation the application with the embodiment of the present application one, does not form the restriction to the application.In the accompanying drawings:
The process flow diagram of the generation method of the virtual robot for automatic test that Fig. 1 provides for the embodiment of the present application;
The virtual robot that shown in above-mentioned Fig. 1 of use that Fig. 2 provides for the embodiment of the present application, method generates carries out the process flow diagram of the method for automatic test;
The process flow diagram of the generation method of virtual robot for automatic test of Fig. 3 for providing in the embodiment of the present application 1;
The virtual robot that the generation method that Fig. 4 is the above-mentioned virtual robot of use provided in the embodiment of the present application 2 generates carries out the process flow diagram of the method for automatic test;
The structural representation of the generating apparatus of the virtual robot for automatic test that Fig. 5 provides for the embodiment of the present application 3;
The structural representation of the automatic test device that Fig. 6 provides for the embodiment of the present application 4.
Embodiment
In order to be given in carry out automatic test process in reduce the workload of tester, and improve the implementation of testing efficiency, the embodiment of the present application provides a kind of generation method of virtual robot, automated testing method and relevant apparatus, this technical scheme can be applied to the process of carrying out automatic test, both can be implemented as a kind of method, also can be implemented as a kind of device.Be described below in conjunction with the preferred embodiment of Figure of description to the application, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the application, and be not used in restriction the application.And when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
The embodiment of the present application provides a kind of generation method of the virtual robot for automatic test, as shown in Figure 1, comprising:
Step 101, acquisition need the operation mark of the multiple predetermined registration operation performed when using virtual robot to test measurand.
Step 102, respectively based on the operation mark of each predetermined registration operation, indicating user training virtual robot has and performs the ability of this predetermined registration operation.
Step 103, respectively according to the operation that user performs for the operation mark of each predetermined registration operation, generating virtual machine people performs the required program used of this predetermined registration operation.
Step 104, by setting up the corresponding relation between the preset attribute parameter of virtual robot and this program of generation, generation has this preset attribute parameter, and use this program to perform the virtual robot of the plurality of predetermined registration operation to measurand, preset attribute parameter for the virtual robot that generates in the process that measurand is tested from the operation that main separation will perform.
Accordingly, the embodiment of the present application also provides a kind of virtual robot using method shown in above-mentioned Fig. 1 to generate to carry out the method for automatic test, as shown in Figure 2, comprising:
The virtual robot of step 201, generation, after startup test, is selected property parameters according to the operation in the preset attribute parameter of virtual robot, is determined this operation that will perform measurand.
Step 202, use this program corresponding to operation that will perform, corresponding operation is performed to measurand, obtains operating result.
Step 203, by judging property parameters according to the result in this preset attribute parameter, to the judgement of this operating result, determine next time to the operation that measurand will perform, or the test of end to measurand.
The such scheme that the embodiment of the present application provides, can be applied in the automatic test to some application software, also can be applied in the automatic test to website, wherein, the predetermined registration operation performed is needed when measurand is tested, can arrange flexibly according to the characteristic of measurand and test needs, such as, take measurand as e-commerce website be example, predetermined registration operation can operate for products browse, product purchase operates, product evaluation operations etc. use the various operations that may perform during e-commerce website in reality, and products browse operation specifically can also comprise and operating the products browse of various classification product.
In the such scheme that the embodiment of the present application provides, the preset attribute parameter of virtual robot can make virtual robot in the process of testing measurand from the operation that main separation will perform, can be specifically some stray parameters, so that the operation that virtual robot will be able to perform from main separation, thus the situation of true man to measurand practical operation can be simulated, make test process closer to truth, also just make test result can react the actual conditions of measurand more accurately.
The preset attribute parameter of virtual robot also can be arranged according to the characteristic of measurand and test needs flexibly, as a rule, operation can be comprised and select property parameters, for selecting this operation that will perform measurand from multiple operation, take measurand as e-commerce website be example, after entering e-commerce website homepage, can operating from products browse, select an operation to perform advertisement browse operation and account register, property parameters can be selected to select according to operation when selecting.
Further, target selection property parameters can also be comprised, for selecting this to the Action Target of the operation that measurand will perform from multiple Action Target, take measurand as e-commerce website be example, when this will perform be operating as products browse operation time, optional Action Target can for the various product classifications on e-commerce website belonging to release product, when selecting Action Target, one can be selected from multiple product classification, as the Action Target of the products browse operation that will perform according to target selection property parameters.
Preset attribute parameter can also comprise result and judge property parameters, for according to performing the operating result obtained after single job, determine next time to the operation that measurand will perform, or the test terminated measurand, take measurand as e-commerce website be example, when after the operation of execution products browse, the operating result obtained is enter into the product purchase page comprising product detail information, now can judge property parameters according to result, determine to carry out product purchase operation to this product, as performed when product detail information meets pre-conditioned, also the operation returning previous page can be performed, and triggering performs products browse operation next time, when the operating result obtained is failing to enter the product purchase page comprising product detail information after preset duration, now can perform the operation returning previous page, also the test to measurand can be terminated, when the operating result that also can obtain after execution returns the operation of previous page is for failing to return previous page, terminate the test to measurand.
In the such scheme that the embodiment of the present application provides, can also distinguish the type of virtual robot, specifically can be distinguished by preset attribute parameter, the preset attribute parameter of namely dissimilar virtual robot is different, thus making dissimilar virtual robot when testing same measurand, the emphasis of its test can be different.Such as, true man can be simulated and virtual robot is divided into the elderly's type, young man's type, man's type, woman's type etc., wherein, it is different to wrong perceptibility that dissimilar virtual robot can be embodied in operating result, also can be embodied in the tolerance in the reaction time of operation different, also can be embodied in the point of interest of things different.Such as, the virtual robot of the elderly's type is to the tolerance in the reaction time of various operation, be greater than the virtual robot of young man's type to the tolerance in the reaction time of various operation, when the virtual robot of woman's type performs products browse operation on e-commerce website, more browse clothing object product, when the virtual robot of man's type performs products browse operation on e-commerce website, more browse electrical type object product.
When being distinguished by the type of preset attribute parameter to virtual robot, specifically can be distinguished by the difference of parameter value, such as, characterize the time threshold of the tolerance in the reaction time of various operation different, when operation is selected to carry out Stochastic choice for various operation in property parameters, the select probability difference that often kind of operation is corresponding, when carrying out Stochastic choice for various Action Target in target selection property parameters, the select probability difference that often kind of Action Target is corresponding.
In the such scheme that the embodiment of the present application provides, except the various predetermined registration operation of above-mentioned citing and preset attribute parameter, can also according to the characteristic of measurand and test needs, the operation that can perform measurand that other is concrete is set flexibly, and will the property parameters of executable operations from main separation for virtual robot in test process, no longer illustrate at this and be described.
Below in conjunction with accompanying drawing, be described in detail by the treatment scheme of specific embodiment to the method that the application provides.
Embodiment 1:
A kind of generation method of the virtual robot for automatic test is provided in the embodiment of the present application 1, as shown in Figure 3, specifically comprises following treatment step:
Step 301, by human-computer interaction interface, provide selectable robot type to user.
Further, while selectable robot type is provided, the attribute information of this robot type can also be shown for Mei Zhong robot type, as some preset attribute parameters of the virtual robot of this robot type.
The robot type that step 302, acquisition user select.
Step 303, acquisition need the operation mark of the multiple predetermined registration operation performed when using virtual robot to test measurand.
Further, need the multiple predetermined registration operation performed can be different when dissimilar virtual robot is tested measurand, also can be identical, when difference, this step is specially the operation mark needing the multiple predetermined registration operation performed when the virtual robot obtaining the robot type that user selects is tested measurand.
Step 304, by human-computer interaction interface, respectively based on the operation mark of each predetermined registration operation, indicating user training virtual robot has and performs the ability of this predetermined registration operation.
In this step, based on the operation mark of a predetermined registration operation, indicating user training virtual robot has the ability performing this predetermined registration operation, specifically can adopt the following two kinds indicating mode:
The first indicating mode: operation mark and the program code of a display predetermined registration operation write interface, wherein, this program code is write interface and is had the ability performing this predetermined registration operation for training virtual robot;
The second indicating mode: the operation mark of a display predetermined registration operation and program code recording interface, wherein, this program code recording interface is used for training virtual robot and has the ability performing this predetermined registration operation.
Step 305, respectively according to the operation that user performs for the operation mark of each predetermined registration operation, generating virtual machine people performs the required program used of this predetermined registration operation.
In this step, according to the operation that user performs for the operation mark of a predetermined registration operation, generating virtual machine people performs the required program used of this predetermined registration operation, and two kinds of indicating modes that specifically can provide in corresponding above-mentioned steps 304 respectively, adopt the following two kinds generating mode:
The first generating mode: corresponding with the first indicating mode above-mentioned, write for the operation mark of a predetermined registration operation program code inputted in interface at this program code according to user, generate the program that this program code is corresponding, perform the program used required for this predetermined registration operation as virtual robot;
The second generating mode: corresponding with above-mentioned the second indicating mode, according to user for the operation mark of a predetermined registration operation in this program code recording interface to this predetermined registration operation that measurand performs, generating virtual machine people performs the required program used of this predetermined registration operation, namely this second generating mode is the equal of adopt the mode recorded, according to the practical operation of user, generate and perform the required program used of this practical operation.
In the embodiment of the present application 1, when needing multiple predetermined registration operation of execution identical when dissimilar virtual robot is tested measurand, each step in above-mentioned steps 301-step 302, and between each step in above-mentioned steps 303-step 305, there is no strict sequencing.
Step 306, by setting up the corresponding relation between the preset attribute parameter of virtual robot and the program of generation, generation has this preset attribute parameter, and use this program to perform the virtual robot of the plurality of predetermined registration operation to measurand, wherein, preset attribute parameter for the virtual robot that generates in the process that measurand is tested from the operation that main separation will perform.
When needing the multiple predetermined registration operation difference performed when dissimilar virtual robot is tested measurand, this step is specifically as follows the corresponding relation between the preset attribute parameter of the virtual robot setting up the robot type that user selects and this program of generation.
Above-mentioned preset attribute parameter and perform the foundation of corresponding relation between the required program used of multiple predetermined registration operation, makes virtual robot can in follow-up process of testing measurand, according to this preset attribute parameter, from the operation that main separation will perform.Specifically can be realized by the use of some stray parameters, no longer illustrating at this is described.
Embodiment 2:
There is provided a kind of virtual robot using the generation method of above-mentioned virtual robot to generate to carry out the method for automatic test in the embodiment of the present application 2, as shown in Figure 4, specifically comprise following treatment step:
Step 401, virtual robot, after startup test, are selected property parameters according to the operation in the preset attribute parameter of virtual robot, are determined this operation that will perform measurand.
Step 402, according to the target selection property parameters in the preset attribute parameter of virtual robot, determine this Action Target to the operation that measurand will perform.
This step is optional step.
Step 403, use this program corresponding to operation that will perform, corresponding operation is performed to measurand, obtains operating result.
When performing above-mentioned steps 402, this step is specifically as follows the program using this corresponding to operation that will perform, and performs corresponding operation to this Action Target of measurand.
The operating result obtained in this step, can for after this operation of execution, and the response results obtained after measurand successfully responds, after also can performing this operation, characterizes measurand unsuccessful result of carrying out responding in preset duration.
In this step, preferably, after obtaining operating result, this operating result can also be shown in result display interface, so that user understands current test case in time at every turn.
Step 404, judge property parameters according to the result in the preset attribute parameter of virtual robot, this operating result obtained is judged, and according to judged result, determines next time to the operation that measurand will perform, or terminate the test to measurand.
Such as, when operating result be characterize measurand in preset duration unsuccessful carry out the result responded time, enter step 405, when operating result is the response results obtained after measurand successfully responds, enter step 406.
Step 405, the test terminating measurand.
Step 406, to determine next time to the operation that measurand will perform.
In this step, specifically can operation performed by this, determine to operate with this corresponding next time to measurand perform can selection operation, then from can an operation be selected as next time to the operation that measurand will perform selection operation, Stochastic choice can be carried out according to different select probability when selecting.
When not needing the operation performed by this to select the operation that will perform measurand next time, above-mentioned steps 401 can be returned, again select property parameters according to the operation in the preset attribute parameter of virtual robot, determine next time to the operation that measurand will perform.Thus make virtual robot can continue the treatment scheme of testing measurand.
The above-mentioned use virtual robot that the embodiment of the present application 2 provides carries out in the method for automatic test, the test termination condition irrelevant with operating result can also be pre-set, and when meeting this test termination condition, terminate the test to measurand, such as, test finish time is set or length of testing speech is set as test termination condition, accordingly, when arrival test finish time, or through length of testing speech from test, terminate the test to measurand.
In the such scheme that the embodiment of the present application provides, after generating virtual machine people, this virtual robot namely can be used to be tested measurand by the operation that will perform from main separation.Compared to existing technology, no longer need writing of the automatized script of test case and corresponding test case, thus also with regard to no longer needing, test case and automatized script are safeguarded, only need by after man-machine interaction generating virtual machine people, by autonomous the testing measurand of virtual robot, decrease the workload of tester in automatic test course, and improve testing efficiency.
Embodiment 3:
Based on same inventive concept, according to the generation method of the virtual robot for automatic test that the above embodiments of the present application provide, correspondingly, the embodiment of the present application 3 additionally provides a kind of generating apparatus of the virtual robot for automatic test, its structural representation as shown in Figure 5, specifically comprises:
Mark acquiring unit 501, needs the operation mark of the multiple predetermined registration operation performed during for obtaining and using virtual robot to test measurand;
Indicating member 502, for respectively based on the operation mark of each predetermined registration operation, indicating user training virtual robot has the ability performing this predetermined registration operation;
Program Generating unit 503, for respectively according to the operation that user performs for the operation mark of each predetermined registration operation, generating virtual machine people performs the required program used of this predetermined registration operation;
Robot generation unit 504, for the corresponding relation by setting up between the preset attribute parameter of virtual robot and the described program of generation, generation has described preset attribute parameter, and use described program to perform the virtual robot of described multiple predetermined registration operation to described measurand, described preset attribute parameter for the virtual robot that generates in the process that described measurand is tested from the operation that main separation will perform.
Further, indicating member 502, specifically in the following way based on the operation mark of a predetermined registration operation, indicating user training virtual robot has the ability performing this predetermined registration operation:
Operation mark and the program code of a display predetermined registration operation write interface, and wherein, described program code is write interface and had the ability performing this predetermined registration operation for training virtual robot;
Program Generating unit 503, specifically in the following way according to the operation that user performs for the operation mark of a predetermined registration operation, generating virtual machine people performs the required program used of this predetermined registration operation:
Write for the operation mark of a predetermined registration operation program code inputted in interface according to user at described program code, generate the program that described program code is corresponding, perform the program used required for this predetermined registration operation as virtual robot.
Further, indicating member 502, specifically in the following way based on the operation mark of a predetermined registration operation, indicating user training virtual robot has the ability performing this predetermined registration operation:
The operation mark of a display predetermined registration operation and program code recording interface, wherein, described program code recording interface is used for training virtual robot and has the ability performing this predetermined registration operation;
Program Generating unit 503, specifically in the following way according to the operation that user performs for the operation mark of a predetermined registration operation, generating virtual machine people performs the required program used of this predetermined registration operation:
According to user for the operation mark of a predetermined registration operation in described program code recording interface to this predetermined registration operation that described measurand performs, generating virtual machine people performs the required program used of this predetermined registration operation.
Further, above-mentioned generating apparatus, also comprises:
Type acquiring unit 505, for obtaining the robot type that user selects;
Robot generation unit 504, specifically for setting up the corresponding relation between the preset attribute parameter of the virtual robot of described robot type and the described program of generation.
Embodiment 4:
Based on same inventive concept, the virtual robot that the above-mentioned generation method of the use provided according to the above embodiments of the present application generates carries out the method for automatic test, correspondingly, the embodiment of the present application 4 additionally provides a kind of automatic test device, be integrated in the virtual robot using above-mentioned generating apparatus to generate, also can be equivalent to the virtual robot using above-mentioned generating apparatus to generate, its structural representation as shown in Figure 6, specifically comprises:
Operation selection unit 601, for the virtual robot that generates after startup test, selects property parameters according to the operation in the preset attribute parameter of virtual robot, determines this operation that will perform described measurand;
Operation execution unit 602, for using the program corresponding to the described operation that will perform, performing corresponding operation to described measurand, obtaining operating result;
Result treatment unit 603, for by judging property parameters according to the result in described preset attribute parameter, to the judgement of described operating result, determines next time to the operation that described measurand will perform, or terminates the test to described measurand.
Further, above-mentioned automatic test device, also comprises:
Target selection unit 604, for the program corresponding to the operation that will perform described in using in described operation execution unit, before corresponding operation is performed to described measurand, according to the target selection property parameters in described preset attribute parameter, determine this Action Target to the operation that described measurand will perform;
Operation execution unit 602, specifically for using the program corresponding to the described operation that will perform, performs corresponding operation to the described Action Target of described measurand.
Further, above-mentioned automatic test device, also comprises:
Result display unit 605, for after obtaining operating result at every turn, shows described operating result in result display interface.
The function of above-mentioned each unit may correspond to the respective handling step in flow process shown in Fig. 1 to Fig. 4, does not repeat them here.
In sum, the scheme that the embodiment of the present application provides, comprising: the operation mark obtaining multiple predetermined registration operation that needs perform when using virtual robot to test measurand; And respectively based on the operation mark of each predetermined registration operation, indicating user training virtual robot has the ability performing this predetermined registration operation; And respectively according to the operation that user performs for the operation mark of each predetermined registration operation, generating virtual machine people performs the required program used of this predetermined registration operation; And by setting up the corresponding relation between the preset attribute parameter of virtual robot and this program of generation, generation has this preset attribute parameter, and use this program to perform the virtual robot of the plurality of predetermined registration operation to measurand, preset attribute parameter for the virtual robot that generates in the process that measurand is tested from the operation that main separation will perform.The scheme adopting the embodiment of the present application to provide, decreases the workload of tester in automatic test course, and improves testing efficiency.
The generating apparatus that the embodiment of the application provides and automatic test device realize by computer program.Those skilled in the art should be understood that; above-mentioned Module Division mode is only the one in numerous Module Division mode; if be divided into other modules or do not divide module, as long as generating apparatus and automatic test device have above-mentioned functions, all should within the protection domain of the application.
The application describes with reference to according to the process flow diagram of the method for the embodiment of the present application, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
In one typically configuration, described computer equipment comprises one or more processor (CPU), input/output interface, network interface and internal memory.Internal memory may comprise the volatile memory in computer-readable medium, and the forms such as random access memory (RAM) and/or Nonvolatile memory, as ROM (read-only memory) (ROM) or flash memory (flash RAM).Internal memory is the example of computer-readable medium.Computer-readable medium comprises permanent and impermanency, removable and non-removable media can be stored to realize information by any method or technology.Information can be computer-readable instruction, data structure, the module of program or other data.The example of the storage medium of computing machine comprises, but be not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic RAM (DRAM), the random access memory (RAM) of other types, ROM (read-only memory) (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc ROM (read-only memory) (CD-ROM), digital versatile disc (DVD) or other optical memory, magnetic magnetic tape cassette, tape magnetic rigid disk stores or other magnetic storage apparatus or any other non-transmitting medium, can be used for storing the information can accessed by computing equipment.According to defining herein, computer-readable medium does not comprise the computer readable media (transitory media) of non-standing, as data-signal and the carrier wave of modulation.
Obviously, those skilled in the art can carry out various change and modification to the application and not depart from the spirit and scope of the application.Like this, if these amendments of the application and modification belong within the scope of the application's claim and equivalent technologies thereof, then the application is also intended to comprise these change and modification.

Claims (14)

1., for a generation method for the virtual robot of automatic test, it is characterized in that, comprising:
Obtain the operation mark needing the multiple predetermined registration operation performed when using virtual robot to test measurand;
Respectively based on the operation mark of each predetermined registration operation, indicating user training virtual robot has the ability performing this predetermined registration operation;
Respectively according to the operation that user performs for the operation mark of each predetermined registration operation, generating virtual machine people performs the required program used of this predetermined registration operation;
By setting up the corresponding relation between the preset attribute parameter of virtual robot and the described program of generation, generation has described preset attribute parameter, and use described program to perform the virtual robot of described multiple predetermined registration operation to described measurand, described preset attribute parameter for the virtual robot that generates in the process that described measurand is tested from the operation that main separation will perform.
2. the method for claim 1, is characterized in that, based on the operation mark of a predetermined registration operation, indicating user training virtual robot has the ability performing this predetermined registration operation, specifically comprises:
Operation mark and the program code of a display predetermined registration operation write interface, and wherein, described program code is write interface and had the ability performing this predetermined registration operation for training virtual robot;
According to the operation that user performs for the operation mark of a predetermined registration operation, generating virtual machine people performs the required program used of this predetermined registration operation, specifically comprises:
Write for the operation mark of a predetermined registration operation program code inputted in interface according to user at described program code, generate the program that described program code is corresponding, perform the program used required for this predetermined registration operation as virtual robot.
3. the method for claim 1, is characterized in that, based on the operation mark of a predetermined registration operation, indicating user training virtual robot has the ability performing this predetermined registration operation, specifically comprises:
The operation mark of a display predetermined registration operation and program code recording interface, wherein, described program code recording interface is used for training virtual robot and has the ability performing this predetermined registration operation;
According to the operation that user performs for the operation mark of a predetermined registration operation, generating virtual machine people performs the required program used of this predetermined registration operation, specifically comprises:
According to user for the operation mark of a predetermined registration operation in described program code recording interface to this predetermined registration operation that described measurand performs, generating virtual machine people performs the required program used of this predetermined registration operation.
4. the method as described in as arbitrary in claim 1-3, is characterized in that, before setting up the corresponding relation between the preset attribute parameter of virtual robot and the described program of generation, also comprise:
Obtain the robot type that user selects;
Set up the corresponding relation between the preset attribute parameter of virtual robot and the described program of generation, specifically comprise:
Set up the corresponding relation between the preset attribute parameter of the virtual robot of described robot type and the described program of generation.
5. use the virtual robot of described method generation as arbitrary in claim 1-4 to carry out a method for automatic test, it is characterized in that, comprising:
The virtual robot generated, after startup test, is selected property parameters according to the operation in the preset attribute parameter of virtual robot, is determined this operation that will perform described measurand;
Use the described program corresponding to operation that will perform, corresponding operation is performed to described measurand, obtains operating result;
By judging property parameters according to the result in described preset attribute parameter, to the judgement of described operating result, determine next time to the operation that described measurand will perform, or terminate the test to described measurand.
6. method as claimed in claim 5, is characterized in that, the program corresponding to the operation that will perform described in using, and before performing corresponding operation, also comprises described measurand:
According to the target selection property parameters in described preset attribute parameter, determine this Action Target to the operation that described measurand will perform;
Use the described program corresponding to operation that will perform, corresponding operation performed to described measurand, is specially:
Use the described program corresponding to operation that will perform, corresponding operation is performed to the described Action Target of described measurand.
7. method as claimed in claim 5, is characterized in that, also comprise:
After obtaining operating result, in result display interface, show described operating result at every turn.
8. for a generating apparatus for the virtual robot of automatic test, it is characterized in that, comprising:
Mark acquiring unit, needs the operation mark of the multiple predetermined registration operation performed during for obtaining and using virtual robot to test measurand;
Indicating member, for respectively based on the operation mark of each predetermined registration operation, indicating user training virtual robot has the ability performing this predetermined registration operation;
Program Generating unit, for respectively according to the operation that user performs for the operation mark of each predetermined registration operation, generating virtual machine people performs the required program used of this predetermined registration operation;
Robot generation unit, for the corresponding relation by setting up between the preset attribute parameter of virtual robot and the described program of generation, generation has described preset attribute parameter, and use described program to perform the virtual robot of described multiple predetermined registration operation to described measurand, described preset attribute parameter for the virtual robot that generates in the process that described measurand is tested from the operation that main separation will perform.
9. device as claimed in claim 8, is characterized in that, described indicating member, and specifically in the following way based on the operation mark of a predetermined registration operation, indicating user training virtual robot has the ability performing this predetermined registration operation:
Operation mark and the program code of a display predetermined registration operation write interface, and wherein, described program code is write interface and had the ability performing this predetermined registration operation for training virtual robot;
Described Program Generating unit, specifically in the following way according to the operation that user performs for the operation mark of a predetermined registration operation, generating virtual machine people performs the required program used of this predetermined registration operation:
Write for the operation mark of a predetermined registration operation program code inputted in interface according to user at described program code, generate the program that described program code is corresponding, perform the program used required for this predetermined registration operation as virtual robot.
10. device as claimed in claim 8, is characterized in that, described indicating member, and specifically in the following way based on the operation mark of a predetermined registration operation, indicating user training virtual robot has the ability performing this predetermined registration operation:
The operation mark of a display predetermined registration operation and program code recording interface, wherein, described program code recording interface is used for training virtual robot and has the ability performing this predetermined registration operation;
Described Program Generating unit, specifically in the following way according to the operation that user performs for the operation mark of a predetermined registration operation, generating virtual machine people performs the required program used of this predetermined registration operation:
According to user for the operation mark of a predetermined registration operation in described program code recording interface to this predetermined registration operation that described measurand performs, generating virtual machine people performs the required program used of this predetermined registration operation.
11. devices as claimed in claim 8, is characterized in that, also comprise:
Type acquiring unit, for obtaining the robot type that user selects;
Described robot generation unit, specifically for setting up the corresponding relation between the preset attribute parameter of the virtual robot of described robot type and the described program of generation.
12. 1 kinds of automatic test devices, are integrated in the virtual robot using described device generation as arbitrary in claim 8-11, it is characterized in that, comprising:
Operation selection unit, for the virtual robot that generates after startup test, selects property parameters according to the operation in the preset attribute parameter of virtual robot, determines this operation that will perform described measurand;
Operation execution unit, for using the program corresponding to the described operation that will perform, performing corresponding operation to described measurand, obtaining operating result;
Result treatment unit, for by judging property parameters according to the result in described preset attribute parameter, to the judgement of described operating result, determines next time to the operation that described measurand will perform, or terminates the test to described measurand.
13. devices as claimed in claim 12, is characterized in that, also comprise:
Target selection unit, for the program corresponding to the operation that will perform described in using in described operation execution unit, before corresponding operation is performed to described measurand, according to the target selection property parameters in described preset attribute parameter, determine this Action Target to the operation that described measurand will perform;
Described operation execution unit, specifically for using the program corresponding to the described operation that will perform, performs corresponding operation to the described Action Target of described measurand.
14. devices as claimed in claim 12, is characterized in that, also comprise:
Result display unit, for after obtaining operating result at every turn, shows described operating result in result display interface.
CN201310241617.8A 2013-06-18 2013-06-18 Generation method, automated testing method and the relevant apparatus of virtual robot Active CN104239199B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310241617.8A CN104239199B (en) 2013-06-18 2013-06-18 Generation method, automated testing method and the relevant apparatus of virtual robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310241617.8A CN104239199B (en) 2013-06-18 2013-06-18 Generation method, automated testing method and the relevant apparatus of virtual robot

Publications (2)

Publication Number Publication Date
CN104239199A true CN104239199A (en) 2014-12-24
CN104239199B CN104239199B (en) 2017-11-14

Family

ID=52227315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310241617.8A Active CN104239199B (en) 2013-06-18 2013-06-18 Generation method, automated testing method and the relevant apparatus of virtual robot

Country Status (1)

Country Link
CN (1) CN104239199B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874662A (en) * 2017-05-15 2018-11-23 丰田自动车株式会社 The non-transitory computer-readable medium of test method and storage program
CN110738303A (en) * 2018-07-18 2020-01-31 科沃斯机器人股份有限公司 Machine model updating method, device, system and storage medium
CN114217594A (en) * 2021-11-26 2022-03-22 北京云迹科技股份有限公司 Method, device, medium and equipment for testing robot scheduling system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110307872A1 (en) * 2010-06-15 2011-12-15 Microsoft Corporation Script debugging
CN102567201A (en) * 2011-12-15 2012-07-11 南京大学 Method for automatically recovering cross-model GUI (graphic user interface) test scripts

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110307872A1 (en) * 2010-06-15 2011-12-15 Microsoft Corporation Script debugging
CN102567201A (en) * 2011-12-15 2012-07-11 南京大学 Method for automatically recovering cross-model GUI (graphic user interface) test scripts

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
甄坡: "基于网络爬虫的Web自动化测试工具的设计与实现", 《中国优秀硕士学位论文全文数据库》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874662A (en) * 2017-05-15 2018-11-23 丰田自动车株式会社 The non-transitory computer-readable medium of test method and storage program
CN108874662B (en) * 2017-05-15 2022-03-18 丰田自动车株式会社 Test method and non-transitory computer readable medium storing program
CN110738303A (en) * 2018-07-18 2020-01-31 科沃斯机器人股份有限公司 Machine model updating method, device, system and storage medium
CN114217594A (en) * 2021-11-26 2022-03-22 北京云迹科技股份有限公司 Method, device, medium and equipment for testing robot scheduling system
CN114217594B (en) * 2021-11-26 2023-12-22 北京云迹科技股份有限公司 Method, device, medium and equipment for testing robot scheduling system

Also Published As

Publication number Publication date
CN104239199B (en) 2017-11-14

Similar Documents

Publication Publication Date Title
US10078502B2 (en) Verification of a model of a GUI-based application
CN110046101A (en) Page automated testing method, device and computer storage medium
CN107608609B (en) Event object sending method and device
CN105302717A (en) Detection method and apparatus for big data platform
CN104268083A (en) Software automatic testing method and device
WO2020237508A1 (en) Assertion validation code binding method and apparatus
CN108335718A (en) A kind of test method and device
CN105279092A (en) Software testing method and apparatus
CN109948074A (en) Website data interconnection method, device, storage medium, processor and electronic equipment
CN104461846A (en) Method and device for detecting power consumption of application program
CN112905441A (en) Test case generation method, test method, device and equipment
CN111026080A (en) Hardware-in-loop test method and device for controller
CN103049374B (en) Automatic testing method and device
CN109614325A (en) A kind of method and device, electronic equipment and the storage medium of determining control property
CN107066302B (en) Defect inspection method, device and service terminal
US20140229923A1 (en) Commit sensitive tests
CN104239199A (en) Virtual robot generation method, automatic test method and related device
CN115686961A (en) Processor testing method and device and electronic equipment
CN112559313A (en) Test case setting method and device, storage medium and electronic equipment
JP2016514326A (en) Method and system for analyzing a trace timeline of computer system activity
CN109815083B (en) Application crash monitoring method and device, electronic equipment and medium
CN112181479A (en) Method and device for determining difference between code file versions and electronic equipment
CN103593429A (en) Commodity template failure detection method and device
CN104461603A (en) Information processing method and electronic equipment
CN113127314A (en) Method and device for detecting program performance bottleneck and computer equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211223

Address after: Room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: Box four, 847, capital building, Grand Cayman Island capital, Cayman Islands, UK

Patentee before: ALIBABA GROUP HOLDING Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240206

Address after: Room 303, 3rd Floor, Building 5, No. 699 Wangshang Road, Changhe Street, Binjiang District, Hangzhou City, Zhejiang Province, 310052

Patentee after: Hangzhou Alibaba Overseas Internet Industry Co.,Ltd.

Country or region after: China

Address before: 310052 room 508, 5th floor, building 4, No. 699 Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Alibaba (China) Co.,Ltd.

Country or region before: China

OL01 Intention to license declared
OL01 Intention to license declared