CN112035348A - Automatic test platform and automatic test method thereof - Google Patents

Automatic test platform and automatic test method thereof Download PDF

Info

Publication number
CN112035348A
CN112035348A CN202010870093.9A CN202010870093A CN112035348A CN 112035348 A CN112035348 A CN 112035348A CN 202010870093 A CN202010870093 A CN 202010870093A CN 112035348 A CN112035348 A CN 112035348A
Authority
CN
China
Prior art keywords
test
result
platform
module
execution
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.)
Withdrawn
Application number
CN202010870093.9A
Other languages
Chinese (zh)
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.)
Guangdong Bozhilin Robot Co Ltd
Original Assignee
Guangdong Bozhilin Robot 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 Guangdong Bozhilin Robot Co Ltd filed Critical Guangdong Bozhilin Robot Co Ltd
Priority to CN202010870093.9A priority Critical patent/CN112035348A/en
Publication of CN112035348A publication Critical patent/CN112035348A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an automatic test platform and an automatic test method thereof, wherein the platform is used for robot dispatching test and comprises the following steps: the system comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring test data, and the test data comprises first test data corresponding to the function of a robot scheduling platform and second test data corresponding to a robot scheduling process; the processing module is used for modularizing and parameterizing the first test data and the second test data respectively in a key drive and/or data drive mode to obtain a test case set; the execution module is used for executing the test case set and obtaining an execution result; and the generating module is used for verifying the execution correctness of each test case according to the test result and the expected result to obtain a verification result, and generating a test report according to the verification result by using the HTMLTestRunner to realize the quick test and correctness verification of the robot scheduling platform function and the corresponding robot scheduling flow so as to ensure the logic correctness of the scheduling task and the execution correctness of the robot task.

Description

