CN110633203A - Automatic test method for touch screen all-in-one machine software - Google Patents

Automatic test method for touch screen all-in-one machine software Download PDF

Info

Publication number
CN110633203A
CN110633203A CN201810987280.8A CN201810987280A CN110633203A CN 110633203 A CN110633203 A CN 110633203A CN 201810987280 A CN201810987280 A CN 201810987280A CN 110633203 A CN110633203 A CN 110633203A
Authority
CN
China
Prior art keywords
software
test
touch screen
machine
script file
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
CN201810987280.8A
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.)
Shenzhen Honghe Innovation Information Technology Co Ltd
Original Assignee
Shenzhen Honghe Innovation Information 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 Shenzhen Honghe Innovation Information Technology Co Ltd filed Critical Shenzhen Honghe Innovation Information Technology Co Ltd
Publication of CN110633203A publication Critical patent/CN110633203A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Landscapes

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

Abstract

The invention discloses an automatic test method for software of a touch screen all-in-one machine, which comprises the following steps: a1, compiling software on a testing computer to automatically test script files; a2, connecting the testing computer and the to-be-tested touch screen all-in-one machine to a local area network; a3, transmitting the software automatic test script file to the touch screen all-in-one machine to be tested through the local area network; a4, the computer for testing sends an instruction to start the software to automatically test the script file; a5, the software automatically tests the script file to complete the execution of the test case through the operation of a series of controls; a6, the software automatically testing script file to generate test report. The invention enables the software test of the touch screen all-in-one machine to execute unified standard test steps; the labor intensity of testing personnel is reduced; the testing time of the software is reduced; the test efficiency of long-time test and multiple tests of the same machine is ensured.

Description

