Automated Program Tests with a decent autoclicker.

By: Denis Safonov

Even if your software doesn't have many control units (buttons, menu items, settings), it's not a light task to test them all after each new version. Sometimes, a developer disregards this business, because he worked at new functions and didn't modify the old ones, and they are supposed to work properly. This may result in new releases with invalid main functions.

In the article you can see how to produce software testing with the decent autoclicker ( You should only replay the tasks you need to see that your program functions well or to detect every bug rapidly.

Now AutoClickExtreme autoclicker will produce testing of Backup Expert (an extremely famous backup software). We'll test the senior program function - back up of a certain folder with size proving of the resulting archive.

To make the experiment fair, we shall pack one and the same folder - "D:\automated software testing\backup expert\test folder". First, we'll place the folder in the archive, and right before each test we'll delete the folder "D:\automated software testing\backup expert\test folder" and restore it from the archive. All this shouldn't be done manually, but with the help of a simple *bat file. We'll give it the name "start testing.bat".

rmdir /Q /S "D:\automated software testing\backup expert\test folder"
mkdir "D:\automated software testing\backup expert\test folder"
xcopy /S "D:\automated software testing\backup expert\arch\test folder" "D:\automated software testing\backup expert\test folder\"
start C:\"Program Files"\"Backup Expert"\BackupExpert.exe

In the Test folder we can see about 100 files situated in the root folder and in it's subfolders. The corporate size is 5 529 784 bytes. This size must be shown in the packed folder properties (unpacked size).

Now everything is organized for the autoclicker work. This software should press Record and right after that we stop it with pressing Shift twice to insert our *bat file (it is to restore the original test folder). Next we agree to run the application.

Next, in the autoclicker software we should press "Continue Record" and, by means of Pixel Conrol solely, we record our clicks on Backup Expert (we must do all actions suggested by the wizard to direct the program what and how to pack). Straight after creating the job "Automated software testing", using Pixel Control we on our way to record the task to lauch packing. In autoclicker table of events you should trace Pixel Control parts.

The last 3 events are colored blue, for they were added after the root Record had been created. All of the three events are highly relevant: event 45 - made to wait the moment the packing is finished by detecting the message: "Status: Successful", event 46 - to launch the resulting archive, action 47 - must control the size. It is to be equal to 5 529 784 bytes, for the test folder is always restored and it's size is to be the same.

Your first test is made. The rough time to make the Record is 20 minutes with all pauses for thinking. I needed 30 minutes more to prepare "start testing.bat" file, as I had to look for a number of the functions in Google. And I needed 10 minutes more to make ready the test folder. All in all , the first test is sure to be made in an hour, this is not very quick, at first glance, but now it takes only 17 seconds to perform automated software testing of the senior function with the autoclicker. Yet all the next following tests are sure take by far less time. One can also make a Record for changing and packing of any files in the test folder using the option "backup type = Differential (new and modified since last full backup)" + 100% result control. You can control packing of the most exotic cases. Without doubt, AutoClickExtreme autoclicker won't fully substitute for alive (thoughtful) software testing, h!
owever it is able to be your safe assistant.

Article Directory:

| More

Denis Safonov, the autoclicker developer.

Please Rate this Article


Not yet Rated

Click the XML Icon Above to Receive Software Articles Articles Via RSS!

Powered by Article Dashboard