CN115878495A - Automatic test system and method - Google Patents

Automatic test system and method Download PDF

Info

Publication number
CN115878495A
CN115878495A CN202310031133.4A CN202310031133A CN115878495A CN 115878495 A CN115878495 A CN 115878495A CN 202310031133 A CN202310031133 A CN 202310031133A CN 115878495 A CN115878495 A CN 115878495A
Authority
CN
China
Prior art keywords
data packet
image information
display
server
information
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
CN202310031133.4A
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.)
Shanghai Zhongtongji Network Technology Co Ltd
Original Assignee
Shanghai Zhongtongji Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Zhongtongji Network Technology Co Ltd filed Critical Shanghai Zhongtongji Network Technology Co Ltd
Priority to CN202310031133.4A priority Critical patent/CN115878495A/en
Publication of CN115878495A publication Critical patent/CN115878495A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The system comprises a script execution end, a script execution end and a script execution end, wherein the script execution end is used for analyzing an executed automation script, sending a first data packet containing test image information in configuration to a server end according to analyzed test configuration, and controlling the execution process of the automation script according to feedback information in a second data packet correspondingly returned by the server end; the server is used for pushing the test image information contained in the first data packet to the display end, receiving feedback information fed back by the display end aiming at the test image information, generating a second data packet comprising the feedback information and sending the second data packet to the script execution end; and the display terminal is used for displaying the received test image information and feeding back the display state information serving as feedback information to the server terminal. According to the technical scheme, the relevant test flow of the app related to the photographing and phase taking function can be automatically realized, and the efficiency of test work is improved.

Description