Automatic test method for touch screen all-in-one machine software
Technical Field
The invention relates to the technical field of touch screen integrated machines, in particular to an automatic test method for software of a touch screen integrated machine.
Background
The application of the touch screen all-in-one machine is very extensive, the fields such as schools, service industries, families and the like are covered, the touch screen all-in-one machine needs to be subjected to comprehensive quality performance detection before leaving a factory, the test for software is included, the completeness and the stability of the software realization function are confirmed by running the software, the test for the software of the touch screen all-in-one machine in the prior art is finished manually, the labor intensity of manual test is high, the phenomenon of missed test can occur in the test process, for example, the execution of test cases is omitted, the test result is incomplete, unknown risks cannot be completely eliminated, and long-time test and multiple tests of the same machine cannot be carried out.
Disclosure of Invention
The invention aims to solve the technical problem that the automatic test method for the software of the touch screen all-in-one machine is provided aiming at the defects of the prior art, and overcomes the defects that the test labor intensity is high, the test is possibly missed and the test result is incomplete when the touch screen all-in-one machine adopts a manual mode to test the software of the touch screen all-in-one machine.
The technical scheme adopted by the invention for solving the technical problems is as follows:
an automatic test method for touch screen all-in-one machine software comprises the following steps:
a1, compiling software on a testing computer to automatically test script files;
a2, connecting the testing computer and the to-be-tested touch screen all-in-one machine to a local area network;
a3, transmitting the software automatic test script file to the touch screen all-in-one machine to be tested through the local area network;
a4, the computer for testing sends an instruction to start the software to automatically test the script file;
a5, the software automatically tests the script file to complete the execution of the test case through the operation of a series of controls;
a6, the software automatically testing script file to generate test report.
According to an embodiment of the present invention, the step a1 includes the steps of: the software auto-test script file is written using an eclipse integrated development tool.
According to an embodiment of the present invention, the step a4 includes the steps of: and the computer for testing starts the software to automatically test the script file by sending an adb instruction.
According to an embodiment of the present invention, the step a5 includes the steps of: the software automatic test script file uses a Monkey test command to start the software to be tested.
According to the embodiment of the invention, the software automatic test script file uses a UiAutomatitorviewer test tool to obtain the control attribute of the software to be tested.
According to an embodiment of the present invention, the step a6 includes the steps of: the software auto-test script file generates the test report via a CTS testing tool.
The technical scheme of the invention has the following beneficial effects: the invention enables the software test of the touch screen all-in-one machine to execute unified standard test steps; the labor intensity of testing personnel is reduced; the testing time of the software is reduced; the test efficiency of long-time test and multiple tests of the same machine is ensured.
Drawings
The advantages and realisation of the invention will be more apparent from the following detailed description, given by way of example, with reference to the accompanying drawings, which are given for the purpose of illustration only, and which are not to be construed in any way as limiting the invention, and in which:
FIG. 1 is a flow chart of a testing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of an embodiment of the present invention for automatically testing script files.
Detailed Description
As shown in fig. 1 and 2, the automatic testing method for the touch screen all-in-one machine software of the invention comprises the following steps:
a1, compiling software on a testing computer to automatically test script files;
a2, connecting the testing computer and the to-be-tested touch screen all-in-one machine to a local area network;
a3, transmitting the software automatic test script file to the touch screen all-in-one machine to be tested through the local area network;
a4, the computer for testing sends an instruction to start the software to automatically test the script file;
a5, the software automatically tests the script file to complete the execution of the test case through the operation of a series of controls;
a6, the software automatically testing script file to generate test report.
According to an embodiment of the present invention, the step a1 includes the steps of: the software auto-test script file is written using an eclipse integrated development tool. The step A4 includes the steps of: and the computer for testing starts the software to automatically test the script file by sending an adb instruction. The step A5 includes the steps of: the software automatic test script file uses a Monkey test command to start the software to be tested. The software automatic test script file obtains the control attribute of the software to be tested by using a UiAutomatiorviewer test tool. The step A6 includes the steps of: the software auto-test script file generates the test report via a CTS testing tool.
The invention provides an automatic test method for APK software of a touch screen all-in-one machine. The automatic testing method can be easily used for testing for a plurality of times and a long time, the test is carried out without manpower for supervision and maintenance, and the manpower time cost and the labor cost are reduced.
The invention has the following implementation steps:
1) the testing computer and the touch screen all-in-one machine to be tested are connected to the same local area network, and the IP address on the large screen (the touch screen all-in-one machine) is checked;
2) connecting a large screen on a test computer through adb, and executing the adb command as follows:
adb connect large screen IP address (e.g., adb connect 192.168.67.22);
3) compiling an automatic test script file by an eclipse integrated development tool at a test computer end, wherein the script development language is Java;
4) generating a jar file from the automatic test script file by using an adb command;
5) uploading the jar file to a large screen specified directory by using an adb command, and executing the jar file, wherein the adb command comprises the following steps:
adb push < jar file path >/data/local/tmp/;
adb shell UiAutomatiorviewer rugtest < jar filename > -c < class name in the project, including package name >
6) And after the test is finished, checking the test report.
As will be apparent to those skilled in the art, many modifications can be made to the invention without departing from the spirit and scope thereof, and it is intended that the present invention cover all modifications and equivalents of the embodiments of the invention covered by the appended claims.

Claims (6)

1. An automatic test method for software of a touch screen all-in-one machine is characterized by comprising the following steps: :
a1, compiling software on a testing computer to automatically test script files;
a2, connecting the testing computer and the to-be-tested touch screen all-in-one machine to a local area network;
a3, transmitting the software automatic test script file to the touch screen all-in-one machine to be tested through the local area network;
a4, the computer for testing sends an instruction to start the software to automatically test the script file;
a5, the software automatically tests the script file to complete the execution of the test case through the operation of a series of controls;
a6, the software automatically testing script file to generate test report.
2. The automatic test method for the software of the touch screen all-in-one machine as claimed in claim 1, wherein the step A1 comprises the steps of: the software auto-test script file is written using an eclipse integrated development tool.
3. The automatic test method for the software of the touch screen all-in-one machine as claimed in claim 1, wherein the step A4 comprises the steps of: and the computer for testing starts the software to automatically test the script file by sending an adb instruction.
4. The automatic test method for the software of the touch screen all-in-one machine as claimed in claim 1, wherein the step A5 comprises the steps of: the software automatic test script file uses a Monkey test command to start the software to be tested.
5. The automatic test method of the touch screen all-in-one machine software according to claim 4, characterized in that: the software automatic test script file obtains the control attribute of the software to be tested by using a UiAutomatiorviewer test tool.
6. The automatic test method for the software of the touch screen all-in-one machine as claimed in claim 1, wherein the step A6 comprises the steps of: the software auto-test script file generates the test report via a CTS testing tool.
CN201810987280.8A 2018-06-21 2018-08-28 Automatic test method for touch screen all-in-one machine software Pending CN110633203A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810668028 2018-06-21
CN2018106680280 2018-06-21

