CN113238951A - Software barrier-free automatic test system and test method thereof - Google Patents

Software barrier-free automatic test system and test method thereof Download PDF

Info

Publication number
CN113238951A
CN113238951A CN202110554404.5A CN202110554404A CN113238951A CN 113238951 A CN113238951 A CN 113238951A CN 202110554404 A CN202110554404 A CN 202110554404A CN 113238951 A CN113238951 A CN 113238951A
Authority
CN
China
Prior art keywords
test
automatic test
software
automatic
barrier
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
CN202110554404.5A
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.)
Dahe Shenzhen Information Co ltd
Original Assignee
Dahe Shenzhen Information 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 Dahe Shenzhen Information Co ltd filed Critical Dahe Shenzhen Information Co ltd
Priority to CN202110554404.5A priority Critical patent/CN113238951A/en
Publication of CN113238951A publication Critical patent/CN113238951A/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
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

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 is suitable for the field of information automatic test, and provides a software barrier-free automatic test system and a test method thereof, which comprises an automatic test script for sending a test instruction and recording a test result of the test software, an automatic test frame for judging whether the test software receives the test instruction, a communication connection module for establishing a connection relation and a barrier-free service module for providing better barrier-free user interaction function, wherein the barrier-free service module is operated to start barrier-free service by adopting an Auto JS technology, the automatic test script is generated to send the test instruction, the automatic test frame transmits the judgment result back to the automatic test script, the automatic test script is automatically compared to obtain the test result, the operation flow of the test is customized, and the control information of the tested software can be easily obtained without the user writing a complex test script, the operation process is simple, and the test efficiency is high.

Description

