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.
CN111858321APending Publication Date: 2020-10-30KYLIN CORP

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
KYLIN CORP
Publication Date
2020-10-30

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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