Automatic test platform and automatic test method thereof
Technical Field
The invention relates to the technical field of machines, in particular to an automatic test platform for robot dispatching test and an automatic test method for robot dispatching test.
Background
At present, in a robot scheduling platform of the related art, a robot scheduling is usually tested and result verified in a manual operation manner.
However, as the service of the scheduling platform of the robot is more and more complex, and various robots access the scheduling platform in succession, the related art has problems in that, in the process of rapid iterative development, the robot scheduling test needs to invest a large amount of labor cost due to the facing of a large amount of regression tests, new function addition and a large amount of access systems of new robots, and in the process of a large amount of manual tests, the situation that the accuracy of partial test results is not high may occur.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art. Therefore, a first objective of the present invention is to provide an automated testing platform, which is used for robot scheduling testing and can implement rapid testing of functions of the robot scheduling platform and corresponding robot scheduling processes, so as to ensure logical correctness of scheduling tasks and execution correctness of robot tasks.
The second purpose of the invention is to provide an automatic testing method, which is used for robot scheduling testing.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides an automated testing platform, where the platform is used for robot scheduling testing, and the platform includes: the system comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring test data, and the test data comprises first test data corresponding to the function of a robot scheduling platform and second test data corresponding to the robot scheduling process; the processing module is used for modularizing and parameterizing the first test data and the second test data respectively in a key drive and/or data drive mode to obtain a test case set; the execution module is used for executing the test case set and obtaining an execution result; a generating module, configured to generate a test report according to the execution result, where the generating module is specifically configured to: obtaining a test result of each test step of each test case in the execution result; verifying the execution correctness of each test case according to the test result and the expected result to obtain a verification result; and generating the test report according to the verification result by using an HTMLTestRunner.
According to the automatic test platform of the embodiment of the invention, the test data is obtained through the obtaining module, wherein the test data comprises first test data corresponding to the function of the robot dispatching platform and second test data corresponding to the robot dispatching flow, the first test data and the second test data are respectively modularized and parameterized through the processing module in a key driving and/or data driving mode to obtain a test case set, then the test case set is executed through the execution module to obtain an execution result, and a test report is generated through the generation module according to the execution result, wherein the execution correctness of each test case is verified according to the test result and an expected result to obtain a verification result, and the test report is generated according to the verification result by using the HTMLTestRunner, so that the rapid test and the correctness verification of the function of the robot dispatching platform and the corresponding robot dispatching flow are realized, to ensure the logical correctness of the scheduling task and the execution correctness of the robot task.
In addition, the automated testing platform according to the embodiment of the present invention may further have the following additional technical features:
according to an embodiment of the present invention, the obtaining module is specifically configured to: and acquiring the test data input by the user through a web page, and/or acquiring the test data from an excel form.
According to an embodiment of the invention, the execution module is further configured to: operating a browser by using a Webdriver API of a selenium library, and positioning page elements to realize the operation of page functions and the acquisition of page contents; and packaging the test script by using the unit test unit frame to obtain a test script set for executing the test case set.
According to one embodiment of the invention, the robot scheduling platform function comprises at least one of resource management, task scheduling, a reporting module and data analysis of the robot, and the robot scheduling process comprises at least one of a process of executing tasks by the robot and robot motion.
According to an embodiment of the present invention, the check result includes a first check result and a second check result, and the generating module is further configured to: and marking the test report according to the first check result and the second check result so as to obtain the marked test report.
According to one embodiment of the invention, the platform further comprises: and the sending module is used for sending the marked test report to a preset mailbox by utilizing a smtplib module of Python.
According to an embodiment of the present invention, the execution module is configured to execute the test case suite by using a plurality of testers, wherein the platform further includes: the distribution module is used for distributing the test cases to the testers according to the configuration of the testers so as to enable the testers to execute the corresponding number of test cases.
According to one embodiment of the invention, the platform further comprises: the creating module is used for creating a test case library for each test case in the test case set according to preset parameters, wherein the preset parameters comprise at least one of a coverage parameter, a priority parameter and an importance parameter; the execution module is further used for obtaining a test strategy and calling a corresponding test case library to test according to parameters in the test strategy.
In order to achieve the above object, a second embodiment of the present invention provides an automated testing method, wherein the method is used for any one of the platforms described above, and the method includes the following steps: the method comprises the steps of obtaining test data, wherein the test data comprises first test data corresponding to the function of a robot scheduling platform and second test data corresponding to a robot scheduling process; modularizing and parameterizing the first test data and the second test data respectively in a key driving and/or data driving mode to obtain a test case set; executing the test case set and obtaining an execution result; and generating a test report according to the execution result.
According to the automatic test method of the embodiment of the invention, test data are obtained, wherein the test data comprise first test data corresponding to the function of the robot dispatching platform and second test data corresponding to the robot dispatching process, and the first test data and the second test data are respectively modularized and parameterized in a key drive and/or data drive mode to obtain a test case set, further, the test case set is executed, an execution result is obtained, a test report is generated according to the execution result, wherein, the correctness of each test case execution is verified according to the test result and the expected result to obtain a verification result, and generating a test report according to the verification result by using the HTMLTestRunner, therefore, the robot scheduling platform function and the corresponding robot scheduling process can be quickly tested and the correctness can be verified, so that the logic correctness of the scheduling task and the execution correctness of the robot task can be ensured.
In addition, the automatic testing method according to the embodiment of the invention can also have the following additional technical characteristics:
according to one embodiment of the invention, the method comprises the steps of: obtaining a test result of each test step of each test case in the execution result; verifying the correctness of each test case execution according to the test result to obtain a verification result; and generating the test report according to the verification result by using an HTMLTestRunner.
According to an embodiment of the present invention, the verification result includes a first verification result and a second verification result, and the generating the test report according to the verification result by using the HTMLTestRunner includes the following steps: and marking the test report according to the first check result and the second check result so as to obtain the marked test report.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
FIG. 1 is a block diagram of an automated test platform according to an embodiment of the present invention;
FIG. 2 is a block diagram of an automated test platform according to one embodiment of the present invention;
FIG. 3 is a flowchart illustrating the packaging of test scripts according to one embodiment of the present invention;
FIG. 4 is a flow chart illustrating an automated testing method according to an embodiment of the present invention;
FIG. 5 is a flow diagram of an automated testing method according to one embodiment of the invention;
FIG. 6 is a flow chart illustrating an automated testing method according to an embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
An automated test platform and an automated test method according to an embodiment of the present invention are described below with reference to the drawings.
FIG. 1 is a block diagram of an automated test platform according to an embodiment of the invention.
It should be noted that the platform is used for robot scheduling test, as shown in fig. 1, the platform 100 includes: the device comprises an acquisition module 1, a processing module 2, an execution module 3 and a generation module 4.
Specifically, the obtaining module 1 is configured to obtain test data, where the test data includes first test data corresponding to a robot scheduling platform function and second test data corresponding to a robot scheduling process; the processing module 2 is used for modularizing and parameterizing the first test data and the second test data respectively in a key drive and/or data drive mode to obtain a test case set; the execution module 3 is used for executing the test case set and obtaining an execution result; the generating module 4 is used for generating a test report according to the execution result.
It should be noted that the robot scheduling platform function may include at least one of resource management, task scheduling, reporting, and data analysis of the robot, and the robot scheduling process may include at least one of a process in which the robot performs a task and a motion of the robot.
Specifically, the first test data and the second test data are respectively modularized and parameterized in a key word driving/data driving manner, that is, different functions and scheduling flows of the robot scheduling platform are combed, for example, the test case modules are divided into different test case modules according to the functions of the robot scheduling platform or the robot scheduling flows, such as a resource management module, a task scheduling module, a report module and a data analysis module (i.e., modularization), and parameters are adaptively adjusted (i.e., parameterization) according to actual robot scheduling requirements through the divided test case modules.
Optionally, each test case module may be used alone as a test case set, or a plurality of test case modules may be combined as a test case set.
Further, the obtaining module 1 is specifically configured to: and acquiring the test data input by the user through the web page and/or acquiring the test data from the excel form.
Alternatively, a Web-side test data management page based on django (Python Web development framework) may be developed, and then, test data entered by a user is acquired through the Web page, and the test data is maintained through mysql (relational database management system), that is, the test case is saved in mysql and an expected result of the test case running is saved, or the test data is managed by using excel and acquired from an excel table, for example, the excel test case is operated by using three libraries of xlrd/xlwt/xlutils.
Therefore, in the embodiment of the invention, the acquisition module acquires the test data input by the user through the web page, and the automatic test of robot scheduling can be realized only by maintaining the test data by a tester in a mode of acquiring the test data from the excel form, so that the workload of the tester is reduced, and the test efficiency is improved.
Further, the execution module 3 is further configured to: operating a browser by using a Webdriver API of a selenium library, and positioning page elements to realize the operation of page functions and the acquisition of page contents; and packaging the test script by using the unit test unit frame to obtain a test script set for executing the test case set.
It should be understood that compared with the Selenium RC that drives the browser indirectly through the Selenium Core (javascript implementation), the Webdriver API is simple to operate and directly calls the browser native API to drive, thereby improving the execution efficiency of the test case.
Specifically, the unit test unit frame is used to package the test script, that is, the test script is packaged by the unit test unit frame to form a test script set for executing the test case set.
Referring to fig. 2, a test script package according to an embodiment of the present invention is described below, first, a single test case is implemented by TestCase, then TestCase is loaded to TestSuite by addTest loading method to form different test script sets for executing the test case set, TestSuite is run by TextTestRunner, and test result is fed back to a test report, where environment setUp and destruction of the test case can be implemented by testfirmware, where environment of the test case is set up by using setUp method, and environment of the test case is destroyed by using teadown method to remove test data.
That is to say, different test cases can be combined according to actual test requirements, so that different test case sets are formed, and the test case sets are executed through the test script sets to perform testing.
Therefore, in the embodiment of the invention, the execution module forms the test script set for executing the test case set by integrating the test cases, thereby realizing the batch execution of the test case set.
Further, the generating module 4 is specifically configured to: obtaining a test result of each test step of each test case in the execution result; verifying the execution correctness of each test case according to the test result and the expected result to obtain a verification result; and generating a test report according to the verification result by using an HTMLTestRunner (an HTMLTestRunner. py third-party library for generating an html format report).
Specifically, the correctness of the execution of each test case is verified, that is, the verification result of each test step of each test case is obtained by comparing the test result of each test step of each test case with the expected result, wherein the test result can be obtained by locating the page element after the execution of each test step of each test case through selenium, the corresponding expected result of each test step can be obtained through each test case, the test result of each test step of each test case is compared with the expected result in TestCase to obtain the verification result of each test step of each test case, and further, the HTMLTestRunner is used to generate a corresponding test report according to the verification result of each test step of each test case.
It should be noted that the operation result is actual result data generated by executing the test case, the expected result is a result expected to be generated by executing the test case, and the verification result is a comparison result between the operation result and the expected result.
Therefore, in the embodiment of the invention, the generating module verifies the execution correctness of each test case by acquiring the test result of each step in the test case execution process and the verification result of the expected result, and automatically generates the corresponding test report according to the test result of automatic verification, thereby being beneficial to judging the real validity of the test result and ensuring the validity of the test and the execution correctness of the robot task.
Further, the check result includes a first check result and a second check result, and the generating module 4 is further configured to: and marking the test report according to the first check result and the second check result so as to obtain the marked test report.
It can be understood that the first verification result corresponds to successful execution of the step in the test case execution process, the second verification result corresponds to failed execution of the step in the test case execution process, and the test step verification results of different test cases can be distinguished by different colors to label the test report, for example, the test case with successful execution as the verification result is labeled as green, or the test case with failed execution as the verification result is labeled as red.
Further, as shown in fig. 3, the platform 100 further includes: and a sending module 5.
Specifically, the sending module 5 is configured to send the labeled test report to a preset mailbox by using a smtplib module of Python.
It can be understood that, in the embodiment of the present invention, after the HTMLTestRunner is used to generate the corresponding test report according to the verification result, the sending module 5 is further used to send the labeled test report to the preset mailbox by using the smtplib module of Python, so as to reduce manual operations.
Therefore, in the embodiment of the invention, research personnel can intuitively know the problems in the robot scheduling process so as to analyze and optimize the robot scheduling process.
It should be noted that, if the verification result is successful, it corresponds to that the test case operation result is consistent with the expected result, and if the verification result is failed, it corresponds to that the test case operation result is inconsistent with the expected result.
Further, the execution module 3 is configured to execute the test case suite by using a plurality of testers, where as shown in fig. 3, the platform 100 further includes: a distribution module 6.
Specifically, the allocating module 6 is configured to allocate test cases to each tester according to the configuration of each tester, so that each tester executes a corresponding number of test cases. Specifically, the allocation module 6 may use a Selenium grid (component for performing distributed test) distributed test, for example, one machine is designed as a master node, and the other machines are designed as branch nodes, and further, test cases are allocated to each tester according to the configuration of each tester, so that each tester executes a corresponding number of test cases.
It can be understood that, in the distributed test, different nodes can be configured into different test environments (for example, different operating systems or browsers are selected), so that the limit of the test environments is broken through, resources are utilized to the maximum extent, the test time is reduced, and the test efficiency is improved.
Further, as shown in fig. 3, the platform 100 further includes: a module 7 is created.
Specifically, the creating module 7 is configured to create a test case library for each test case in the test case set according to preset parameters, where the preset parameters include at least one of a coverage parameter, a priority parameter, and an importance parameter; the execution module 3 is further configured to obtain a test policy, and call a corresponding test case library for testing according to parameters in the test policy.
Specifically, a test case library is created for each test case in the test case set by the creation module 7 according to at least one of the coverage parameter, the priority parameter, and the importance parameter, and then the execution module 3 obtains the test policy and calls the corresponding test case library to perform testing according to the parameters in the test policy.
It can be understood that, when the robot scheduling test is performed, the parameter transmission in the test strategy can be set according to the actual situation, for example, according to different stages of the test, such as unit, smoke, system integration, regression, etc., the coverage, priority and importance of the corresponding module in the current test stage are analyzed, and further, the corresponding test case library is called for testing, and the test quality and efficiency under different test case libraries can be compared, so that the test case is optimized. Therefore, in the embodiment of the invention, the test case library is formed in the process of running and accumulating the test cases through the automatic test platform, and different test case libraries are selected according to the test strategy, so that the test quality and efficiency of the robot scheduling test are improved.
To sum up, according to the automated testing platform of the embodiment of the present invention, the obtaining module obtains the testing data, wherein the testing data includes the first testing data corresponding to the function of the robot scheduling platform and the second testing data corresponding to the robot scheduling process, and the processing module performs modularization and parameterization on the first testing data and the second testing data respectively in a key-driven and/or data-driven manner to obtain a testing case set, and then the executing module executes the testing case set to obtain an executing result, and the generating module generates a testing report according to the executing result, wherein the correctness of execution of each testing case is verified according to the testing result and the expected result to obtain a verification result, and the HTMLTestRunner generates the testing report according to the verification result, thereby implementing the rapid testing and correctness verification of the function of the robot scheduling platform and the corresponding robot scheduling process, to ensure the logical correctness of the scheduling task and the execution correctness of the robot task.
Fig. 4 is a flowchart illustrating an automated testing method according to an embodiment of the invention.
It is noted that the method is used in any of the platforms as described above, the method comprising the steps of:
s101, test data are obtained, wherein the test data comprise first test data corresponding to the robot dispatching platform function and second test data corresponding to the robot dispatching process.
It should be noted that the robot scheduling platform function may include at least one of resource management, task scheduling, reporting, and data analysis of the robot, and the robot scheduling process may include at least one of a process in which the robot performs a task and a motion of the robot.
And S102, modularizing and parameterizing the first test data and the second test data respectively in a key driving and/or data driving mode to obtain a test case set.
Specifically, the first test data and the second test data are respectively modularized and parameterized in a key-driven and/or data-driven manner, that is, different functions and scheduling flows of the robot scheduling platform are combed, for example, the test case modules are divided into different test case modules according to the functions of the robot scheduling platform or the robot scheduling flows, such as a resource management module, a task scheduling module, a report module and a data analysis module (that is, modularization), and parameters are adaptively adjusted (that is, parameterization) according to actual robot scheduling requirements through the divided test case modules.
S103, executing the test case set and obtaining an execution result.
That is, the robot scheduling test can be performed by executing the test case set, and an execution result is obtained.
And S104, generating a test report according to the execution result.
Specifically, as shown in fig. 5, generating a test report according to the execution result includes the following steps:
s1041, obtaining the test result of each test step of each test case in the execution result.
It is understood that after each test step of each test case is executed, the test result is also saved into the execution result of the test case set.
S1042, verifying the correctness of each test case execution according to the test result and the expected result to obtain a verification result.
It is understood that the verification result of each test case can be obtained by comparing the test result of each test case with the expected result.
And S1043, generating a test report according to the verification result by using the HTMLTestRunner.
Therefore, in the embodiment of the invention, the correctness of the execution of each test case is verified by acquiring the test result of each step in the test case execution process and the verification result of the expected result, and the corresponding test report is automatically generated according to the test result of automatic verification, so that the real validity of the test result can be judged, and the validity of the test and the execution correctness of the robot task can be ensured.
Further, the verification result includes a first verification result and a second verification result, as shown in fig. 6, generating a test report according to the verification result by using the HTMLTestRunner, including the following steps:
and S10431, according to the first check result and the second check result, marking the test report to obtain a marked test report.
It can be understood that the first verification result corresponds to successful execution of the step in the test case execution process, the second verification result corresponds to failed execution of the step in the test case execution process, and the test report can be labeled according to the verification result of each test step of each test case.
It should be noted that other specific embodiments of the automated testing method for robot scheduling according to the embodiment of the present invention correspond to the specific embodiments of the foregoing automated testing platform for robot scheduling one to one, and are not described herein again.
In summary, according to the automated testing method of the embodiment of the invention, the testing data is obtained, wherein the testing data includes the first testing data corresponding to the robot scheduling platform function and the second testing data corresponding to the robot scheduling process, and the first test data and the second test data are respectively modularized and parameterized in a key drive and/or data drive mode to obtain a test case set, further, the test case set is executed, an execution result is obtained, a test report is generated according to the execution result, wherein, the correctness of each test case execution is verified according to the test result and the expected result to obtain a verification result, and generating a test report according to the verification result by using the HTMLTestRunner, therefore, the robot scheduling platform function and the corresponding robot scheduling process can be quickly tested and the correctness can be verified, so that the logic correctness of the scheduling task and the execution correctness of the robot task can be ensured.
It should be noted that the logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered limiting of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. An automated testing platform, the platform for robotic dispatch testing, the platform comprising:
the system comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring test data, and the test data comprises first test data corresponding to the function of a robot scheduling platform and second test data corresponding to the robot scheduling process;
the processing module is used for modularizing and parameterizing the first test data and the second test data respectively in a key drive and/or data drive mode to obtain a test case set;
the execution module is used for executing the test case set and obtaining an execution result;
a generating module, configured to generate a test report according to the execution result, where the generating of the test report includes: obtaining a test result of each test step of each test case in the execution result; verifying the execution correctness of each test case according to the test result and the expected result to obtain a verification result; and generating the test report according to the verification result by using an HTMLTestRunner.
2. The platform of claim 1, wherein the acquisition module is specifically configured to:
and acquiring the test data input by the user through a web page, and/or acquiring the test data from an excel form.
3. The platform of claim 1, wherein the execution module is further to:
operating a browser by using a Webdriver API of a selenium library, and positioning page elements to realize the operation of page functions and the acquisition of page contents; and
and packaging the test script by using a unit test unit frame to obtain a test script set for executing the test case set.
4. The platform of claim 1, wherein the robot scheduling platform functions include at least one of resource management, task scheduling, reporting, and data analysis of the robot, and the robot scheduling process includes at least one of a process in which the robot performs tasks, and robot motion.
5. The platform of claim 1, wherein the verification result comprises a first verification result and a second verification result, the generation module further to:
and marking the test report according to the first check result and the second check result so as to obtain the marked test report.
6. The platform of claim 5, wherein the platform further comprises:
and the sending module is used for sending the marked test report to a preset mailbox by utilizing a smtplib module of Python.
7. The platform of claim 1, wherein the execution module is to execute the set of test cases with a plurality of testers, wherein the platform further comprises:
the distribution module is used for distributing the test cases to the testers according to the configuration of the testers so as to enable the testers to execute the corresponding number of test cases.
8. The platform of claim 1, wherein the platform further comprises:
the creating module is used for creating a test case library for each test case in the test case set according to preset parameters, wherein the preset parameters comprise at least one of a coverage parameter, a priority parameter and an importance parameter;
the execution module is further used for obtaining a test strategy and calling a corresponding test case library to test according to parameters in the test strategy.
9. An automated testing method for use with the platform of any one of claims 1-8, the method comprising the steps of:
the method comprises the steps of obtaining test data, wherein the test data comprises first test data corresponding to the function of a robot scheduling platform and second test data corresponding to a robot scheduling process;
modularizing and parameterizing the first test data and the second test data respectively in a key driving and/or data driving mode to obtain a test case set;
executing the test case set and obtaining an execution result;
generating a test report according to the execution result, wherein the generating of the test report comprises: obtaining a test result of each test step of each test case in the execution result; verifying the execution correctness of each test case according to the test result and the expected result to obtain a verification result; and generating the test report according to the verification result by using an HTMLTestRunner.
10. The method of claim 9, wherein the verification results include a first verification result and a second verification result, and wherein generating the test report from the verification results using the HTMLTestRunner comprises:
and marking the test report according to the first check result and the second check result so as to obtain the marked test report.
CN202010870093.9A 2020-08-26 2020-08-26 Automatic test platform and automatic test method thereof Withdrawn CN112035348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010870093.9A CN112035348A (en) 2020-08-26 2020-08-26 Automatic test platform and automatic test method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010870093.9A CN112035348A (en) 2020-08-26 2020-08-26 Automatic test platform and automatic test method thereof

