CN117827658A - Automatic test method and system for calling data by using terminal - Google Patents

Automatic test method and system for calling data by using terminal Download PDF

Info

Publication number
CN117827658A
CN117827658A CN202311872777.2A CN202311872777A CN117827658A CN 117827658 A CN117827658 A CN 117827658A CN 202311872777 A CN202311872777 A CN 202311872777A CN 117827658 A CN117827658 A CN 117827658A
Authority
CN
China
Prior art keywords
data
demonstrator
test
terminal
interface
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.)
Pending
Application number
CN202311872777.2A
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.)
Chengdu Kanop Robot Technology Co ltd
Original Assignee
Chengdu Kanop Robot Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Kanop Robot Technology Co ltd filed Critical Chengdu Kanop Robot Technology Co ltd
Priority to CN202311872777.2A priority Critical patent/CN117827658A/en
Publication of CN117827658A publication Critical patent/CN117827658A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an automatic test method and system for calling data by using a terminal. According to the invention, the difficulty of acquiring information on the demonstrator UI is judged by the data calling terminal according to the information condition, and the data which is difficult to acquire on the demonstrator UI is directly displayed on the data calling terminal, so that the problems that the actual existing time of the detected information is shorter than the interface refreshing time or the information is lost after UI switching and the detected information cannot be displayed are solved, and the timeliness and the accuracy of acquiring the data can be improved.

Description