Automatic test system and method
Technical Field
The application belongs to the technical field of software testing, and particularly relates to an automatic testing system and method.
Background
Currently, with the development of mobile internet and electronic information technology, mobile intelligent terminals have been widely used in various industries based on specific functions implemented by the carried apps.
In a testing link of app development, information such as bar codes and two-dimensional codes needs to be scanned and identified in a plurality of testing scenes. However, in the related art, when the user needs to rely on camera input, the user must perform photographing through manual testing, which results in that the testing link of the app as a whole cannot implement automated testing, and thus the testing efficiency is low.
The above is only for the purpose of assisting understanding of the technical solution of the present invention, and does not represent an admission that the above is the prior art.
Disclosure of Invention
In order to overcome the problems in the related art at least to a certain extent, the application provides an automatic testing system and method.
In order to achieve the purpose, the following technical scheme is adopted in the application:
first aspect of the invention
The application provides an automated testing system, this system includes:
the script execution end is used for analyzing the executed automation script, sending a first data packet containing test image information in the configuration to the server end according to the analyzed test configuration, and controlling the execution process of the automation script according to feedback information in a second data packet correspondingly returned by the server end;
the server is used for pushing the test image information contained in the first data packet to a display end, receiving feedback information fed back by the display end aiming at the test image information, generating a second data packet comprising the feedback information and sending the second data packet to a script execution end;
and the display terminal is used for displaying the received test image information and feeding back the display state information serving as feedback information to the server terminal.
Optionally, the script execution end is specifically configured to:
when the feedback information in the second data packet is successfully displayed, controlling the automatic script to perform the next execution operation;
and when the feedback information in the second data packet is failed to be displayed, controlling the automatic script to stop executing and outputting error reporting information.
Optionally, the script execution end is provided on a first computing device configured with the camera apparatus.
Optionally, the first computing device comprises a smartphone.
Optionally, the display terminal is disposed on a second computing device having a display device.
Optionally, the server is also disposed on the second computing device.
Optionally, the number of the display devices is multiple, and the first data packet further includes identification information of the display device;
the server is specifically configured to: and pushing the test image information contained in the first data packet to the display equipment corresponding to the identification information.
Optionally, the test image information includes: one or more of picture image information, two-dimensional code image information and bar code image information.
In a second aspect, the present application further provides an automated testing method, which is applied to the automated testing system described in any one of the above, and the testing method includes:
the script execution end analyzes the executed automatic script, sends a first data packet containing the test image information in the configuration to the server end according to the analyzed test configuration, and controls the execution process of the automatic script according to the feedback information in a second data packet correspondingly returned by the server end;
the server side pushes the test image information contained in the first data packet to a display side, receives feedback information fed back by the display side aiming at the test image information, generates a second data packet comprising the feedback information, and sends the second data packet to a script execution side;
and the display end displays the received test image information and feeds back the display state information serving as feedback information to the server end.
This application adopts above technical scheme, possesses following beneficial effect at least:
the automated test system provided in this application includes: the script execution end is used for analyzing the executed automation script, sending a first data packet containing test image information in the configuration to the server end according to the analyzed test configuration, and controlling the execution process of the automation script according to feedback information in a second data packet correspondingly returned by the server end; the server is used for pushing the test image information contained in the first data packet to the display end, receiving feedback information fed back by the display end aiming at the test image information, generating a second data packet comprising the feedback information and sending the second data packet to the script execution end; and the display terminal is used for displaying the received test image information and feeding back the display state information serving as feedback information to the server terminal. According to the technical scheme, the system is composed of a script execution end, a server end and a display end, all parts of the system interact in the test based on specific configuration, the related test flow of the app related to the photographing and phase taking function can be automatically realized, and the efficiency of the test work is improved.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the technology or prior art of the present application and are incorporated in and constitute a part of this specification. The drawings expressing the embodiments of the present application are used for explaining the technical solutions of the present application, and should not be construed as limiting the technical solutions of the present application.
FIG. 1 is a block diagram of an automated test system according to an embodiment of the present application;
fig. 2 is a schematic illustration of an interaction process of an automated testing system according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail below. It should be apparent that the described embodiments are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without making any creative effort, shall fall within the protection scope of the present application.
As described in the background art, currently, with the development of mobile internet and electronic information technology, mobile intelligent terminals have been widely used in various industries based on specific functions implemented by a mounted app.
In the testing link of app development, information such as bar codes and two-dimensional codes needs to be scanned and identified in a plurality of testing scenes. However, in the related art, when the user needs to rely on the input of the camera, the user must perform the photographing through a manual test, which results in that the automatic test cannot be realized in the entire test link of the app, and the test efficiency is low.
In view of the above, the present application provides an automatic test system, which is based on specific system components and configurations to solve the technical problem that an app relating to a photographing and phase taking function cannot realize an automatic test in a test implementation.
As shown in fig. 1, in an embodiment, the automated testing system provided by the present application includes:
the script execution end 100 is used for analyzing the executed automation script, sending a first data packet containing test image information in configuration to the server end 200 according to the analyzed test configuration, and controlling the execution process of the automation script according to feedback information in a second data packet correspondingly returned by the server end 200;
the script execution end is arranged on a first computing device configured with the camera device, for example, in this embodiment, the first computing device is a smartphone, and a camera of the smartphone is the camera device;
the server 200 is configured to push the test image information included in the first data packet to the display 300, receive feedback information fed back by the display 300 for the test image information, generate a second data packet including the feedback information, and send the second data packet to the script execution end 100;
the display terminal 300 is configured to display the received test image information, and feed back the display state information as feedback information to the server 200;
the display terminal 300 is provided on a second computing apparatus having a display device, and in this embodiment, the second computing apparatus is a computer to which a display screen (display device) is connected.
Specifically, in the above process, based on different test requirements, the test image information includes: one or more of picture image information, two-dimensional code image information and bar code image information.
Specifically, the script execution terminal 100 is specifically configured to:
when the feedback information in the second data packet is successfully displayed, controlling the automatic script to perform the next execution operation;
and when the feedback information in the second data packet is failed to be displayed, controlling the automatic script to stop executing and outputting error reporting information.
It is easy to understand that, in some App automation testing stages, a user needs to take a picture to input specific information (for example, a WeChat code scanning is logged in a computer terminal, and a two-dimensional code on the computer needs to be scanned), and a two-dimensional code or other picture information is different according to different apps or scenes, and therefore needs to be generated dynamically;
in the automated testing system described in the above embodiment, the display screen of the second computing device in the system is placed in front of the camera of the smart phone (the first computing device) under automated testing, so as to take a picture and obtain image information on the display screen. The second computing device configured with a display screen may provide an interface to facilitate test script invocation based on the configuration described above.
When the script execution end executes the automated test script, an instruction containing relevant test image information is sent to the server (as in the foregoing parsing and sending process), and the server pushes the information to the display end and then returns relevant feedback to the script execution end. When the script execution end receives the instruction of successful display, the next execution of the automatic script is continued, for example, a camera is opened to scan an image so as to obtain the content required by the automatic test;
therefore, based on the specific configuration of the system, through interaction among all parts of the system in the test, the relevant test flow of the app related to the photographing and phase taking function can be automatically realized, and the efficiency of the test work is improved.
FIG. 2 is a schematic illustration of an interaction process of the automated test system in another embodiment.
In this embodiment, the display side and the server side are both provided on the second computing apparatus having the display device, and the display device provided in the second computing apparatus is plural;
correspondingly, based on the foregoing embodiment, in this embodiment, the first data packet further includes identification information of the display device;
the server 200 is specifically configured to: the test image information included in the first data packet is pushed to the display device corresponding to the identification information (corresponding to the legend of "accept picture and display device number" and "push picture" in fig. 2).
In the embodiment, the display end and the server end are integrated on the same computing device, which is beneficial to improving the integration of the system; and a plurality of display devices are arranged, so that the requirements of a specific test scene can be met (for example, in a corresponding step of a certain test scene, test images need to be shot in different display areas at the same time).
In an embodiment, the present application further provides an automated testing method applied to the automated testing system, where the automated testing method includes:
the script execution end analyzes the executed automatic script, sends a first data packet containing test image information in the configuration to the server end according to the analyzed test configuration, and controls the execution process of the automatic script according to feedback information in a second data packet correspondingly returned by the server end;
the server side pushes the test image information contained in the first data packet to the display side, receives feedback information fed back by the display side aiming at the test image information, generates a second data packet comprising the feedback information and sends the second data packet to the script execution side;
and the display end displays the received test image information and feeds back the display state information serving as feedback information to the server end.
From a pure method implementation point of view, as shown in connection with fig. 2, the method comprises the following steps:
step 1: the number of the display equipment is required to be configured in the automatic script, and the prepared picture information can be a picture or information which is required to be coded into a two-dimensional code or a bar code;
step 2: the script execution end sends the serial number of the display equipment and the picture information to the server end;
and step 3: the server side can push related picture information to the display side according to the sent data;
and 4, step 4: displaying pictures, two-dimensional codes or bar code information on the display terminal;
and 5: after successful display, reporting the correct display related information of the equipment to the server;
step 6: the server returns the information of successful display to the automatic script execution end;
and 7: the script may perform the next operation.
While the invention has been described with reference to specific preferred embodiments, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the following claims. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (9)