Publications (1)

Publication Number Publication Date
CN110633203A true CN110633203A (en) 2019-12-31

Family

ID=68968155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810987280.8A Pending CN110633203A (en) 2018-06-21 2018-08-28 Automatic test method for touch screen all-in-one machine software

Country Status (1)

Country Link
CN (1) CN110633203A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114637639A (en) * 2022-05-23 2022-06-17 合肥创发微电子有限公司 Configuration method and device of touch screen production test system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130339798A1 (en) * 2012-06-15 2013-12-19 Infosys Limited Methods for automated software testing and devices thereof
CN106681925A (en) * 2017-01-04 2017-05-17 广州四三九九信息科技有限公司 UIAutomator-based automatic testing method and device
CN107301130A (en) * 2017-06-28 2017-10-27 歌尔科技有限公司 A kind of VR all-in-ones testing tool and its method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130339798A1 (en) * 2012-06-15 2013-12-19 Infosys Limited Methods for automated software testing and devices thereof
CN106681925A (en) * 2017-01-04 2017-05-17 广州四三九九信息科技有限公司 UIAutomator-based automatic testing method and device
CN107301130A (en) * 2017-06-28 2017-10-27 歌尔科技有限公司 A kind of VR all-in-ones testing tool and its method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114637639A (en) * 2022-05-23 2022-06-17 合肥创发微电子有限公司 Configuration method and device of touch screen production test system

Similar Documents

Publication Publication Date Title
CN110096425B (en) QT development mode-based automatic testing method and device and storage medium
US10268570B2 (en) Methods, systems, and computer readable media for automated generation of test files and testing network equipment using same
CN111078278B (en) Automatic packaging method supporting Flutter and iOS mixed editing project
CN106933609B (en) Android application program installation package generation method and device
CN108073400A (en) Software automation construction method, server and storage medium
CN108733569B (en) Interface automatic testing method and device, storage medium and equipment
CN106326088B (en) Method and device for realizing construction of test object and device for realizing service configuration test
CN105159833A (en) Automatic testing device and method
CN105302722B (en) CTS automatic testing method and device
GB2533117A (en) Software test automation
CN104156224A (en) Continuous integration method and system for software construction
CN104375914A (en) Automatic testing method for internal pressure changes of server
CN106354629A (en) Construction method of iOS system mobile application automatic test system based on multiple stages of servers
CN112241360A (en) Test case generation method, device, equipment and storage medium
CN104102581A (en) Method and device for implementing unit testing
CN106972983B (en) Automatic testing device and method for network interface
CN107948019A (en) A kind of method of automatic test network interface card pressure under linux system
CN110633203A (en) Automatic test method for touch screen all-in-one machine software
JP2010140408A (en) Source code converting device
CN112543478B (en) WiFi module automatic test method and device, computer equipment and storage medium
CN105653408A (en) Test method for carrying out POWER CYCLE startup and shutdown on the basis of BMC (Baseboard Management Controller) IPMITOOL (Intelligent Platform Management Interface) command single-node batch control
CN109614337B (en) Performance test system and test tool based on linux system
CN107797926B (en) System and method for realizing linux application test automation
CN105302731A (en) Testing system and method for upgrading website configuration
CN115934559A (en) Testing method of intelligent form testing system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191231

RJ01 Rejection of invention patent application after publication