Automatic test method and system for calling data by using terminal
Technical Field
The invention relates to the field of industrial robot testing, in particular to an automatic testing method and system for calling data by using a terminal.
Background
The traditional industrial robot demonstrator tests are to directly perform function verification on a demonstrator UI interface and directly obtain feedback information on a screen of the demonstrator, but when the UI is used alone for automatic testing, some steps which are irrelevant to the tested function and take longer time are difficult to avoid, and based on the reasons, there is a condition that: the actual existence time of the detected information is shorter than the interface refreshing time or the switching time of the UI, and after the interface refreshing or the UI switching, the detected information is lost, so that the detected information cannot be displayed.
In the existing process of testing the tested UI interface through test software, only the operation of manually and directly clicking a function control (button) is replaced, the problem that data information is not timely obtained still exists, and the problem that a test result is inaccurate is caused.
Disclosure of Invention
The invention solves the problems of insufficient automation and untimely information acquisition in UI test in the prior art, and provides a UI automation test method which can solve the problems in the prior art.
In order to solve the technical problems, one aspect of the present invention provides an automated test method using terminal call data:
an automatic test method for calling data by using a terminal comprises the following steps:
preparing data call, and connecting a data call terminal with an interface server;
starting testing the equipment by using the demonstrator;
when testing is carried out, the data calling terminal judges the difficulty of acquiring information on the UI interface of the demonstrator according to the information condition, if the difficulty is high, the data is called through the data calling terminal, and if the difficulty is not high, the data is acquired through the UI interface of the demonstrator;
and ending the test project operation.
The traditional industrial robot demonstrator tests are to directly perform function verification on a demonstrator UI interface and directly obtain feedback information on a screen of the demonstrator, but when feedback is obtained, the problem that data cannot be obtained or the data is inaccurate due to untimely data display can occur, the difficulty of obtaining information on the demonstrator UI interface is judged according to information conditions through a data calling terminal, and the data which is difficult to obtain on the demonstrator UI interface is directly displayed on the data calling terminal, so that timeliness and accuracy of obtaining the data can be improved.
According to a further technical scheme, the acquisition difficulty of the demonstrator UI is judged according to the information condition, and the method comprises the following specific steps:
if the data can be acquired only by switching the interface for at least 2 times from the demonstrator UI interface, or the refresh time of the demonstrator UI interface exceeds the actual existence time of the information, judging that the difficulty is high;
if the two conditions do not exist, the difficulty is not high.
In general, inaccurate data acquisition is due to three reasons:
1. frequent switching is needed in a UI interface to acquire data, the data acquisition is not in time, and the test time is long;
2. the refresh time of the UI of the demonstrator exceeds the actual existence time of the information, and the data does not exist before being refreshed and displayed, so that the data cannot be acquired;
3. the actual existence time of the detected information is less than 1 second, and the change of the data is difficult to notice by a tester.
The further technical scheme is that the specific steps of starting the test are as follows:
the demonstrator runs test tool software, and the test tool software receives data information from the front end of the equipment;
and the testing tool software simulates the operation of manually clicking the monitoring interface according to the front-end data information of the equipment, and tests each functional control.
The method avoids the problem that manual operation needs to be switched on the UI interface, and generates excessive repeated and nonsensical steps, improves the working efficiency and reduces the workload of testers.
Further technical scheme is that after the test is started and before the test project is finished, the following steps are executed:
the data calling terminal acquires auxiliary data except the tested function in the whole testing process;
the data calling terminal outputs the acquired auxiliary data to the demonstrator, and the demonstrator runs the testing tool to process the auxiliary data and outputs a processing result;
the data calling terminal verifies whether the processing result of the test result meets the tested function requirement.
The further technical scheme is that after the test project operation is finished, the connection between the data calling terminal and the interface server is released.
The invention further provides an automatic test system for calling data by using the terminal.
An automatic test system for calling data by using a terminal can execute an automatic test method, and comprises the data calling terminal, an interface server and a demonstrator;
the data calling terminal is used for judging the difficulty of acquiring information at the UI according to the information condition and carrying out data calling according to the judgment result of the difficulty of acquiring the information;
the interface server is used for connecting the tested equipment and the data calling terminal;
the demonstrator is used for running the program to test the equipment, displaying a UI interface and realizing the input and output of the program through the UI.
According to a further technical scheme, the demonstrator is used for running test tool software, and the test tool software simulates the operation of manually clicking the monitoring interface according to the front-end data information of the equipment to test each functional control.
The data calling terminal is further used for acquiring auxiliary data except the tested function in the whole testing process;
the demonstrator is used for operating the testing tool to process the auxiliary data and outputting a processing result;
the data calling terminal is used for verifying whether the processing result of the test result meets the tested function requirement.
Compared with the prior art, the invention has at least the following beneficial effects: according to the invention, the difficulty of acquiring information on the demonstrator UI is judged by the data calling terminal according to the information condition, and the data which is difficult to acquire on the demonstrator UI is directly displayed on the data calling terminal, so that the problems that the actual existing time of the detected information is shorter than the interface refreshing time or the information is lost after UI switching and the detected information cannot be displayed are solved, and the timeliness and the accuracy of acquiring the data can be improved.
Drawings
FIG. 1 is a flow chart of an embodiment of the present invention;
Detailed Description
The present invention will be described in further detail with reference to the following examples in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Example 1
An automated test method for calling data by using a terminal, see fig. 1, comprises the following steps:
s1: preparing data call, and connecting a data call terminal with an interface server;
s2: starting testing the equipment by using the demonstrator;
and the industrial robot equipment tests pass through the function verification on the UI interface of the demonstrator, and feedback information is obtained.
S21: in this embodiment, the specific steps of starting the test are as follows: the demonstrator runs the testing tool software;
the test tool realizes the operation of left click, right click and keyboard input of the tested application by simulating manual operation of mouse pointer movement and input of mouse and keyboard buttons, and then combines the information acquisition of the control, such as text extraction and the like, and the operation of the control through the API of the control, such as accessing the attribute of the control, switching the state of the control and the like, so as to test the tested application together. In the testing process, the testing tool software receives data information from the front end of the device.
S22: when testing is carried out, the data calling terminal judges the difficulty of acquiring information at the UI interface of the demonstrator according to the information condition;
s23: if the difficulty is high, calling data through a data calling terminal;
s24: if the difficulty is not high, acquiring data through a demonstrator UI interface;
if the data can be acquired only by switching the interface for at least 2 times from the demonstrator UI interface, or the refresh time of the demonstrator UI interface exceeds the actual existence time of the information, or the data existence time is lower than one second, judging that the difficulty is high;
if none of the above conditions exists, the difficulty is judged not to be high.
In this embodiment, the actual existence time of the detected information is 500ms, and the refresh time of the UI interface of the demonstrator is 1s, which results in that the conditions that the refresh time of the UI interface of the demonstrator exceeds the actual existence time of the information and the data existence time is lower than one second are simultaneously satisfied, and the difficulty is determined to be high, the data is called through the data calling terminal, and feedback is formed to the operator.
S3: the data calling terminal acquires auxiliary data except the tested function in the whole testing process;
s31: the data calling terminal outputs the acquired auxiliary data to the demonstrator, and the demonstrator runs the testing tool to process the auxiliary data and outputs a processing result;
s32: the data calling terminal verifies whether the processing result of the test result meets the tested function requirement.
In this embodiment, one or more connections are first established to the interface server, if a tested function involves information of other functional modules, the information of the other modules related to the tested module is usually directly obtained by using an interface calling mode when the interfaces of the other modules are not concerned about how to be displayed or the interfaces of the other modules are not switched, after the information is obtained, whether the functions of the tested module pass through is determined by combining the obtained information and the directly observable information of the tested module, and then the operations of releasing the connections of the interfaces are performed after the execution of the use case are completed.
S4: and (3) ending the operation of the test item, and releasing the connection between the data calling terminal and the interface server.
Example two
An automatic test system for calling data by using a terminal can execute an automatic test method, and comprises the data calling terminal, an interface server and a demonstrator;
the data calling terminal is used for judging the difficulty of acquiring information at the UI according to the information condition and carrying out data calling according to the judgment result of the difficulty of acquiring the information; the data calling terminal is also used for acquiring auxiliary data except the tested function in the whole testing process; the data calling terminal is used for verifying whether the processing result of the test result meets the tested function requirement.
The interface server is used for connecting the tested equipment and the data calling terminal;
the demonstrator is used for running a program to test equipment, displaying a UI interface and realizing the input and output of the program through the UI; the demonstrator is used for running test tool software, and the test tool software simulates the operation of manually clicking the monitoring interface according to the front-end data information of the equipment to test each functional control. The demonstrator is used for operating the testing tool to process the auxiliary data and outputting a processing result;
although the invention has been described herein with reference to illustrative embodiments thereof, it should be understood that numerous other modifications and embodiments can be devised by those skilled in the art that will fall within the scope and spirit of the principles of this disclosure. More specifically, various variations and modifications may be made to the component parts and/or arrangements of the subject combination arrangement within the scope of the disclosure. In addition to variations and modifications in the component parts and/or arrangements, other uses will be apparent to those skilled in the art.

