Automatic test method based on Xdotool

An automated test and a technology to be tested, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as inoperability, achieve automatic reproduction, and reduce human work.

Pending Publication Date: 2020-10-30
KYLIN CORP
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Conventional testing methods require manual operations such as restarting the system, inputting passwords, logging into the system, checking whether the login is successful, etc., but this testing method is not suitable for those faults that require continuous testing for several days / weeks / months. Operability

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Automatic test method based on Xdotool
  • Automatic test method based on Xdotool
  • Automatic test method based on Xdotool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in combination with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are exemplary only, and are not intended to limit the scope of the present invention. Also, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concept of the present invention.

[0027] Such as figure 1 , in the embodiment of the application, the application provides an automated testing method based on Xdotool, including:

[0028] S1: Install the Xdotool tool in the operating system to be tested;

[0029] S2: writing and deploying automated test scripts in the operating system to be tested;

[0030] S3: Start the operating system to be tested;

[0031] S4: The operating system to be tested ru...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an automatic test method based on Xdotool. The automatic test method comprises the steps: installing an Xdotool tool in a to-be-tested operating system; writing and deploying an automatic test script in the to-be-tested operating system; starting the to-be-tested operating system; through the to-be-tested operating system, operating an automatic login script; judging whether a mouse in the to-be-tested operating system normally moves or not; if so, restarting the to-be-tested operating system, and returning to the step of starting the to-be-tested operating system; andif not, reserving the environment state of the to-be-tested operating system when the fault occurs. According to the method, the to-be-tested operating system can be controlled to be automatically restarted, and a keyboard is simulated to input a user name and a password to log in the system; after logging in of the to-be-tested operating system, the movement of the mouse is simulated, whether thesystem can be normally used or not is judged, if so, the system is restarted to execute the operation above, and if not, the system environment when the fault occurs is maintained, thereby realizingthe automatic reproduction of a low-probability fault problem, and greatly reducing the manual work.

Description

technical field [0001] The invention belongs to the technical field of automated testing, and in particular relates to an automated testing method based on Xdotool. Background technique [0002] When users log in to the operating system, problems such as occasional login failures may occur. In order to ensure the stability of the system, it is necessary to reproduce this low-probability failure through a large number of tests. Conventional testing methods require manual operations such as restarting the system, inputting passwords, logging into the system, checking whether the login is successful, etc., but this testing method is not suitable for those faults that require continuous testing for several days / weeks / months. Operability. Contents of the invention [0003] For addressing the above problems, the invention provides a kind of automated testing method based on Xdotool, comprising: [0004] Install the Xdotool tool in the operating system to be tested; [0005] ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3664G06F11/3684G06F11/3688
Inventor 李浩毛晨涛战茅
Owner KYLIN CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products