1. An automated test system, comprising:
the script execution end is used for analyzing the executed automatic script, sending a first data packet containing the test image information in the configuration to the server end according to the analyzed test configuration, and controlling the execution process of the automatic script according to the feedback information in a second data packet correspondingly returned by the server end;
the server is used for pushing the test image information contained in the first data packet to a display end, receiving feedback information fed back by the display end aiming at the test image information, generating a second data packet comprising the feedback information and sending the second data packet to a script execution end;
and the display terminal is used for displaying the received test image information and feeding back the display state information serving as feedback information to the server terminal.
2. The automated test system of claim 1, wherein the script execution end is specifically configured to:
when the feedback information in the second data packet is successfully displayed, controlling the automatic script to perform the next execution operation;
and when the feedback information in the second data packet is failed to be displayed, controlling the automatic script to stop executing and outputting error reporting information.
3. The automated test system of claim 1, wherein the script execution end is disposed on a first computing device configured with a camera apparatus.
4. The automated test system of claim 3, wherein the first computing device comprises a smartphone.
5. The automated test system of claim 1, wherein the display terminal is disposed on a second computing device having a display device.
6. The automated test system of claim 5, wherein the server is also disposed on the second computing device.
7. The automated testing system of claim 6, wherein the plurality of display devices are provided, and the first data packet further includes identification information of the display devices;
the server is specifically configured to: and pushing the test image information contained in the first data packet to the display equipment corresponding to the identification information.
8. The automated test system of any of claims 1 to 7, wherein the test image information comprises: one or more of picture image information, two-dimensional code image information and bar code image information.
9. An automated testing method applied to the automated testing system according to any one of claims 1 to 8, comprising:
the script execution end analyzes the executed automatic script, sends a first data packet containing test image information in the configuration to the server end according to the analyzed test configuration, and controls the execution process of the automatic script according to feedback information in a second data packet correspondingly returned by the server end;
the server side pushes the test image information contained in the first data packet to a display side, receives feedback information fed back by the display side aiming at the test image information, generates a second data packet comprising the feedback information, and sends the second data packet to a script execution side;
and the display end displays the received test image information and feeds back the display state information serving as feedback information to the server end.
CN202310031133.4A 2023-01-10 2023-01-10 Automatic test system and method Pending CN115878495A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310031133.4A CN115878495A (en) 2023-01-10 2023-01-10 Automatic test system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310031133.4A CN115878495A (en) 2023-01-10 2023-01-10 Automatic test system and method

