Automation testing (1)--everyone can self-control "call your Death"

Source: Internet
Author: User

The so-called GUI Automation test is to simulate the user's mouse click or keyboard operation.

Automated testing is broadly divided into two parts: 1. Automatic identification of controls, 2. Automated comparisons of results. There are a lot of ready-made automated testing tools, such as Qtp,winrunner, such as the principle of such software is similar, you can also develop a tool, using the Windows API provided by Microsoft, find the handle of the client window, send some Windows messages.

As an introduction to automated testing-self-made "kill you".

Now that you can simulate a user's Click and keyboard action events, that's good. But there are still several problems:

1. What automated test software is used to simulate user clicks? The tool is easy to access and easy to use.

2. "Kill You" the purpose of the software is to make uninterrupted calls, how to operate uninterrupted?

3. What do I use to call the software?

Question 1: There are many automated testing tools, many of which are fee-and hard-to-crack and difficult to obtain. But for our needs, with the "Key Wizard" is sufficient.

Key Wizard official: http://www.anjian.com/

Question 2: uninterrupted operation? Add the looping function to the script! such as QTP:

For i = 1 to 100

/*** a recorded script ***/

Next

This allows you to repeat the operation 100 times, but this is not what I want, I need a little more stupid. Did the key wizard support this feature? The answer is yes.

Question 3: Free phone software has many, but most of the products are mobile phone, such as Touch po phone, love chat, micro-meeting, easy letter and so on. But how to transplant to the computer side? It's easy to use the Android simulator.

Android Simulator, the most famous of course is bluestacks.

Bluestacks official: http://www.bluestacks.cn/

All the problems have been solved, then we can begin to implement them.

1. Install the key wizard;

2. Install Android Simulator, and install Love chat apk, love chat registration and other operations can be done on the phone side;

3. Self-made "call your death"

#1, start the Android simulator, run Love Chat in the Android simulator, switch to the appropriate "posture" and wait for me;

#2, start the Key wizard, click Record

Such a user-friendly interface, I will not elaborate on his operation, recording a call script, and then set the script as a loop.

Shortcut key: F10 start loop script, F12 terminate script

Effect:

Note: Do not move the Android simulator after you have adjusted your posture. As I mentioned earlier, the Automated test tool takes actions such as simulating clicks on the client by acquiring a location.

CAUTION: Please use properly, if the imitation of self-control, resulting in all consequences are not related to this article.

Automation testing (1)--everyone can self-control "call your Death"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.