CN114670200B - Automatic test method applied to robot, computer storage medium and robot - Google Patents

Automatic test method applied to robot, computer storage medium and robot Download PDF

Info

Publication number
CN114670200B
CN114670200B CN202210328788.3A CN202210328788A CN114670200B CN 114670200 B CN114670200 B CN 114670200B CN 202210328788 A CN202210328788 A CN 202210328788A CN 114670200 B CN114670200 B CN 114670200B
Authority
CN
China
Prior art keywords
instruction
current
page
execution
robot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210328788.3A
Other languages
Chinese (zh)
Other versions
CN114670200A (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.)
Taizhou Qinglang Intelligent Technology Co.,Ltd.
Original Assignee
Shanghai Keenlon Intelligent Technology 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 Shanghai Keenlon Intelligent Technology Co Ltd filed Critical Shanghai Keenlon Intelligent Technology Co Ltd
Priority to CN202210328788.3A priority Critical patent/CN114670200B/en
Publication of CN114670200A publication Critical patent/CN114670200A/en
Application granted granted Critical
Publication of CN114670200B publication Critical patent/CN114670200B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1602Programme controls characterised by the control system, structure, architecture
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J19/00Accessories fitted to manipulators, e.g. for monitoring, for viewing; Safety devices combined with or specially adapted for use in connection with manipulators
    • B25J19/0095Means or methods for testing manipulators
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1656Programme controls characterised by programming, planning systems for manipulators
    • B25J9/1671Programme controls characterised by programming, planning systems for manipulators characterised by simulation, either to verify existing program or to create and verify new program, CAD/CAM oriented, graphic oriented programming systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Automation & Control Theory (AREA)
  • Manipulator (AREA)
  • Numerical Control (AREA)

Abstract

The invention provides an automatic test method applied to a robot, which comprises the following steps: selecting an instruction set script and editing an execution sequence to generate an instruction set list; acquiring an instruction to be executed in the instruction set list; acquiring a current operation page; executing the current instruction when the current operation page is matched with the execution page of the current instruction; and acquiring the next instruction to be executed from the instruction set list in turn according to the execution sequence, and executing the current instruction when the current operation page is matched with the execution page of the current instruction. The invention provides a comprehensive automatic test scheme applied to a robot, which simulates real user operation to test the whole function of the robot, and frequent robotic actions are executed by using the automatic test, so that human negligence and errors in the execution process are avoided, the manpower input of testers is reduced, and the overall stability of the robot is improved through pressure test.

Description