Software barrier-free automatic test system and test method thereof
Technical Field
The invention belongs to the field of automatic information testing, and particularly relates to a software barrier-free automatic testing system and a testing method thereof.
Background
Software testing refers to a process of running or testing a certain software system by using a manual or automatic means, and aims to check whether the software system meets the specified requirements or to clarify the difference between the expected result and the actual result.
For example, the easy-to-speak function is very powerful, but there is no corresponding tool at the mobile end, although an android system can be run on a PC by means of an android simulator or a TotalControl tool, the coordinates are generally fixed, once devices such as a mobile phone and the like are replaced, the problem of incompatibility of screen sizes still occurs, in addition, a computer is also occupied to run programs, and the running cost is high; the key sprite also has a development tool at a mobile end and can be applied to android and IOS environments, but the premise is that the mobile phone needs Root software, the steps of some mobile phones for installing the Root software are complex, the success rate is low, the use of a user is limited, in addition, the key sprite finds coordinates by a tool for finding pictures and finding colors and characters, and the point also has great limitation, firstly, the coordinates cannot be accurately found, secondly, the efficiency is too low, and the updating speed of the software is seriously influenced.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a software barrier-free automatic test system and a test method thereof.
The invention is realized by the following steps: a software barrier-free automated testing system comprising:
automated test scripts: the mobile device readable instruction is used for automatically executing a test instruction in the test process and is used for sending the test instruction and recording the test result of the test software;
automated testing framework: the test script is used for judging whether the test software receives a test instruction or not and transmitting a test result to the automatic test script;
communication connection module: the automatic test script and the automatic test framework are connected through the communication connection module and used for resource sharing and information exchange;
barrier-free service module: and the mobile equipment is connected with the automatic test script signal through the barrier-free service module.
The system further comprises a forced stopping module, wherein the forced stopping module is connected with the automatic test script and is used for forcibly stopping the work of the automatic test script.
Further, the forced stopping module is a volume control key of the mobile device.
Furthermore, the communication connection module is in a wired connection mode or a wireless connection mode.
Furthermore, the wired connection mode is a USB connection, and the wireless connection mode comprises a WIFI connection or a Bluetooth connection.
Further, the automated test script obtains control information of an application program of the mobile device through the barrier-free service module, where the control information includes: the class name of the control, the package name of the control, the ID of the control, the text and the description of the control;
the automated test script controlling operation of the application program comprises: click, slide, and enter text information.
Furthermore, the script language of the automatic test script is a JS language and is packaged by adopting an Auto JS software development tool package.
The invention also provides a software barrier-free automatic test method for detecting software by using the software barrier-free automatic test system, which comprises the following steps:
(1) the mobile equipment starts barrier-free service by using the Auto JS operation barrier-free service module;
(2) generating an automatic test script by adopting an Auto JS technology;
(3) establishing communication connection between the generated automatic test script and the mobile equipment through a communication connection module, and establishing communication connection between a management platform of the mobile equipment and the software to be tested through the communication connection module;
(4) the automatic test script controls a management platform of the mobile equipment to send a test instruction to the tested software;
(5) the automatic testing framework and the tested software establish communication connection through the communication connection module, and the automatic testing framework judges whether the tested software receives a testing instruction sent by the mobile equipment management platform;
(6) if the judgment result of the automatic test framework is that the tested software receives the test instruction, the tested software executes the test instruction, and the automatic test framework detects the result of the tested software after executing the test instruction;
on the contrary, the automatic test framework directly sends the judgment result that the tested software does not receive the test instruction to the automatic test script;
(7) the automatic test script is connected with the automatic test framework through the communication connection module, and the automatic test framework sends a detection result after the tested software receives the test instruction to the automatic test script;
(8) and the automatic test script compares the test instruction with the detection result, obtains the test result according to the comparison result, and automatically records the detection result.
Furthermore, the automatic test script records the detection result in an assignment mode, if the test result is correct, the automatic test script automatically assigns the test result to be 1, and if the test result is wrong, the automatic test script automatically assigns the test result to be 2.
The Auto JS is a new mobile equipment script development tool, the programming language is JS, the threshold is low, the operation is easy, the Auto JS technology is adopted, the mobile equipment operates the barrier-free service module to start the barrier-free service, the user can generate the automatic test script only by knowing the front JS language, the operation flow of the self-defined test is defined, the control information of the tested software can be obtained by matching with the automatic test framework, the operation process is simple, the test efficiency is high, and the aim is to enable the user who can not write codes to easily define the test script.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
The drawings are only for purposes of illustrating and explaining the present invention and are not to be construed as limiting the scope of the present invention.
FIG. 1 is a flow chart of the test provided by the present invention.
FIG. 2 is a schematic diagram of a testing method provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1 to fig. 2, a software barrier-free automatic testing system and a testing method thereof are disclosed in the present invention, wherein the software barrier-free automatic testing system includes:
automated test scripts: the mobile device readable instruction is used for automatically executing a test instruction in the test process and is used for sending the test instruction and recording the test result of the test software;
adopt Auto JS technique, automatic test script is for using Auto JS automatic generation, promptly the script language of automatic test script is the JS language, adopts Auto JS's software development instrument package to form, and on the other hand, the user also can program simple JS by oneself and generate automatic test script.
Automated testing framework: the test script is used for judging whether the test software receives a test instruction or not and transmitting a test result to the automatic test script;
communication connection module: the communication connection module is in a wired connection mode or a wireless connection mode, the wired connection mode is USB connection, and the wireless connection mode comprises WIFI connection or Bluetooth connection.
The embodiment is particularly characterized in that the automated testing script and the automated testing framework are connected through the communication connection module, and are used for resource sharing and information exchange, so that the testing result can be recorded in time;
barrier-free service module: the mobile equipment is connected with the automatic test script signal through the barrier-free service module;
the automatic test script obtains control information of an application program of the mobile equipment through the barrier-free service module, wherein the control information comprises: the class name of the control, the package name of the control, the ID, the text and the description of the control, and the operation of the application program controlled by the automatic test script comprises the following steps: clicking, sliding and inputting text information;
before the operation of the automatic test script is started, the barrier-free service module needs to be operated firstly to start barrier-free service, the occurrence of abnormal operation is avoided, if the abnormal operation occurs, the automatic test script needs to be operated again, the experience feeling is poor, and the test efficiency of the tested software is greatly reduced.
The system further comprises a forced stopping module, wherein the forced stopping module is connected with the automatic test script and is used for forcibly stopping the work of the automatic test script, when one software test is completed, if the automatic test script is in a state that the automatic test script cannot be automatically stopped, the next software test work to be tested is influenced, and at the moment, the forced stopping module can be started to forcibly stop the work of the automatic test script.
The invention also provides a software barrier-free automatic test method for detecting software by using the software barrier-free automatic test system, which comprises the following steps:
(1) the mobile equipment runs the barrier-free service module by using the Auto JS to start barrier-free service, and the barrier-free service module must be started before the test work to ensure the fluency of the tested software in the test process;
(2) generating the automatic test script by adopting an Auto JS technology;
(3) the generated automatic test script is in communication connection with a management platform of the mobile equipment through the communication connection module, and the management platform of the mobile equipment is in communication connection with the tested software through the communication connection module, so that the automatic test script can be smoothly linked with the tested software;
(4) the automatic test script controls a management platform of the mobile equipment to send a test instruction to the tested software;
(5) the automatic testing framework and the tested software establish communication connection through the communication connection module, and the automatic testing framework judges whether the tested software receives a testing instruction sent by the mobile equipment management platform;
(6) if the judgment result of the automatic test framework is that the tested software receives the test instruction, the tested software executes the test instruction, and the automatic test framework detects the result of the tested software after executing the test instruction;
on the contrary, if the test command is abnormal, the automatic test framework directly sends the judgment result that the tested software does not receive the test command to the automatic test script, and the judgment result is reflected to the user through the mobile equipment to remind the user to operate the automatic test script again for test work;
(7) the automatic test script is connected with the automatic test framework through the communication connection module, and the automatic test framework sends a detection result of the tested software after receiving the test instruction to the automatic test script;
(8) the automatic test script compares the test instruction with the detection result, obtains a test result according to the comparison result, and automatically records the detection result;
specifically, but not limited to, the automatic test script records the detection result in an assignment manner, and the automatic test script may specify that the automatic test script assigns a value of "1" if the test result is correct; and if the test result is wrong, the automatic test script assigns a value of '2' so as to record the test condition, so that the user can know the test result more intuitively.
The Auto JS technology is adopted, automatic generation is carried out on the automatic test script in the test process by using the existing programming codes, the maintenance and modification of the automatic test script are carried out without excessive repeated writing, the automatic test script is easy to use, the operation flow of the test can be defined by users, the operation process is simple, and the test efficiency is high.
The present invention is not limited to the above preferred embodiments, and any modification, equivalent replacement or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A software barrier-free automatic test system is characterized in that: the method comprises the following steps:
automated test scripts: the computer readable instruction is used for automatically executing a test process, and is used for sending a test instruction and recording a test result of test software;
automated testing framework: the test script is used for judging whether the test software receives a test instruction or not and transmitting a test result to the automatic test script;
communication connection module: the automatic test script and the automatic test framework are connected through the communication connection module and used for resource sharing and information exchange;
barrier-free service module: and the mobile equipment is connected with the automatic test script signal through the barrier-free service module.
2. The software barrier-free automated testing system of claim 1, wherein: the automatic test system further comprises a forced stopping module, wherein the forced stopping module is connected with the automatic test script and used for forcibly stopping the work of the automatic test script.
3. The software barrier-free automated testing system of claim 2, wherein: the forced stopping module is a volume control key of the mobile equipment.
4. The software barrier-free automated testing system of claim 1, wherein: the communication connection module is in a wired connection mode or a wireless connection mode.
5. The software barrier-free automated testing system of claim 4, wherein: the wired connection mode is USB connection, and the wireless connection mode comprises WIFI connection or Bluetooth connection.
6. The software barrier-free automated testing system of claim 1, wherein: the automatic test script obtains control information of an application program of the mobile equipment through the barrier-free service module, wherein the control information comprises: the class name of the control, the package name of the control, the ID of the control, the text and the description of the control;
the automated test script controlling operation of the application program comprises: click, slide, and enter text information.
7. The software barrier-free automated testing system of any one of claims 1-6, wherein: the script language of the automatic test script is JS language and is packaged by adopting an Auto JS software development tool bag.
8. The software barrier-free automated testing system of claim 7, wherein: the automatic test script has a floating window function, and a control list in the floating window obtained by opening the floating window function comprises: script listing, automatic recording, layout range analysis and layout hierarchy analysis, and more.
9. A software barrier-free automatic testing method is characterized by comprising the following steps: the method comprises the following steps:
(1) the mobile equipment starts barrier-free service by using the Auto JS operation barrier-free service module;
(2) generating an automatic test script by adopting an Auto JS technology;
(3) establishing communication connection between the generated automatic test script and a management platform of the mobile equipment through a communication connection module, and establishing communication connection between the management platform of the mobile equipment and the tested software through the communication connection module;
(4) the automatic test script controls a management platform of the mobile equipment to send a test instruction to the tested software;
(5) the automatic testing framework and the tested software establish communication connection through the communication connection module, and the automatic testing framework judges whether the tested software receives a testing instruction sent by the mobile equipment management platform;
(6) if the judgment result of the automatic test framework is that the tested software receives the test instruction, the tested software executes the test instruction, and the automatic test framework detects the result of the tested software after executing the test instruction;
on the contrary, the automatic test framework directly sends the judgment result that the tested software does not receive the test instruction to the automatic test script;
(7) the automatic test script is connected with the automatic test framework through the communication connection module, and the automatic test framework sends a detection result after the tested software receives the test instruction to the automatic test script;
(8) and the automatic test script compares the test instruction with the detection result, obtains the test result according to the comparison result, and automatically records the detection result.
10. The software barrier-free automated testing method of claim 9, wherein: the automatic test script records the detection result in an assignment mode, if the test result is correct, the automatic test script automatically assigns the test result to be 1, and if the test result is wrong, the automatic test script automatically assigns the test result to be 2.
CN202110554404.5A 2021-05-20 2021-05-20 Software barrier-free automatic test system and test method thereof Pending CN113238951A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110554404.5A CN113238951A (en) 2021-05-20 2021-05-20 Software barrier-free automatic test system and test method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110554404.5A CN113238951A (en) 2021-05-20 2021-05-20 Software barrier-free automatic test system and test method thereof