Publications (1)

Publication Number Publication Date
CN112035348A true CN112035348A (en) 2020-12-04

Family

ID=73581521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010870093.9A Withdrawn CN112035348A (en) 2020-08-26 2020-08-26 Automatic test platform and automatic test method thereof

Country Status (1)

Country Link
CN (1) CN112035348A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579443A (en) * 2020-12-08 2021-03-30 温氏食品集团股份有限公司 Automatic testing method and platform of intelligent testing robot
CN112988585A (en) * 2021-03-23 2021-06-18 京东数科海益信息科技有限公司 PaaS platform test method, device, equipment and medium
CN113535591A (en) * 2021-09-13 2021-10-22 季华实验室 Robot program verification method, device, electronic device and storage medium
CN113535560A (en) * 2021-07-14 2021-10-22 杭州网易云音乐科技有限公司 Test execution method and device, storage medium and computing equipment
WO2023104121A1 (en) * 2021-12-09 2023-06-15 北京罗克维尔斯科技有限公司 Testing method and apparatus for test case, and electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391376A (en) * 2017-07-26 2017-11-24 成都科来软件有限公司 A kind of regression testing method
CN107643981A (en) * 2017-08-29 2018-01-30 顺丰科技有限公司 A kind of automatic test platform and operation method of polynary operation flow
CN110750441A (en) * 2019-09-06 2020-02-04 平安健康保险股份有限公司 Automatic testing method and device, computer equipment and storage medium
CN111427772A (en) * 2020-03-05 2020-07-17 广东睿江云计算股份有限公司 Multidimensional test case priority ordering method
CN111558953A (en) * 2020-04-30 2020-08-21 广东博智林机器人有限公司 Automated test platform, method and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391376A (en) * 2017-07-26 2017-11-24 成都科来软件有限公司 A kind of regression testing method
CN107643981A (en) * 2017-08-29 2018-01-30 顺丰科技有限公司 A kind of automatic test platform and operation method of polynary operation flow
CN110750441A (en) * 2019-09-06 2020-02-04 平安健康保险股份有限公司 Automatic testing method and device, computer equipment and storage medium
CN111427772A (en) * 2020-03-05 2020-07-17 广东睿江云计算股份有限公司 Multidimensional test case priority ordering method
CN111558953A (en) * 2020-04-30 2020-08-21 广东博智林机器人有限公司 Automated test platform, method and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姜文等: "基于Selenium的Web软件自动化测试", 计算机技术与发展, vol. 28, no. 09, pages 47 - 52 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579443A (en) * 2020-12-08 2021-03-30 温氏食品集团股份有限公司 Automatic testing method and platform of intelligent testing robot
CN112988585A (en) * 2021-03-23 2021-06-18 京东数科海益信息科技有限公司 PaaS platform test method, device, equipment and medium
CN112988585B (en) * 2021-03-23 2024-05-17 京东科技信息技术有限公司 PaaS platform testing method, paaS platform testing device, paaS platform testing equipment and PaaS platform testing medium
CN113535560A (en) * 2021-07-14 2021-10-22 杭州网易云音乐科技有限公司 Test execution method and device, storage medium and computing equipment
CN113535591A (en) * 2021-09-13 2021-10-22 季华实验室 Robot program verification method, device, electronic device and storage medium
WO2023104121A1 (en) * 2021-12-09 2023-06-15 北京罗克维尔斯科技有限公司 Testing method and apparatus for test case, and electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN112035348A (en) Automatic test platform and automatic test method thereof
KR101410099B1 (en) Function Test Apparatus based on Unit Test Cases Reusing and Function Test Method thereof
US7253606B2 (en) Framework that maximizes the usage of testhead resources in in-circuit test system
US8381184B2 (en) Dynamic test coverage
CN109634843A (en) A kind of distributed automatization method for testing software and platform towards AI chip platform
CN111124871A (en) Interface test method and device
CN112241360A (en) Test case generation method, device, equipment and storage medium
KR102268053B1 (en) Intelligent safety fault diagnostic system of robotic process automation
CN113505073B (en) Performance test method, device, equipment and medium of database
CN113886262A (en) Software automation test method and device, computer equipment and storage medium
CN115686608A (en) Software version management method and device for vehicle, server and storage medium
CN110597710B (en) Test coverage rate statistical method, device, computer equipment and storage medium
CN110990289A (en) Method and device for automatically submitting bug, electronic equipment and storage medium
KR102418796B1 (en) FMEA failure mode recommend system
CN117472767A (en) Software interface testing method, device, equipment and storage medium
CN106600149B (en) Process analysis method and device
CN108415886A (en) A kind of data label error correction method and device based on production process
CN116431522A (en) Automatic test method and system for low-code object storage gateway
CN116340159A (en) Regression test case recommendation method, system, equipment and storage medium
CN111581081B (en) Automatic test system and method
CN113238968A (en) System test method, apparatus, device, medium, and program product
CN108845932B (en) Unit testing method and device of network library, storage medium and terminal
CN114138677B (en) Test method and device, test system and electronic equipment
US20230216727A1 (en) Identification of root causes in data processing errors
CN111813662A (en) User behavior driven sustainable integration test method, device and equipment

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20201204

WW01 Invention patent application withdrawn after publication