ATester

QTP/UFT test, Maven Java project's JUnit test, execute test on local/remote Windows System.

This project is maintained by zhangyutao

Welcome to ATester Pages.

ATester is a application that was developed for executing tests which could be a QTP/UFT Test/BPT or a JUnit Test.

Help

Application folder: put the application which had been built. code of project: all the code of implementing the application.

Others: Project root folder: it means the root folder which contains all the folders of AT framework.

TimeOut: it is set to be out of the run automatically when all remote servers are disconnected for a long time, when the time reach the timeout set,the run will be stopped.

OT number: When run in remote server model. ATester will check all remote servers' status, when find a available server, how many number of BPT you want the server to run is the OT number.

Excel format: it supports Excel 2010 and compliacte other version. Checked it on then ATester will provide a report in excel format and put in the report folder which you set.

Share folder: this feature is to share whole run report and result folders for your testing round.

skip validate: if you make sure the server and project folder for remote testing, you can check it on.

SwichTextBox: it enable a textbox for you to write BPT/test name,one line one name, the ATester identify in that way.

To Be Run List: it will get all the test list from the path which you inputted in "Project root folder's path in local computer" textbox. it won't get the list from remote server.

Important: 1.When run in remote server model, ATester won't check if the test/BPT in the To be run list is right, will execute them directly. 2.Don't use the STOP or Close button frequently,suggest to run a whole round, because ATester is using API of UFT/QTP to run test, so close/kill the thread is not very safe for the tool, it may cause unexpected problem and make the ATest and UFT/QTP crash.

Guide

Begin: download the folder "Application" and then double click the ATester.exe.

How to use: The ATester provides three ways of executing BPTs. A, the first way is to execute BPTs in local model which means ATester would use your local computer’s UFT to execute the BPTs which are stored in your local computer.

B, the second way is to execute BPTs in remote model which means ATester would contact remote computers’ UFT to execute the remote computers’ BPTs.

C, the third way is to execute BPTs in remote-host model which means ATester would contact remote computers’ UFT to execute the BPTs which are stored in one remote computer you designated.

For starting using ATester, two things must be prepared. The first is that ensuring the BPTs are in a place which meets the ECS Automation Framework standard and that BPTs are ready to run. The second is that ensuring the network is available and the computer which operates ATester can communicate with the computers which execute BPTs if you want to execute BPTs in remote model.

This section gives a detailed explanation about how to use ATester. Firstly, let’s know the UI of ATester.

Look, there are features for choosing how to execute BPTs that is in the left side, filling where to save your report that is in the bottom, providing BPTs list for you to select that is in the right side and other small features.

  1. Select BPT:

    “Test Mission list” is used to select BPT which you want to execute. The list provides a list of two types. You can use “SwitchTextBox” button the switch the type of the list. About the Edit box type of list, you can type any BPT into the list, but about the checkbox type of list, you just can select. The content of the list can be generated automatically by clicking “Refresh” button that requires you firstly to fill the path of upper folder of the folder which contains the BPTs like we use path “C:\upper folder” when the path is “C:\upper folder\folder\BPTname” in edit box “Dir”. For remote run model, the list can be generated only when you select checkbox “(Host model?)”

  2. Local run model

Select checkbox “Local Run Model” will enable local run model. To execute the BPT, the steps are that filling the edit box “Dir” with the path of upper folder of the folder which contains the BPTs , clicking “Refresh” button to generate the “Test Mission list”, select the BPTs you want to execute and then click the “Run” button.

  1. Remote run model

A, tell ATester which remote computers are used to execute BPT. To designate the remote computers, you shall fill the edit box “Dirs” with the network paths which points to the upper folder of the folder which contains the BPTs of remote computers (the network paths format is @path@path if you have more remote computers).

You can use “Check” button to check if the network paths are available.

B, every remote computer must contain all BPTs that you want to execute.

C, the value of “Allot Nr” field is to tell ATester to how many BPTs should be assigned to each remote computer one time. For example, if the value is 4, and there are 3 remote computers, the ATester will assign 4 BPTs to each remote computer that means 4x3 =12 BPTs are assigned one time. The value of “Timeout” field is to tell when ATester treats the remote computers are not available. When all the remote computers have disconnected for that value, the ATester would stop the execution.

D, fill the BPT names you want to execute in “Test Mission List”.

E, click “Run” button.

F, ATester will contact remote computers you designated and call their UTF to execute the BPTs according to you BPTs’ name you provided. ATester would tell each remote computer which BPT name the remote computer should execute automatically and each remote computer would use BPTs which it has to execute.

  1. Remote-Host run model

A, tell ATester which remote computer is the host. The host contains all code of BPT which would be used to execute. To designate the host, you shall fill the edit box “Dir” with the network paths which points to the upper folder of the folder which contains the BPTs of remote computer (It is only allowed one host, so there should be only one path).

B, tell ATester which remote computers are used to execute BPT. To designate the remote computers, you shall fill the edit box “IPs” with the IP of remote computer (the format is @IP@IP if you have more than one remote computer).

C, you can use “Check” button to check if the Host are available. (ATester won’t check the connection of value of “IPs” field but it will do some simple text check on that filed.)

D, the value of “Allot Nr” field is to tell ATester to how many BPTs should be assigned to each remote computer one time. For example, if the value is 4, and there are 3 remote computers, the ATester will assign 4 BPTs to each remote computer that means 4x3 =12 BPTs are assigned one time. The value of “Timeout” field is to tell when ATester treats the remote computers are not available. When all the remote computers have disconnected for that value, the ATester would stop the execution.

E, clicking “Refresh” button to generate the “Test Mission list”, select the BPTs you want to execute Alternative, you can go into View and Assigning button to assign test for each slave.

F, you can select a server for storing UFT’s detail result.

G, click “Run” button.

H, ATester will contact remote computers you designated and call their UTF to execute the BPTs according to you BPTs’ name you provided. ATester would tell each remote computer which BPT name the remote computer should execute automatically and each remote computer would use BPTs which “host” has to execute. Before using Remote Run Model, there are two tools can help you managing and checking remote server.

  1. Remote Desktop Manager

Click it, then you can start the tool. This tool can help you to log on vm and monitor them.

  1. Check Remote Slave Status

This tool can help you to check if the UFT can be remotely connected and what status it is. (To void disturbing testing, when you already run a testing, the tool is disabled.)

  1. Other Features

  2. Excel format: it supports Excel 2010 and complicate other version. Checked it on then ATester will provide a report in excel format and put in the report folder which you set.

  3. SwichTextBox: it enable a textbox for you to write BPT/test name, one line one name, the ATester identify in that way.

  4. If run test, end and get the report, double click log line ATester will open that folder.

  5. Open library: open the "libraries" folder from "Project root folder's path used in local run" that you inputted.

  6. Import and export: they just support .txt file

  7. Important:

  8. Please use a resolution which is above 1024x768

  9. When ATester is running testing, please don't open the report files, because ATester is accessing them. If you want to watch, please copy a new file.

  10. When run in “Remote run model”, ATester won't check if the BPT in the Test Mission list is right, will execute them directly.

  11. Don't use the STOP or Close button frequently, suggest to run a whole round, because ATester is using API of UFT/QTP to run test, so close/kill the thread is not very safe for the tool, it may cause unexpected problem and make the ATester and UFT/QTP crash.

  12. During remote run, if a server or UFT is crashed or has problem, the BPTs which were assigned to it will be released out and let other server to run, however, ATester will keep connecting the fail server until the run is over or get timeout.

Authors and Contributors

Hugo Zhang @zhanyutao

Support or Contact

Having trouble with Pages? Check out our documentation or contact support and we’ll help you sort it out.