Publications (1)

Publication Number Publication Date
CN113238951A true CN113238951A (en) 2021-08-10

Family

ID=77138000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110554404.5A Pending CN113238951A (en) 2021-05-20 2021-05-20 Software barrier-free automatic test system and test method thereof

Country Status (1)

Country Link
CN (1) CN113238951A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113949767A (en) * 2021-09-24 2022-01-18 阿波罗智联(北京)科技有限公司 Method, apparatus, electronic device, medium, and program product for implementing vehicle-mounted interaction
CN114567515A (en) * 2022-03-01 2022-05-31 上海中通吉网络技术有限公司 Method for implementing automatic group adding of mobile terminal chat application
WO2023093327A1 (en) * 2021-11-26 2023-06-01 腾讯科技(深圳)有限公司 Target program testing method and apparatus, and device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111581095A (en) * 2020-05-08 2020-08-25 广州大学 Self-starting USB debugging method and device based on barrier-free service and storage medium
CN111858336A (en) * 2020-07-20 2020-10-30 深圳市筑泰防务智能科技有限公司 Software automation test method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111581095A (en) * 2020-05-08 2020-08-25 广州大学 Self-starting USB debugging method and device based on barrier-free service and storage medium
CN111858336A (en) * 2020-07-20 2020-10-30 深圳市筑泰防务智能科技有限公司 Software automation test method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WEIXIN_39578867: "autojs遍历当前页面所有控件_解放双手,手机自动化神器-AutoJS的使用", pages 1 - 7, Retrieved from the Internet <URL:https://blog.csdn.net/weixin_39578867/article/details/109977653?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522168525902716800226589021%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=168525902716800226589021&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_ecpm_v1~rank_v31_ecpm-15-109977653-null-null.142^v88^insert_down28v1,239^v2^insert_chatgpt&utm_term=autojs%20%E6%97%A0%E9%9A%9C%E7%A2%8D%E6%9C%8D%E5%8A%A1&spm=1018.2226.3001.4187> *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113949767A (en) * 2021-09-24 2022-01-18 阿波罗智联(北京)科技有限公司 Method, apparatus, electronic device, medium, and program product for implementing vehicle-mounted interaction
CN113949767B (en) * 2021-09-24 2023-11-28 阿波罗智联(北京)科技有限公司 Method, device, electronic equipment and medium for realizing vehicle-mounted interaction
WO2023093327A1 (en) * 2021-11-26 2023-06-01 腾讯科技(深圳)有限公司 Target program testing method and apparatus, and device and storage medium
CN114567515A (en) * 2022-03-01 2022-05-31 上海中通吉网络技术有限公司 Method for implementing automatic group adding of mobile terminal chat application

