Test result comparison method and device, test terminal and test system
By connecting the test terminal to the robot to be tested, performance testing is automatically conducted and the results are compared, which solves the problem of time-consuming and inefficient existing manual testing, and achieves efficient performance testing and result comparison.
Patent Information
- Application Number
- CN202411602083.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-03-04
AI Technical Summary
The existing robot performance testing methods are manual operation, time-consuming and inefficient. Especially when there are many models, it is difficult to quickly and accurately compare the performance test results.
Through the test terminal, establish a connection with the robot to be tested, display the test page, run the test code for performance testing, obtain the current test results, and compare it with the historical test results to determine the comparison results.
It realizes automation of performance testing, improves testing efficiency, can clearly view test results, and simplifies the comparison process.
Smart Images

Figure CN119557211A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a test result comparison method, device, test terminal and test system. Background Art
[0002] For the performance test of the robot, it is necessary to run the robot and start the test. The existing performance test methods are all manual, manually running the tester, manually running the test program, manually viewing the data, and manually summarizing the data. This method consumes a lot of time and energy, and the summarized results also need to be compared one by one.
[0003] When there are many models, people have to manually run the robot, manually obtain the software test data, and then put it into a summary table. The storage format of historical data may be different from the current data, and it is impossible to quickly and accurately compare the performance test results. For testers, the data to be sorted is relatively complicated, and it is impossible to intuitively view the historical data. Summary of the invention
[0004] The present invention provides a test result comparison method, device, test terminal and test system, so as to implement performance testing of a robot to be tested through the test terminal and obtain test comparison results.
[0005] According to one aspect of the present invention, a test result comparison method is provided, which is applied to a test terminal. The test result comparison method includes:
[0006] Establishing a connection with the robot to be tested;
[0007] When the connection with the robot to be tested is successful, a test page displayed by the test platform in the test terminal is displayed;
[0008] When the start test control in the test page is triggered, the test code is run to control the robot to be tested to perform performance testing;
[0009] Obtaining the current test result transmitted by the robot to be tested;
[0010] Determine a comparison result between the current test result and the historical test result.
[0011] According to another aspect of the present invention, there is provided a test result comparison device, comprising:
[0012] An establishing module, used for establishing a connection with the robot to be tested;
[0013] A display module, used for displaying a test page displayed by a test platform in the test terminal when the connection with the robot to be tested is successful;
[0014] A test module, used for running the test code to control the robot to be tested to perform performance testing when the start test control in the test page is triggered;
[0015] An acquisition module, used to acquire the current test result transmitted by the robot to be tested;
[0016] The determination module is used to determine the comparison result between the current test result and the historical test result.
[0017] According to another aspect of the present invention, a test terminal is provided, the test terminal comprising:
[0018] at least one processor; and
[0019] a memory communicatively connected to the at least one processor; wherein,
[0020] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the test result comparison method described in any embodiment of the present invention.
[0021] According to another aspect of the present invention, a testing system for a robot to be tested is provided, comprising a testing terminal and the robot to be tested.
[0022] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the test result comparison method described in any embodiment of the present invention when executed.
[0023] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the test result comparison method according to any embodiment of the present invention is implemented.
[0024] The technical solution of the embodiment of the present invention is to establish a connection with the robot to be tested through the test terminal, and when the test terminal is successfully connected to the robot to be tested, the test page displayed by the test platform in the test terminal is displayed, and when the start test control in the test page is triggered, the test code is run to control the robot to be tested to perform a performance test, obtain the current test result transmitted by the robot to be tested, and determine the comparison result between the current test result and the historical test result. The present invention connects the test terminal to the robot to be tested, performs a performance test on the robot to be tested through the control terminal and obtains a comparison result, realizes the automation of the test by using the test terminal and the test code, and can clearly view the test results, thereby improving the efficiency of the performance test.
[0025] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 is a flow chart of a test result comparison method provided according to Embodiment 1 of the present invention;
[0028] Figure 2 is a flow chart of a comparison result determination method provided in accordance with Embodiment 2 of the present invention;
[0029] Figure 3 is a structural schematic diagram of a test result comparison device provided according to Embodiment 3 of the present invention;
[0030] Figure 4 It is a structural diagram of a test terminal provided according to Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] Embodiment 1
[0034] Figure 1 A flowchart of a test result comparison method is provided for the first embodiment of the present invention. This embodiment is applicable to the case of comparing current test results with historical test results. The method can be executed by a test result comparison device. The test result comparison device can be implemented in the form of hardware and / or software. The test result comparison device can be configured in a test terminal. The test terminal can be a computer system equipped with a test platform. Figure 1 As shown, the method includes:
[0035] S110: Establishing a connection with the robot to be tested.
[0036] In this embodiment, the robot to be tested can be understood as a robot that needs to be tested or evaluated. Before the robot is put into use, the robot can be tested in terms of, for example, function, performance, safety, reliability, etc.
[0037] Specifically, the test terminal and the robot to be tested are connected through a network protocol so that data can be transmitted between them. The test terminal can be understood as a device for testing, which mainly performs comprehensive and in-depth tests on target functions, etc. according to the operation of the robot to be tested, so as to obtain its test results. According to the test results, the device to be tested can be further improved and optimized. One test terminal can be connected to multiple robots to be tested, and the robots to be tested will not affect each other.
[0038] Exemplarily, the network addresses of the robot under test and the test terminal are obtained, and the robot under test and the test terminal can be connected to the same local area network through the hypertext transfer protocol. For example, the robot under test can send a connection request to the test terminal, and the test terminal receives the connection request and responds, thereby completing the connection.
[0039] S120. When the connection with the robot to be tested is successful, a test page displayed by the test platform in the test terminal is displayed.
[0040] In this embodiment, the test platform is a platform mounted on the test terminal for completing the test, and the test of the robot to be tested is completed in the test platform. The test page can be understood as a page that displays the functions of the test platform. The tester can operate on the test page, and the test page inputs the operation into the test platform to complete the test.
[0041] Specifically, the test terminal and the robot to be tested are connected through a network protocol. If the connection fails for the first time, you can wait for a while to reconnect until the two are successfully connected. After the connection is successful, the test page on the test platform in the test terminal can display the robot to be tested that has been successfully connected. On this test page, you can operate the robot to be tested, such as turning on the switch of the robot to be tested or making the robot to be tested complete a specific action.
[0042] Exemplarily, after the test terminal and the robot to be tested are connected to a local area network, the test platform in the test terminal can display the test page of the robot to be tested, on which the robot to be tested can be operated, such as clicking to start the test on the robot to be tested. If the test terminal is connected to multiple robots to be tested, it is necessary to click to start the test on the test page corresponding to each robot to be tested.
[0043] S130: When the start test control in the test page is triggered, run the test code to control the robot to be tested to perform performance test.
[0044] In this embodiment, the start test control can be understood as a switch on the test platform that controls the robot to be tested to start testing. The test code is a code written for the function to be tested of the robot to be tested. By running the test code, the test results of the robot to be tested required by the tester can be obtained.
[0045] Specifically, when the test page in the test platform shows that the start test control is triggered, the test terminal starts to test the robot under test, and the test terminal runs the written test code to control the robot under test through the test code. The performance test can include testing the performance indicators of the robot under test, including the data of various performance indicators during the operation of the robot under test.
[0046] For example, when the test page in the test platform shows that the start test control is triggered, the test code is run to control the robot under test, which can control the robot under test to walk at a specified position or complete a specified action, and test the performance indicators of the robot under test such as memory usage, memory process or iteration frequency of each sensor in this process.
[0047] S140: Obtain the current test result transmitted by the robot to be tested.
[0048] In this embodiment, the current test result can be understood as the test result obtained by performing a performance test on the robot to be tested in the current stage, and the current stage can correspond to the current version of the robot to be tested.
[0049] Specifically, when the test page in the test platform shows that the start test control is triggered, it is necessary to wait for the test code to run and transmit the performance test results obtained by running the test code to the test terminal. If the test terminal has not obtained the performance test results after waiting for a period of time, the robot to be tested needs to be reported for error processing.
[0050] For example, when the test page in the test platform shows that the start test control is triggered, the waiting time can be determined according to the preset running time of the test code. If the test terminal has not received the performance test result after the waiting time, the robot under test can be reported as an error, and the robot under test can be inspected and repaired before the performance test is performed.
[0051] S150: Determine a comparison result between the current test result and the historical test result.
[0052] In this embodiment, the historical test results can be understood as test results obtained by performing performance tests on the robot to be tested in the historical stages before the current stage, and the historical stages before the current stage can correspond to various historical versions of the robot to be tested.
[0053] Specifically, for the same robot to be tested, different versions of the robot are tested for performance, and the test results corresponding to the different versions are obtained, and the test results corresponding to the different versions are placed in the same table according to the data type. The current test results of the robot to be tested are also placed in the same table, and the comparison results of the test results of multiple versions of the robot to be tested are obtained according to different data types, and the results are displayed in the test terminal.
[0054] For example, for the same robot to be tested, the historical test results of each version of the robot to be tested are placed in the same table according to different data types. After obtaining the current test result of the robot to be tested, the current test result is also placed in the same table. Then, a line graph can be drawn based on the results of the performance test, with the different data types of the robot to be tested as the horizontal axis and the different versions of the robot to be tested as the vertical axis, and the graph is displayed in the test terminal.
[0055] The technical solution of the embodiment of the present invention is to establish a connection with the robot to be tested through the test terminal, and when the test terminal is successfully connected to the robot to be tested, the test page displayed by the test platform in the test terminal is displayed, and when the start test control in the test page is triggered, the test code is run to control the robot to be tested to perform a performance test, obtain the current test result transmitted by the robot to be tested, and determine the comparison result between the current test result and the historical test result. The present invention connects the test terminal to the robot to be tested, and performs a performance test on the robot to be tested and obtains a comparison result through the control terminal. The test is automated by using the test terminal and the test code, and the test results can be clearly viewed, thereby improving the efficiency of the performance test.
[0056] Based on the above embodiment, a variant embodiment of the above embodiment is proposed. It should be noted that in order to make the description concise, only the differences from the above embodiment are described in the variant embodiment.
[0057] In one embodiment, obtaining the current test result transmitted by the robot to be tested includes:
[0058] After the start test control is triggered for a first set time, obtaining a performance test result fed back by the robot to be tested;
[0059] The performance test result is analyzed to obtain the current test result.
[0060] In this embodiment, the first set duration can be set according to the duration of the test code running and the test result transmission.
[0061] Specifically, when the test page in the test platform shows that the start test control is triggered, the test code starts running and performs a performance test on the robot to be tested. After the performance test is completed, the robot to be tested transmits the performance test results to the test terminal. After waiting for the first set time, check the performance test results fed back by the robot to be tested obtained by the test terminal. Parse and extract the test data required by the tester in the performance test results, and use the extracted test data as the current test result.
[0062] For example, the first set time can be set to 30 minutes. When a performance test is performed on a robot to be tested, the performance test result of the robot to be tested can be obtained from the test terminal after waiting for 30 minutes from the start of the test code. Data such as version information, memory usage or memory process of the robot to be tested is parsed from the performance test result as the current test result.
[0063] Optionally, the current test result includes robot information of the robot to be tested, test start time, and test data, where the test data is data obtained by the robot to be tested under the control of the test code.
[0064] Specifically, the robot information can be understood as the information of the robot to be tested, which may include the version information and number information of the robot to be tested. The test start time can be understood as the moment when the performance test of the robot to be tested begins. The test data may be the data obtained by the performance test of the robot to be tested. The test data includes a plurality of data representing different indicators of the robot to be tested, and the different indicators are controlled by the test code.
[0065] In one embodiment, obtaining the current test result transmitted by the robot to be tested includes:
[0066] After the start test control is triggered for a first set time, if the performance test result fed back by the robot to be tested is not obtained, then wait for a second set time to continue to determine whether the performance test result fed back by the robot to be tested is obtained;
[0067] If the performance test result is obtained after waiting for the second set time period, the current test result is parsed from the performance test result.
[0068] In this embodiment, the second set time length can be understood as the maximum time length reserved for data transmission between the robot to be tested and the test terminal. There is no necessary connection between the first set time length and the second set time length.
[0069] Specifically, when the test page in the test platform shows that the start test control is triggered, the test code starts running and performs a performance test on the robot to be tested. After completing the performance test, the robot to be tested transmits the performance test results to the test terminal. After waiting for the first set time, check whether the test terminal obtains the performance test results fed back by the robot to be tested. If obtained, the performance test results are parsed and the current test results are obtained; if not, continue to wait for the second set time, and check again whether the test terminal obtains the performance test results fed back by the robot to be tested. If the performance test results are obtained after the second set time, the performance test results are parsed and the current test results are obtained; if the performance test results are not obtained after the second set time, the test code can be run again or the robot to be tested can be directly error processed.
[0070] Exemplarily, the second set time can be set to 10 minutes. Starting from the start of the test code, wait for 30 minutes to check whether the test terminal has obtained the performance test results fed back by the robot to be tested. If obtained, the performance test results are parsed and the current test results are obtained; if not, continue to wait for 10 minutes and check again whether the test terminal has obtained the performance test results fed back by the robot to be tested. If the performance test results are obtained after the second set time, the performance test results are parsed and the current test results are obtained; otherwise, the test code can be run again. If the performance test results of the robot to be tested cannot be obtained, the robot to be tested is directly error-reported.
[0071] In one embodiment, the test result comparison method further includes:
[0072] The current test result is stored in the test table corresponding to the robot to be tested.
[0073] In this embodiment, the test table can be used to store the performance test results of the robot to be tested, and one test table can store multiple performance test results of one robot to be tested.
[0074] Specifically, for the same robot to be tested, after the robot to be tested is updated, the updated version needs to be tested for performance, and the test results corresponding to each version can be obtained. These test results are stored in the same test table corresponding to the robot to be tested, so as to compare and obtain the comparison results.
[0075] Embodiment 2
[0076] Figure 2 This is a flow chart of a comparison result determination method provided in Embodiment 2 of the present invention. This embodiment is based on the comparison result determination method for historical test results and current test results in the above embodiment. Figure 2 As shown, the method includes:
[0077] S210. Obtain historical test results from a test table, where the historical test results include test results obtained during historical testing of the robot to be tested.
[0078] Specifically, for the same robot to be tested, historical test results are obtained from the test table corresponding to the robot to be tested, and the historical test results may be test results obtained after the performance test is performed on the historical version of the robot to be tested. The historical test results contain multiple different types of data.
[0079] S220: Determine a comparison chart of the same type of data in the historical test results and the current test results.
[0080] Specifically, according to the written test code, the data types contained in the current test results and the historical test results are the same. The same type of data in the current test results and the historical test results can be extracted from the data table, and a comparison chart of each different type of data can be drawn.
[0081] Exemplarily, the current test result includes the current robot information, the current test start time, and the current test data. Similarly, the historical test result also includes the historical robot information, the historical test start time, and the historical test data. A robot information comparison chart can be drawn for the current robot information and the historical robot information, a test start time comparison chart can be drawn for the current test start time and the historical test start time, and a test data comparison chart can be drawn for the current test data and the historical test data.
[0082] S230: Display the comparison chart on a performance test page.
[0083] In this embodiment, the performance test page can be understood as a page in the test terminal for displaying the comparison results, and can be a web page or the like on which data changes can be viewed clearly and intuitively.
[0084] Specifically, by obtaining a comparison chart of each different type of data, it is displayed on the performance test page of the test terminal, so that the test results can be viewed clearly and intuitively.
[0085] Exemplarily, the obtained robot information comparison chart, test start time comparison chart and test data comparison chart are all displayed in the performance test page.
[0086] The technical solution of the embodiment of the present invention first obtains historical test results from the test table, the historical test results include test results obtained during the historical test of the robot to be tested, then determines a comparison chart of the same type of data in the historical test results and the current test results, and finally displays the obtained comparison chart on the performance test page. The method for determining the comparison results of the historical test results and the current test results is refined, and a clear and intuitive comparison chart can be viewed.
[0087] Embodiment 3
[0088] Figure 3 A schematic diagram of the structure of a test result comparison device provided in Embodiment 3 of the present invention.
[0089] like Figure 3 As shown, the device comprises:
[0090] Establishing module 310, used to establish a connection with the robot to be tested;
[0091] Display module 320, used to display the test page displayed by the test platform in the test terminal when the connection with the robot to be tested is successful;
[0092] A test module 330 is used to run a test code to control the robot to be tested to perform a performance test when a start test control in the test page is triggered;
[0093] An acquisition module 340 is used to acquire the current test result transmitted by the robot to be tested;
[0094] The determination module 350 is used to determine the comparison result between the current test result and the historical test result.
[0095] The test result comparison device provided in the embodiment of the present invention enables the test terminal to establish a connection with the robot to be tested through the establishment module, enables the test terminal to display the test page displayed by the test platform in the test terminal when the connection with the robot to be tested is successful through the display module, runs the test code to control the robot to be tested to perform performance testing when the test control is triggered in the test page through the test module, obtains the current test result transmitted by the robot to be tested through the acquisition module, and determines the comparison result between the current test result and the historical test result through the determination module. Through the cooperation between the modules, the test terminal is connected to the robot to be tested, and the performance test of the robot to be tested is performed through the control terminal and the comparison result is obtained. The test terminal and the test code are used to realize the automation of the test, and the test results can be clearly viewed, thereby improving the efficiency of the performance test.
[0096] In one embodiment, the acquisition module 340 is specifically configured to:
[0097] After the start test control is triggered for a first set time, obtaining a performance test result fed back by the robot to be tested;
[0098] The performance test result is analyzed to obtain the current test result.
[0099] In one embodiment, the current test result includes robot information of the robot to be tested, test start time, and test data, where the test data is data obtained by the robot to be tested under the control of the test code.
[0100] In one embodiment, the acquisition module 340 is specifically configured to:
[0101] After the start test control is triggered for a first set time, if the performance test result fed back by the robot to be tested is not obtained, then wait for a second set time to continue to determine whether the performance test result fed back by the robot to be tested is obtained;
[0102] If the performance test result is obtained after waiting for the second set time period, the current test result is parsed from the performance test result.
[0103] In one embodiment, the determination module 350 is specifically configured to:
[0104] Obtaining historical test results from the test table, wherein the historical test results include test results obtained during historical testing of the robot to be tested;
[0105] Determine a comparison chart of the same type of data in the historical test results and the current test results;
[0106] The comparison chart is displayed on the performance test page.
[0107] In one embodiment, the test result comparison device further includes a storage module, which is specifically used to:
[0108] The current test result is stored in the test table corresponding to the robot to be tested.
[0109] The data center submission device provided in the embodiment of the present invention can execute the data center submission method provided in any embodiment of the present invention, completes the submission of the data center through the mutual cooperation and collaboration between the modules, and has the functional modules and beneficial effects corresponding to the execution method.
[0110] Embodiment 4
[0111] According to an embodiment of the present invention, the present invention also provides a test terminal, a test system, a computer-readable storage medium and a computer program product.
[0112] Figure 4 It is a block diagram of a test terminal provided according to Embodiment 4 of the present invention, and the test terminal can implement the test result comparison method described in the embodiment of the present invention. The test terminal is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The test terminal can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0113] like Figure 4As shown, the test terminal 410 includes at least one processor 411, and a memory connected to the at least one processor 411, such as a read-only memory (ROM) 412, a random access memory (RAM) 413, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 411 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 412 or the computer program loaded from the storage unit 418 to the random access memory (RAM) 413. In the RAM 413, various programs and data required for the operation of the test terminal 410 can also be stored. The processor 411, the ROM 412, and the RAM 413 are connected to each other via a bus 414. An input / output (I / O) interface 415 is also connected to the bus 414.
[0114] Multiple components in the test terminal are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, a mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a disk, an optical disk, etc.; and a communication unit 419, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 419 allows the test terminal to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0115] Processor 411 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of processor 411 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. Processor 411 performs the various methods and processes described above, such as a test result comparison method.
[0116] In some embodiments, the test result comparison method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 418. In some embodiments, part or all of the computer program may be loaded and / or installed on the test terminal 410 via the ROM 412 and / or the communication unit 419. When the computer program is loaded into the RAM 413 and executed by the processor 411, one or more steps of the test result comparison method described above may be performed. Alternatively, in other embodiments, the processor 411 may be configured to perform the test result comparison method in any other appropriate manner (e.g., by means of firmware).
[0117] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0118] The computer program for implementing the method of the present invention can be written in any combination of one or more programming languages, such as a combination of programming languages such as python, shell, Vue3, Java, C#, etc. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0119] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0120] To provide interaction with a user, the systems and techniques described herein may be implemented on a test terminal having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the test terminal. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0121] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0122] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0123] In some embodiments, a testing system for a robot to be tested includes a testing terminal and the robot to be tested.
[0124] In some embodiments, the computer program product includes a computer program, and when the computer program is executed by a processor, the test result comparison method provided by the embodiment of the present invention is implemented.
[0125] The technical solution of the embodiment of the present invention is to establish a connection with the robot to be tested through the test terminal, and when the test terminal is successfully connected to the robot to be tested, the test page displayed by the test platform in the test terminal is displayed, and when the start test control in the test page is triggered, the test code is run to control the robot to be tested to perform a performance test, obtain the current test result transmitted by the robot to be tested, and determine the comparison result between the current test result and the historical test result. The present invention connects the test terminal to the robot to be tested, and performs a performance test on the robot to be tested and obtains a comparison result through the control terminal. The test is automated by using the test terminal and the test code, and the test results can be clearly viewed, thereby improving the efficiency of the performance test.
[0126] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0127] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A test result comparison method, characterized in that: Applied to a test terminal, the method comprises: Establishing a connection with the robot to be tested; When the connection with the robot to be tested is successful, a test page displayed by the test platform in the test terminal is displayed; When the start test control in the test page is triggered, the test code is run to control the robot to be tested to perform performance testing; Obtaining the current test result transmitted by the robot to be tested; Determine a comparison result between the current test result and the historical test result.
2. The method according to claim 1, characterized in that: The obtaining of the current test result transmitted by the robot to be tested comprises: After the start test control is triggered for a first set time, obtaining a performance test result fed back by the robot to be tested; The performance test result is analyzed to obtain the current test result.
3. The method according to claim 2, characterized in that The current test result includes robot information of the robot to be tested, test start time, and test data, where the test data is data obtained by the robot to be tested under the control of the test code.
4. The method according to claim 1, characterized in that The obtaining of the current test result transmitted by the robot to be tested comprises: After the start test control is triggered for a first set time, if the performance test result fed back by the robot to be tested is not obtained, then wait for a second set time to continue to determine whether the performance test result fed back by the robot to be tested is obtained; If the performance test result is obtained after waiting for the second set time period, the current test result is parsed from the performance test result.
5. The method according to claim 1, characterized in that Determining the comparison result between the current test result and the historical test result includes: Obtaining historical test results from the test table, wherein the historical test results include test results obtained during historical testing of the robot to be tested; Determine a comparison chart of the same type of data in the historical test results and the current test results; The comparison chart is displayed on the performance test page.
6. The method according to claim 1, characterized in that Also includes: The current test result is stored in the test table corresponding to the robot to be tested.
7. A test result comparison device, characterized in that: include: An establishing module, used to establish a connection with the robot to be tested; A display module, used for displaying a test page displayed by a test platform in the test terminal when the connection with the robot to be tested is successful; A test module, used for running the test code to control the robot to be tested to perform performance testing when the start test control in the test page is triggered; An acquisition module, used to acquire the current test result transmitted by the robot to be tested; The determination module is used to determine the comparison result between the current test result and the historical test result.
8. A test terminal, characterized in that: The test terminal comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the test result comparison method according to any one of claims 1 to 6.
9. A testing system for a robot to be tested, characterized in that: It comprises the test terminal as claimed in claim 8 and the robot to be tested.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the test result comparison method according to any one of claims 1 to 6 when executed.
11. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements the test result comparison method according to any one of claims 1 to 6.