Claims (8)

1. An automated test method for calling data by using a terminal is characterized by comprising the following steps:
preparing data call, and connecting a data call terminal with an interface server;
starting testing the equipment by using the demonstrator;
when testing is carried out, the data calling terminal judges the difficulty of acquiring information on the UI interface of the demonstrator according to the information condition, if the difficulty is high, the data is called through the data calling terminal, and if the difficulty is not high, the data is acquired through the UI interface of the demonstrator;
and ending the test project operation.
2. The automated test method using terminal call data according to claim 1, wherein the determining the difficulty of acquiring the data at the UI interface of the demonstrator according to the information condition comprises the following specific steps:
if the data can be acquired only by switching the interface for at least 2 times from the demonstrator UI interface, or the refresh time of the demonstrator UI interface exceeds the actual existence time of the information, or the data existence time is lower than one second, judging that the difficulty is high;
if none of the above conditions exists, the difficulty is judged not to be high.
3. An automated test method using terminal call data according to claim 1, wherein the starting test comprises the specific steps of:
the demonstrator runs test tool software, and the test tool software receives data information from the front end of the equipment;
and the testing tool software simulates the operation of manually clicking the monitoring interface according to the front-end data information of the equipment, and tests each functional control.
4. An automated test method using terminal call data according to claim 3, wherein after the start of the test, before the end of the test item, the following steps are performed:
the data calling terminal acquires auxiliary data except the tested function in the whole testing process;
the data calling terminal outputs the acquired auxiliary data to the demonstrator, and the demonstrator runs the testing tool to process the auxiliary data and outputs a processing result;
the data calling terminal verifies whether the processing result of the test result meets the tested function requirement.
5. An automated test method for invoking data in accordance with any of claims 1-4, wherein the connection of the data invoking terminal to the interface server is released after the test item is run.
6. An automated test system for calling data by using a terminal, capable of executing the automated test method according to any one of claims 1 to 4, comprising a data calling terminal, an interface server, and a demonstrator;
the data calling terminal is used for judging the difficulty of acquiring information at the UI according to the information condition and carrying out data calling according to the judgment result of the difficulty of acquiring the information;
the interface server is used for connecting the tested equipment and the data calling terminal;
the demonstrator is used for running the program to test the equipment, displaying a UI interface and realizing the input and output of the program through the UI.
7. The automated test system of claim 6, wherein the demonstrator is configured to run test tool software that simulates the operation of manually clicking the monitor interface to test the functionality controls based on the device front-end data information.
8. An automated test system utilizing terminal call data as defined in claim 6, wherein said data call terminal is further configured to obtain auxiliary data other than the function under test throughout the test process;
the demonstrator is used for operating the testing tool to process the auxiliary data and outputting a processing result;
the data calling terminal is used for verifying whether the processing result of the test result meets the tested function requirement.
CN202311872777.2A 2023-12-29 2023-12-29 Automatic test method and system for calling data by using terminal Pending CN117827658A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311872777.2A CN117827658A (en) 2023-12-29 2023-12-29 Automatic test method and system for calling data by using terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311872777.2A CN117827658A (en) 2023-12-29 2023-12-29 Automatic test method and system for calling data by using terminal