Automatic test method applied to robot, computer storage medium and robot
Technical Field
The present disclosure relates to the field of robot testing, and in particular, to an automated testing method applied to a robot, a computer storage medium, and a robot.
Background
From factory assembly line to storage commodity circulation, to garden express delivery, dining room delivery, the robot is moving indoor from the outdoor gradually, especially a large amount of brand catering companies begin to introduce the delivery robot, and the food and beverage delivery robot is the commercial service robot who engages in work such as delivering, dish returning and reception, mainly is applied to business scenes such as dining room, hotel, possesses functions such as autopilot, voice interaction, can satisfy the bearing demand of heavy-weight food and tableware simultaneously.
As the use of robots becomes more and more diversified, the overall operation flow is changed to a more complex direction, and the reliability of the overall operation cannot be ensured by the normal operation of a single device, so that the function test of the whole machine becomes more important. The current robot complete machine function test mainly comprises manual test, the coverage of automatic test is lower, and automatic test and pressure test, such as cabin door switch test, interface pressure test and the like, are only realized on part of components, so that a large amount of manpower is occupied, and the scenes such as complete machine function pressure test and the like cannot be covered.
The matters in the background section are only those known to the public inventor and do not, of course, represent prior art in the field.
Disclosure of Invention
In view of one or more of the drawbacks of the prior art, the present invention provides an automated testing method applied to a robot, comprising:
selecting an instruction set script and editing an execution sequence to generate an instruction set list;
Acquiring a first instruction to be executed in the instruction set list as a current instruction;
acquiring a current operation page;
Executing the current instruction when the current operation page is matched with the execution page of the current instruction;
And acquiring the next instruction to be executed from the instruction set list in turn according to the execution sequence, and executing the current instruction when the current operation page is matched with the execution page of the current instruction.
According to one aspect of the invention, the automated test method further comprises:
simulating the operation behavior of a user on an operation page, and generating an instruction set script;
And establishing a corresponding relation between the instruction set script and the operation page.
According to one aspect of the invention, the step of selecting an instruction set script and editing an execution order and generating an instruction set list further comprises: and receiving an instruction of selecting the instruction set script by a user, connecting the selected instruction set script in series to form an automatic test case, and generating an instruction set list.
According to one aspect of the present invention, the step of sequentially obtaining the next instruction to be executed from the instruction set list according to the execution order, and when the current operation page matches with the execution page of the current instruction, executing the current instruction further includes: and according to the automatic test case, keeping at the current operation page or jumping to the next operation page.
According to one aspect of the present invention, the step of sequentially obtaining the next instruction to be executed from the instruction set list according to the execution order, and when the current operation page matches with the execution page of the current instruction, executing the current instruction further includes: and when the next instruction to be executed obtained from the instruction set list is the last instruction, judging the times of repeatedly executing the instruction set list, and completing the automatic test when the times of repeatedly executing reach the preset times.
According to one aspect of the invention, the automated test method further comprises: and when the current operation page is matched with the execution page of the current instruction, acquiring a page object and an in-page control object, executing the current instruction and starting timing.
According to one aspect of the invention, the automated test method further comprises: and when the current operation page is matched with the execution page of the current instruction, acquiring a behavior object, executing the current instruction and starting timing.
According to one aspect of the invention, the automated test method further comprises: and acquiring timing time, and acquiring the next instruction to be executed and stopping timing when the timing time reaches the preset duration.
According to one aspect of the invention, the automated test method further comprises: and when the current operation page is not matched with the execution page of the current instruction, executing any one of the following steps:
jumping to the next operation page according to the automatic test case;
Alarming indication information and suspending testing;
and recording to an execution log.
According to one aspect of the invention, the automated test method further comprises: monitoring the behavior of the robot through a camera, and executing any one of the following when the current behavior is not matched with the execution result of the current instruction:
jumping to the next operation page according to the automatic test case;
Alarming indication information and suspending testing;
and recording to an execution log.
The invention also relates to a computer storage medium comprising computer executable instructions stored thereon, which when executed by a processor implement an automated test method as described above.
The invention also relates to a robot configured to perform an automated test method as described above.
The invention provides a comprehensive automatic test scheme applied to a robot, which simulates real user operation to test the whole function of the robot, and frequent robotic actions are executed by using the automatic test, so that human negligence and errors in the execution process are avoided, the manpower input of testers is reduced, and the overall stability of the robot is improved through pressure test.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure, illustrate and explain the exemplary embodiments of the disclosure and together with the description serve to explain the disclosure, and do not constitute an undue limitation on the disclosure. In the drawings:
FIG. 1 illustrates a flow chart of an automated test method for a robot in accordance with one embodiment of the present invention;
FIG. 2 illustrates a schematic diagram of a complete machine application automation test in accordance with one embodiment of the present invention;
FIG. 3 illustrates a schematic diagram of a click & input operation application automation test in accordance with one embodiment of the present invention;
FIG. 4 illustrates a schematic diagram of a wait for operation application automation test in accordance with one embodiment of the present invention;
FIG. 5 illustrates a schematic diagram of a behavior control operation application automation test of one embodiment of the present invention;
FIG. 6 illustrates a schematic diagram of a repeat operation application automation test in accordance with one embodiment of the present invention.
Detailed Description
Hereinafter, only certain exemplary embodiments are briefly described. As will be recognized by those of skill in the pertinent art, the described embodiments may be modified in various different ways without departing from the spirit or scope of the present invention. Accordingly, the drawings and description are to be regarded as illustrative in nature and not as restrictive.
In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more of the described features. In the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the description of the present invention, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be fixedly connected, detachably connected, or integrally connected, and may be mechanically connected, electrically connected, or may communicate with each other, for example; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
In the present invention, unless expressly stated or limited otherwise, a first feature "above" or "below" a second feature may include both the first and second features being in direct contact, as well as the first and second features not being in direct contact but being in contact with each other through additional features therebetween. Moreover, a first feature being "above," "over" and "on" a second feature includes the first feature being directly above and obliquely above the second feature, or simply indicating that the first feature is higher in level than the second feature. The first feature being "under", "below" and "beneath" the second feature includes the first feature being directly above and obliquely above the second feature, or simply indicating that the first feature is less level than the second feature.
The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. In order to simplify the present disclosure, components and arrangements of specific examples are described below. They are, of course, merely examples and are not intended to limit the invention. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples, which are for the purpose of brevity and clarity, and which do not themselves indicate the relationship between the various embodiments and/or arrangements discussed. In addition, the present invention provides examples of various specific processes and materials, but one of ordinary skill in the art will recognize the application of other processes and/or the use of other materials.
The invention provides an automatic test method applied to a robot, which comprises the following steps: selecting an instruction set script and editing an execution sequence to generate an instruction set list; acquiring an instruction to be executed in the instruction set list; acquiring a current operation page; executing the current instruction when the current operation page is matched with the execution page of the current instruction; and acquiring the next instruction to be executed from the instruction set list in turn according to the execution sequence, and executing the current instruction when the current operation page is matched with the execution page of the current instruction. According to the automatic test scheme provided by the invention, the real user operation is simulated to test the whole function of the robot, frequent robotic actions are executed by the automatic test, human negligence and human errors in the execution process are avoided, the manpower input of testers is reduced, and the overall stability of the robot is improved through the pressure test.
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
Fig. 1 shows an automated test method applied to a robot including a processor according to an embodiment of the present invention, the automated test method including steps S11-S15, specifically described as follows:
in step S11, an instruction set script is selected and the execution order is edited, thereby generating an instruction set list.
The operation behaviors aiming at the robot can be completed through one or more action instructions, and the operation behaviors are converted into a plurality of action instructions and are prestored as an automatically executable instruction set script. In the first step of automated testing, a tester can select an operation behavior to be tested, such as clicking a control object on a display screen, inputting text information, and the like, a processor selects a corresponding instruction set script, can receive instructions of the tester to adjust the execution sequence of the test script, and finally generates an instruction set list.
According to a preferred embodiment of the present invention, the step S11 further includes: and receiving an instruction of selecting the instruction set script by a user, connecting the selected instruction set script in series to form an automatic test case, and generating an instruction set list.
The tester edits the operation behaviors of the robot one by one, connects the instructions and parameters corresponding to the operation behaviors in series to form a complete automatic test case, and converts a set of edited actions into an instruction set list after the automatic test case is edited, and stores the instruction set list into files, memory objects and the like.
According to a preferred embodiment of the invention, the number and execution order of the instruction set scripts are adjusted, a plurality of instruction set lists are generated and stored, each instruction set list being tested for a different function of the robot or as part of the complete machine test of the robot, one of the instruction set lists being selected by the tester before the automated test starts to start the subsequent steps of the automated test.
In step S12, the first instruction to be executed in the instruction set list is acquired as the current instruction.
The instruction set list includes a series of action instructions from which the processor sequentially retrieves the action instructions when executing the instruction set list. In the step, the operation behavior of a user is simulated, and the first instruction to be executed in the instruction set list is obtained and used as the current instruction.
The current operation page is acquired in step S13.
And acquiring the operation page of the robot, namely simulating the operation behavior of the user, and acquiring the current operation page.
And when the current operation page is matched with the execution page of the current instruction in the step S14, executing the current instruction.
The current instruction to be executed is acquired in step S12, the operation page is acquired in step S13, then the acquired execution page of the current instruction to be executed is matched with the current operation page, and when the execution page and the current operation page are matched, the current instruction is executed. It will be appreciated by those skilled in the art that step S12 and step S13 may be performed in reverse order or simultaneously without affecting the final automated test results.
According to a preferred embodiment of the invention, the automated test method further comprises: simulating the operation behavior of a user on an operation page, and generating an instruction set script; and establishing a corresponding relation between the instruction set script and the operation page.
And establishing a relation binding between the action instruction corresponding to the operation behavior and the operation page, namely, the operation page is an execution page of the action instruction, so that the instruction set script can be normally triggered only under a specific operation page. Therefore, before starting to execute the instruction set list, it is necessary to simulate the operation behavior of the user on the operation page, generate an instruction set script, and establish a binding relationship between each instruction in the instruction set script and the corresponding operation page.
And in step S15, according to the execution sequence, acquiring a next instruction to be executed from the instruction set list in turn, and executing the current instruction when the current operation page matches with the execution page of the current instruction.
After the first instruction in the instruction set list is executed, acquiring a next instruction to be executed, acquiring a current operation page, executing the current instruction if the execution page corresponding to the current instruction is matched with the current operation page, and the like until all the instructions in the instruction set list are executed.
According to a preferred embodiment of the present invention, the step S15 further includes: and according to the automatic test case, keeping at the current operation page or jumping to the next operation page.
For example, an automated test service is created that initiates timing tasks according to a custom time interval (e.g., 5 seconds) and monitors the operational pages and operational behavior. According to the automatic test case, the timing task acquires a current operation page, and when the current operation page is consistent with an execution page of the current instruction, the current instruction is executed; after the instruction is completed, after the next timing task is started, acquiring the next instruction to be executed, executing the instruction when the operation page is consistent with the execution page of the current instruction, and the like; when the current operation page is not matched with the execution page of the current instruction, jumping to the next operation page, continuously matching the operation page with the execution page of the current instruction, and executing the current instruction or reporting an exception according to a matching result. The operation when the current operation page does not match the execution page of the current instruction will be further described below.
According to a preferred embodiment of the present invention, the step S15 further includes: and when the next instruction to be executed obtained from the instruction set list is the last instruction, judging the times of repeatedly executing the instruction set list, and completing the automatic test when the times of repeatedly executing reach the preset times.
And sequentially executing all instructions in the instruction set list, judging the execution times after the instruction set list is completely executed, and restarting the first instruction in the instruction set list if the repetition times are not reached. The pressure test of the whole robot is realized by repeatedly executing a set of complete automatic test cases, the manpower input of testers is reduced, and the functional stability of the whole robot is improved through the pressure test.
In summary, the automated testing method includes steps S11-S15, by monitoring the page and the behavior of the robot operation interface, a series of processes of user operation behaviors are converted into an automatically executable instruction set list, and a tester can edit the instruction set list, edit the repeated test times, and realize the full-process automated test of the robot. The automatic test is mainly used for supporting the self-defined function test flow of testers, realizing the automatic test and pressure test of the functions of the whole robot, greatly reducing the manpower input, improving the sporadic problem discovery capability and further improving the function stability of the whole robot.
The present specification provides method operational steps as described in the examples or flowcharts, but may include more or fewer operational steps based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one way of performing the order of steps and does not represent a unique order of execution. When a system or apparatus product in practice is executed, it may be executed sequentially or in parallel according to the method shown in the embodiment or the flowchart.
Specific implementation details of the automated test method are described below by way of example.
Fig. 2 shows a schematic diagram of a complete machine application automation test, which simulates a complete machine test including a topmost robotic application, a page monitoring service, and an automation test service, according to one embodiment of the invention. The robot application program comprises a home page and each slave page, corresponds to an operation page in the automatic test method, and is used for receiving an operation instruction of a user on the robot or executing an instruction for simulating operation behaviors in the automatic test. The whole flow is as follows:
(1) And creating a page management service, and recording a current page through the life cycle of the page after opening a new operation page each time.
(2) The operation behavior of the robot by the user is converted into an automatically executable instruction set script, for example: click operations, content input, behavior control, repetition times, etc.
(3) And each instruction set script and the supported operation page establish relation binding, so that the instruction set script can be normally triggered only under the appointed operation page.
(4) And providing a group of robot behavior instructions and parameters for testers, and enabling the testers to edit the behaviors of the robots one by one to form a complete automatic test case in series.
(5) After the automatic test case is edited, converting a set of edited actions into an instruction set list, and storing the instruction set list into a file and an app memory object.
(6) An automated test service is created that initiates timing tasks according to a custom time interval (5 seconds, for example) for operation pages and behavior monitoring.
(7) The timing task acquires the current robot operation page, acquires the first action instruction from the instruction set, and executes the script when the operation page is matched with the operation page (the execution page corresponding to the instruction) bound by the instruction.
(8) After the first action instruction is completed, after the next timing task is started, the next instruction to be executed is acquired, and when the page and the instruction are matched, the instruction is executed, and the like.
(9) And sequentially executing all instructions in the instruction set list, judging the repetition number after the instruction set list is completely executed, and restarting the first instruction if the repetition number is not reached.
According to the embodiment, through page monitoring and behavior monitoring of the robot operation interface, a series of flows of user operation behaviors are converted into the list of the automatically executable instruction sets, and a tester can edit repeated test times by editing the list of the instruction sets, so that full-flow automatic testing of the robot is realized.
Based on one specific embodiment of the above procedure: with continued reference to fig. 2, the robot has two modes of meal delivery and guidance, first, the robot App is started, after selecting the meal delivery mode, the page monitoring service starts to monitor once for 5 seconds, monitors the navigation page, acquires the current instruction, for example, simulates clicking the hatch door, and executes the hatch door opening operation when the current instruction matches with the current page. Each operation has an operation time, and each operation can jump to the next page after being completed, in general, there is a corresponding operation interface after each action, if the operation interfaces are paired, the operation is continued, and if the operation interfaces are not paired, the problem is solved. In the above example, after the door is opened, no clicking is needed, and after the food is put, the door is naturally related to the door, if the door Guan Haole is clicked, the "meal out" is simulated; if the cabin door is not closed, a problem occurs, a meal delivery interface is abnormal, an expected page cannot be monitored, subsequent meal delivery operation cannot be performed, and manual intervention is needed; if the cabin door is not opened, but the door closing action is opposite, the test can be continued, and the door opening and closing action can be understood as an integral action, but the corresponding simulated click is only the click of opening the cabin door. Through this process, an automated test is performed to see whether the robot has a bug, or the occurrence probability of a bug is tested a plurality of times, or the like.
FIG. 3 is a schematic diagram of a click & input operation application automation test simulating a user clicking, text entry, or voice entry on a robot screen, in accordance with one embodiment of the present invention. According to the operation behavior actually generated by the simulated user, acquiring a current page, acquiring a current instruction in the instruction set list, performing page matching, and executing the click and input operation if the current page is consistent with an execution page corresponding to the current instruction.
According to a preferred embodiment of the invention, the automated test method further comprises: and when the current operation page is matched with the execution page of the current instruction, acquiring a page object and an in-page control object, executing the current instruction and starting timing.
With continued reference to fig. 3, if the current page is consistent with the execution page corresponding to the current instruction, a current page object is acquired, an internal view control object is acquired through the page object, and finally, a simulated click or content input operation of the control object is executed. That is, the binding relationship between the control object in the page and the current instruction is also pre-established, so as to ensure that the current instruction can only be normally triggered on the specific page control object.
Fig. 4 is a schematic diagram of an automatic test of a waiting operation application according to an embodiment of the present invention, where waiting behaviors that may be actually generated by a user are simulated, for example, a door of a robot is opened or closed, a current page is acquired, a current instruction in an instruction set list is acquired, a page matching is performed on a current operation page and an execution page corresponding to the current instruction, and if the current page is consistent with the execution page corresponding to the current instruction, the waiting operation is performed.
According to a preferred embodiment of the invention, the automated test method further comprises: and acquiring timing time, and acquiring the next instruction to be executed and stopping timing when the timing time reaches the preset duration.
With continued reference to fig. 4, if the current page is consistent with the execution page corresponding to the current instruction, acquiring the current page object, judging whether the current page object is executed for the first time, and if so, recording the current time (acquiring the timing time) as the first execution time; if not, the current time is acquired, the time difference between the current time and the first execution time is calculated, the time difference is compared with a set value (preset time length), if the set value is exceeded (the preset time length is exceeded), the current instruction is ended, namely the waiting behavior is ended, the timing is stopped, and the next instruction (the next instruction to be executed is acquired) is updated.
Fig. 5 shows a schematic diagram of an automatic test of the behavior control operation application of an embodiment of the present invention, which simulates the communication control behavior between the functional modules of the robot, such as door opening and closing, motion control, call control, etc. Acquiring a current page, acquiring a current instruction in an instruction set list, performing page matching on a current operation page and an execution page corresponding to the current instruction, and executing behavior control operation if the current page is consistent with the execution page corresponding to the current instruction.
According to a preferred embodiment of the invention, the automated test method further comprises: and when the current operation page is matched with the execution page of the current instruction, acquiring a behavior object, executing the current instruction and starting timing.
With continued reference to fig. 5, if the current page is consistent with the execution page corresponding to the current instruction, a behavior object is obtained, and if the behavior object is a simulated cabin door control behavior, a control instruction is issued and executed to a corresponding module of the robot through a serial port protocol; if the motion control behavior is simulated, issuing and executing a control instruction to a corresponding module of the robot through coap protocols; if the call behavior is simulated, a control instruction is issued and executed to the corresponding module of the robot through mqtt protocols.
FIG. 6 is a schematic diagram illustrating a repeat times operation application automation test for a set of completed instruction set lists to be repeatedly executed to achieve a specified number of automation tests, in accordance with one embodiment of the present invention. After executing each instruction, if the last instruction in the instruction set is judged when the current instruction is executed, the current repetition number is obtained, and if the repetition number is not reached, the first instruction is restarted.
The specific execution flow of the automatic test method is introduced through a plurality of embodiments, and the invention provides a more comprehensive robot automatic test scheme which simulates real user operation, even comprises waiting time setting and covers the whole function of a robot. According to the scheme, the pressure test of the whole machine function of the robot is supported through the repeated frequency setting, the manpower input of testers is reduced, and the stability of the whole machine function is improved through the pressure test. The scheme supports the behavior customization of the test script, can edit the automatic test script by a tester, can cover more test scenes, and has strong expansibility and pertinence.
The above embodiments are described with respect to a normal flow when a current operation page matches an execution page of a current instruction, and the following description is performed with respect to a flow when the current operation page does not match the execution page of the current instruction.
According to a preferred embodiment of the invention, the automated test method further comprises: and when the current operation page is not matched with the execution page of the current instruction, executing any one of the following steps:
(1) Jumping to the next operation page according to the automatic test case;
(2) Alarming indication information and suspending testing;
(3) And recording to an execution log.
In the step of automatic test, matching the acquired current operation page with an execution page corresponding to the acquired current instruction, and executing the current instruction if the acquired current operation page is consistent with the execution page corresponding to the acquired current instruction; if not, this represents a problem in that manual intervention is required. For example, the behavior of opening and closing the cabin door is simulated, if after the instruction of opening the cabin door is executed, the cabin door is not successfully opened because of a fault, when the timing is finished and the next instruction of closing the cabin door is updated, the current operation page is not matched with the execution page of the current instruction, the instruction of closing the cabin door cannot be executed, and if the next instruction to be executed is a simulated input instruction and is not influenced by the fault of the cabin door, the automatic test case can control to jump to the next operation page, and execute the next instruction to be executed. Further, a prompt message or an alarm message is reported or recorded to an execution log. In other embodiments, it is not determined whether the next instruction to be executed is affected, and the operation page is not jumped, but the test is stopped at the current operation page, and a prompt message or an alarm message is reported to remind the tester of the positioning problem.
The above embodiments are described with respect to the flow when the current operation page is not matched with the execution page of the current instruction, and whether the automatic test method needs manual intervention is mainly based on whether the current page is matched with the current instruction, but the test program itself may have erroneous judgment, so the inventor conceive of introducing a camera and a mechanical arm to replace human eyes and human hands, so as to further improve the accuracy and efficiency of the functional test and the complete machine test.
According to a preferred embodiment of the invention, the automated test method further comprises: monitoring the behavior of the robot through a camera, and executing any one of the following when the current behavior is not matched with the execution result of the current instruction:
jumping to the next operation page according to the automatic test case;
Alarming indication information and suspending testing;
and recording to an execution log.
According to a preferred embodiment of the invention, the automated test method further comprises: and simulating the operation behavior of a user through the mechanical arm.
The invention also relates to a computer storage medium comprising computer executable instructions stored thereon, which when executed by a processor implement an automated test method as described above.
The invention also relates to a robot configured to perform an automated test method as described above.
According to the automatic testing method provided by the invention, the real user operation is simulated to test the whole function of the robot, frequent robotic actions are executed by the automatic test, human negligence and human errors in the execution process are avoided, the manpower input of a tester is reduced, and the overall stability of the robot is improved through the pressure test.
Finally, it should be noted that: the foregoing description is only a preferred embodiment of the present invention, and the present invention is not limited thereto, but it is to be understood that modifications and equivalents of some of the technical features described in the foregoing embodiments may be made by those skilled in the art, although the present invention has been described in detail with reference to the foregoing embodiments. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. An automated test method applied to a robot, the robot being a dispensing robot; the automated testing method comprises the following steps:
Creating an automatic test service, initiating a timing task according to a user-defined time interval, and monitoring an operation page and an operation behavior;
converting the operation behavior of a user on the robot into an instruction set script capable of being automatically executed;
selecting an instruction set script, receiving an instruction input by a tester, editing the execution sequence of the instruction set script, and generating an instruction set list;
Each of the instruction set lists may be tested for a different function of the robot;
Acquiring a first instruction to be executed in the instruction set list as a current instruction;
acquiring a current operation page;
When the current operation page is matched with the execution page of the current instruction, a behavior object is obtained, and the current instruction is issued and executed to a corresponding module of the robot;
monitoring the behavior of the robot through a camera;
And acquiring the next instruction to be executed from the instruction set list in turn according to the execution sequence, and executing the current instruction when the current operation page is matched with the execution page of the current instruction.
2. The automated testing method of claim 1, further comprising:
simulating the operation behavior of a user on an operation page, and generating an instruction set script;
And establishing a corresponding relation between the instruction set script and the operation page.
3. The automated test method of claim 1, wherein the selecting an instruction set script and editing an execution order and generating an instruction set list further comprises: and receiving an instruction of selecting the instruction set script by a user, connecting the selected instruction set script in series to form an automatic test case, and generating an instruction set list.
4. The automated test method of claim 1, wherein the step of executing the current instruction when the current operation page matches the execution page of the current instruction by sequentially obtaining the next instruction to be executed from the instruction set list in the order of execution further comprises: and according to the automatic test case, keeping at the current operation page or jumping to the next operation page.
5. The automated test method of claim 1, wherein the step of executing the current instruction when the current operation page matches the execution page of the current instruction by sequentially obtaining the next instruction to be executed from the instruction set list in the order of execution further comprises: and when the next instruction to be executed obtained from the instruction set list is the last instruction, judging the times of repeatedly executing the instruction set list, and completing the automatic test when the times of repeatedly executing reach the preset times.
6. The automated testing method of claim 1, further comprising: and when the current operation page is matched with the execution page of the current instruction, acquiring a page object and an in-page control object, executing the current instruction and starting timing.
7. The automated testing method of claim 1, further comprising: and when the current operation page is matched with the execution page of the current instruction, acquiring a behavior object, executing the current instruction and starting timing.
8. The automated testing method of claim 6 or 7, further comprising: and acquiring timing time, and acquiring the next instruction to be executed and stopping timing when the timing time reaches the preset duration.
9. The automated testing method of any of claims 3-7, further comprising: and when the current operation page is not matched with the execution page of the current instruction, executing any one of the following steps:
jumping to the next operation page according to the automatic test case;
Alarming indication information and suspending testing;
and recording to an execution log.
10. The automated testing method of any of claims 3-7, further comprising: monitoring the behavior of the robot through a camera, and executing any one of the following when the current behavior is not matched with the execution result of the current instruction:
jumping to the next operation page according to the automatic test case;
Alarming indication information and suspending testing;
and recording to an execution log.
11. A computer storage medium comprising computer executable instructions stored thereon, which when executed by a processor implement the automated test method of any of claims 1-10.
12. A robot configured to perform the automated test method of any of claims 1-10.
CN202210328788.3A 2022-03-30 2022-03-30 Automatic test method applied to robot, computer storage medium and robot Active CN114670200B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210328788.3A CN114670200B (en) 2022-03-30 2022-03-30 Automatic test method applied to robot, computer storage medium and robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210328788.3A CN114670200B (en) 2022-03-30 2022-03-30 Automatic test method applied to robot, computer storage medium and robot