Similar Documents

Publication Publication Date Title
CN113238951A (en) Software barrier-free automatic test system and test method thereof
CN105760301B (en) A kind of automated testing method and system based on Monkey order
CN106598868B (en) Method and system a little are buried to the application program of client dynamic
CN110633209B (en) Automatic testing method and system for vehicle-mounted android multimedia navigator
CN101840234B (en) Embedded automobile fault diagnosis equipment and updating method thereof
CN109740222B (en) Testing device and system for automobile networking scene
CN112596972A (en) Vehicle-mounted equipment testing method, device and system and computer equipment
CN109413678A (en) A kind of Wi-Fi module automatic test approach and test macro
CN102270168A (en) Method for automatically detecting serial port information
US9298594B2 (en) Testing apparatus and testing method
CN110837466B (en) Embedded software dynamic test method based on source code piling
CN111723002A (en) Code debugging method and device, electronic equipment and storage medium
CN111858336B (en) Automatic software testing method and system
EP2466943A1 (en) Method and device for monitoring running state of card
WO2021248788A1 (en) Methods for implementing multi-device compatibility testing, apparatuses for implementing multi-device compatibility testing, system for implementing multi-device compatibility testing, and electronic device
CN114430366B (en) Information acquisition application issuing method, related device and computer program product
CN111367812A (en) Test method, electronic device and readable storage medium
CN113360379B (en) Program test environment creation method and program test environment creation apparatus
KR20050034661A (en) Automatic testing system for mobile software and service
CN103699485A (en) Application program debugging method and device
US20040087303A1 (en) System and method for collecting debugging and system crash information from a mobile phone
CN105677689A (en) Log record method and device
CN107340841A (en) Method, terminal and the computer-readable recording medium of fast initialization diagnostic equipment
CN114172835A (en) Automatic testing method of Bluetooth digital key
JP2001168946A (en) Liaison interface

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