Publications (1)

Publication Number Publication Date
CN117827658A true CN117827658A (en) 2024-04-05

Family

ID=90515008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311872777.2A Pending CN117827658A (en) 2023-12-29 2023-12-29 Automatic test method and system for calling data by using terminal

Country Status (1)

Country Link
CN (1) CN117827658A (en)

Similar Documents

Publication Publication Date Title
CN105866575B (en) Vehicle-mounted display comprehensive testing device and testing method
US10222955B2 (en) Automatically capturing user interactions and evaluating user interfaces in software programs using field testing
US5634002A (en) Method and system for testing graphical user interface programs
US8645912B2 (en) System and method for use in replaying software application events
CN104331373A (en) Monkey test system and method
CN104881364A (en) Automated testing method and system applied to Android system
CN103823758A (en) Browser testing method and device
CN104717337A (en) Method for testing mobile application in batch and equipment used in method
CN102890503A (en) Automatic CAN (Controller Area Network) interface function test system and test analysis method
CN109977012B (en) Joint debugging test method, device, equipment and computer readable storage medium of system
CN110908915B (en) Test coverage rate display method and device and computer system
CN107704376B (en) Game automation testing method and system
CN111159023A (en) Test method, test device, electronic equipment and computer readable storage medium
CN102622233A (en) System and method for automatically generating user interface applicable to certain interactive terminal equipment
CN105138458A (en) Method and system for recording automatic testing scripts by combining intelligent terminal and computer terminal
CN117827658A (en) Automatic test method and system for calling data by using terminal
CN111176995A (en) Test method and test system based on big data test case
CN113590498B (en) Method and system for testing application starting time of desktop operating system
CN114638096A (en) Method, device and equipment for displaying logic among program variables and storage medium
CN111984537A (en) WebIDE-based software testing method, storage medium and device
CN110688298A (en) Nuclear power plant man-machine interaction system automatic testing device based on event driving
CN113495844A (en) Automatic testing method, device and system based on virtual click and storage medium
CN114578790B (en) Unmanned aerial vehicle flight control automatic test method, system, equipment and medium
CN114090454B (en) Interface automation test method, device, equipment and storage medium
CN112905432A (en) Performance test method and device, storage medium and terminal

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