Publications (2)

Publication Number Publication Date
CN114670200A CN114670200A (en) 2022-06-28
CN114670200B true CN114670200B (en) 2024-04-26

Family

ID=82076352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210328788.3A Active CN114670200B (en) 2022-03-30 2022-03-30 Automatic test method applied to robot, computer storage medium and robot

Country Status (1)

Country Link
CN (1) CN114670200B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484609A (en) * 2015-09-01 2017-03-08 博雅网络游戏开发(深圳)有限公司 Page method of testing and device
CN112988590A (en) * 2021-04-01 2021-06-18 中车青岛四方机车车辆股份有限公司 Electromagnetic environment hybrid automatic testing method and system, storage medium and terminal equipment
CN113032264A (en) * 2021-03-29 2021-06-25 网易(杭州)网络有限公司 Method and device for detecting page view control
CN113377650A (en) * 2021-06-09 2021-09-10 重庆紫光华山智安科技有限公司 Automatic test case running method and device, test equipment and storage medium
CN113986767A (en) * 2021-11-29 2022-01-28 深圳前海微众银行股份有限公司 Automated testing method, system, device and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484609A (en) * 2015-09-01 2017-03-08 博雅网络游戏开发(深圳)有限公司 Page method of testing and device
CN113032264A (en) * 2021-03-29 2021-06-25 网易(杭州)网络有限公司 Method and device for detecting page view control
CN112988590A (en) * 2021-04-01 2021-06-18 中车青岛四方机车车辆股份有限公司 Electromagnetic environment hybrid automatic testing method and system, storage medium and terminal equipment
CN113377650A (en) * 2021-06-09 2021-09-10 重庆紫光华山智安科技有限公司 Automatic test case running method and device, test equipment and storage medium
CN113986767A (en) * 2021-11-29 2022-01-28 深圳前海微众银行股份有限公司 Automated testing method, system, device and computer readable storage medium

Also Published As

Publication number Publication date
CN114670200A (en) 2022-06-28

Similar Documents

Publication Publication Date Title
CN109683899B (en) Software integration method and device
CN112817872B (en) Development test system and method
US7496815B2 (en) Method and apparatus for automatic generation of system test libraries
US20050240832A1 (en) Electronic apparatus having improved diagnostic interface
CN101478449A (en) Protocol automatic test method and system thereof
CN106126414B (en) Application software testing method and system
CN103635863A (en) Apparatus for automating field device operations by capturing device method execution steps for later use and related method
CN107479528A (en) The fault warning system and fault handling method of agricultural intelligent device
CN112737886A (en) Tool testing method and system
CN101751329A (en) Method and system for realizing automatic testing
CN107357694A (en) Error event reporting system and its method during startup self-detection
CN115827358A (en) Automatic test system, method and device for PFR function and storage medium
CN113064824A (en) Result analysis method and device, electronic device and storage medium
CN114670200B (en) Automatic test method applied to robot, computer storage medium and robot
CN109508547A (en) A kind of localization method of vulnerability of application program, device, storage medium and terminal
CN106294172A (en) App self-testing method based on terminal unit and device
CN111679652A (en) Test method and device based on smart screen, smart screen and readable storage medium
US20070118779A1 (en) Intelligent Test System and Related Method for Testing an Electronic Product
US20150158177A1 (en) Pipetting robot
CN102355641A (en) Method for carrying out automated test on group control of short messages
CN111104270A (en) Hardware configuration detection device and equipment of storage equipment and storage medium
JP2006170868A (en) Automatic analysis device
CN111444109A (en) Mobile terminal UI automatic testing method and system
JP5957374B2 (en) Test apparatus, test system, and method for plant monitoring and control system
CN114942890B (en) User interface testing method, device, equipment and 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
TR01 Transfer of patent right

Effective date of registration: 20240621

Address after: No. 688 Chenzhuang West Road, Sanshui Street, Jiangyan District, Taizhou City, Jiangsu Province, 225599

Patentee after: Taizhou Qinglang Intelligent Technology Co.,Ltd.

Country or region after: China

Address before: 201206 11th floor, building 56, 1000 Jinhai Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee before: SHANGHAI KEENLON INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region before: China