Publications (1)

Publication Number Publication Date
CN115878495A true CN115878495A (en) 2023-03-31

Family

ID=85758390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310031133.4A Pending CN115878495A (en) 2023-01-10 2023-01-10 Automatic test system and method

Country Status (1)

Country Link
CN (1) CN115878495A (en)

Similar Documents

Publication Publication Date Title
CN110347587B (en) APP compatibility testing method and device, computer equipment and storage medium
CN109618225B (en) Video frame extraction method, device, equipment and medium
CN108694995B (en) Medical diagnosis system and method
CN106101794A (en) The processing method of a kind of virtual desktop video data, Apparatus and system
CN111310507B (en) Identification method, device and equipment for identification code
CN110704148B (en) Acquisition method and device of equipment page element, server and storage medium
CN113452991B (en) Lens focusing state determining method, device, equipment and storage medium
CN109729346B (en) Remote debugging method and system for television, debugging terminal and television terminal
CN115878495A (en) Automatic test system and method
CN112162718A (en) Reverse interaction method, device, equipment and storage medium
CN108965905A (en) A kind of live data plug-flow and offer and the method, apparatus for obtaining plug-flow address
CN108513034A (en) Method, electronic device and the computer readable storage medium of long-range shooting picture
US20230156161A1 (en) Failure identification and handling method, and system
CN114598936B (en) Subtitle batch generation and management method, system, device and storage medium
CN113452931B (en) Screen splicing interaction method and system based on image recognition and smart screen
CN112202985B (en) Information processing method, client device, server device and information processing system
CN112346366A (en) Control method, device and equipment of terminal equipment and computer readable storage medium
CN108519962B (en) Font display method and apparatus applied to android system, and terminal device
KR100932603B1 (en) Mobile WiFi test method and device
CN113298074B (en) Image recognition method and device, computer readable storage medium and processor
CN113824915B (en) Video picture acquisition method, apparatus and computer readable storage medium
CN114880395B (en) Algorithm scheme operation method, visualization system, terminal device and storage medium
CN117519554A (en) Screen text information broadcasting method and device, storage medium and electronic device
CN113329265B (en) Multimedia information display method, device, storage medium and electronic device
WO2022001762A1 (en) Desktop processing method and apparatus and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination