Subscribe by Email


Showing posts with label Batch. Show all posts
Showing posts with label Batch. Show all posts

Saturday, October 6, 2012

How do u do batch testing in WinRunner & Is it possible to do in QTP, if so explain?


WinRunner provides you the facility of executing a certain batch of the unattended tests. This feature of the winrunner has proved to be quite useful especially in the situations when a large groups of tests have to be run over night i.e., an over night run. 

How to do batch testing in WinRunner?

- A batch test can be viewed as a test consisting of a test script which holds the calls to the other tests. 
- Such call statements execute each and every test called in the list and also save the result up on execution.
- A batch test may consist of n number of tests depending up on the need and requirement of the user. 
- A batch as such just seems like a normal test but with an unusual large number of calls. 
- A batch test can be run by using the option “run in batch mode”. 
- This option is available in the run category of the general dialog box which gets invoke just before the start of the execution of the test. 
- Whenever a test is run in batch mode, all of the messages that may be displayed during the test run are suppressed by the winrunner. 
- This is done so that the winrunner is able to run a batch test unattended. 
- The execution of the batch tests is therefore different from the regular, interactive test runs where you may come across several messages popping up on the screen. 
- In batch tests, this thing is not there and so a lot of time is saved. 
- The current chain of all the called tests can be viewed at a break point in the call chain pane available for viewing in the debug viewer window. 
- After the completion of the batch test run the winrunner makes the results available in the test results window. 
- Winrunner provides you the facility of running the batch test via command line.

Is it possible to do batch testing through QTP?

- The quick test professional is the successor of the winrunner and is quite advanced and efficient in many respects as compared to the winrunner. 
- Batch testing is possible in quick test professional. 
Difference lies in the way in which the batch testing is carried out here. 
- The quick test professional facilitates the batch testing service with the help of a separate built-in tool called the test batch runner or QTP batch testing tool. 
With this tool you can group the tests in to a number of batches which are then executed. 
- The result of this batch test run is made available in the test result viewer. 
- In quick test professional, batch wise viewing of the result is not possible. 
Results for individual tests have to be viewed. 
- For the execution of a test batch you need to open the path of the test batch and give the run command. 
- In quick test professional, other mercury products for batch testing can also be installed and used if one is not comfortable with the in built tool of the quick test professional i.e., the test batch runner. 
- For doing this you need to follow the below mentioned sequence:
Tools menu à options à run à check the check box “allow other mercury products” à apply à ok
- Even a partial batch test is also possible! 
- You just need to deselect the tests that you want to be executed. 
- MTM or multi test manager is another mercury product using which one can carry out batch testing. 


Friday, September 28, 2012

What is a QTP batch testing tool?


Under the context of quick test professional the term given for the execution or running of multiple tests or a series of tests at the same time is “batch testing” or sometimes it is also called “batch execution”. 
However, this batch testing cannot be performed normally like the other applications, a special tool is needed. Quick test professional provides such a tool and it is called “batch testing tool” or the “test batch runner”. 
The batch testing process follows the below mentioned process:
  1. Creation of individual tests.
  2. Execution of the individual tests created in the first step.
  3. Formation of batches using the batch testing tool.
  4. Execution of the batch tests on tests from batch testing tool.
  5. Observation of result via test result viewer.
Here one thing to be noted is that the provision of viewing batch wise result is not available in quick testing professional for the batch testing sessions. 

Creating a Test Batch

- For creating a test batch, you need to hog down to the tools menu in the menu bar of the quick test professional window.
- Then select test batch runner, then batch, then add option, then specify the path of the test to be added, then save it with appropriate extension like MTB or module test batch and  finally close the test batch runner. 

Execution of Test Batch

- For the execution of a test batch you again need to open the batch testing tool i.e., the “test batch runner” by following the same sequence of steps as discussed for the creation of a test batch. 
- But instead of the add option you need to select the run option. 
- When you do this, the test batch runner is launched and the tests are executed one by one. 

Here if you don’t want to use test batch runner or if you are facing issues with it, you can go for batch testing using other mercury products by checking the “allow other mercury products” check box and clicking OK. 

- In some cases it may be required to run only some specific tests and not all.
This is also possible in quick test professional via test batch runner. 
- For doing this, you just need to open the test batch runner like always and go to option “open test batch”, then select or deselect from the lists of the tests and go for run test batch. 
- The selected tests are kept in waiting mode till they are all executed one by one. 
- Another mercury product that serves the same purpose as the test batch runner is the “multi test manager”
- After the execution of the scripts is complete via test batch runner you can open up that particular test script, then go to automation, then results option and here you have the results. 
- When your test batch is set to batch mode, the entire results cannot be viewed at a time. 
- This whole program can be scheduled if you want it to be scheduled by going to the scheduled tasks option in the control panel. 
- There are some known issues with the quick test professional’s batch testing tool like consolidated test results cannot be viewed and if by chance the batch test execution stops in the mid way, the batch cannot be executed again. 
- The batch runner window should be closed and opened again. 
- Whenever a test is completed, the QTP window comes in the front and the AUT window goes back, the next is opened and executed. 
- For multi test manager the same steps are followed as for the quick test professional. 


Facebook activity