Print Page | Close Window

Understanding Action Iteration and Test Iteration

Printed From: One Stop Testing
Category: Testing Tools @ OneStopTesting
Forum Name: QuickTest Pro @ OneStopTesting
Forum Discription: QuickTest Pro is a fresh approach to automated software and application testing that addresses testing needs of both business analysts and Quality Assurance professionals.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=7395
Printed Date: 27Dec2024 at 8:58pm


Topic: Understanding Action Iteration and Test Iteration
Posted By: Mithi25
Subject: Understanding Action Iteration and Test Iteration
Date Posted: 30Nov2009 at 11:07pm
Understanding Action Iteration and Test Iteration
For beginners of QTP, it is very important to understand the difference between ActionTest.

A QTP Test can have multiple Actions. The Actions can be arranged in nested manner (parent action-child action)also within the Test. Each Test will be stored as QuickTest Test. Actually it will be shown as Folder in windows explorer. Each Folder will have many files and many sub folders (one separate sub-folder for each Action).
Refer the below screenshot.
http://2.bp.blogspot.com/_MAr0lRJ3mPk/Sg1bCD8ujGI/AAAAAAAAAOc/pXnH8u3C0xg/s1600-h/qtpTest.JPG">
and the

So it is clear that Actions are part of Test.

DataTables in QTP are used to enhance the script by doing Datadriven testing easily.

Refer the below screenshot.

http://1.bp.blogspot.com/_MAr0lRJ3mPk/Sg1ce8oqBwI/AAAAAAAAAOk/x5LQo624AhQ/s1600-h/qtpDatatable.JPG">

The Datatable is having One Global Sheet and several local sheets based on number of Actions used in the Test.

The Global sheet is used for storing the data used for Test Iteration, and the local sheets are used for storing the data related to corresponding Action iteration.

The Test Iteration can be specified from Run tab of Test Settings (File->Settings).

The Action Iteration can be specified from "Action Call properties" window which can be opened from Right click menu (context menu) of the particular Action.

Now the next step is when we should use both Test iteration and Action Iterations.

Assume that you are testing flight booking application which comes along with QTP installation.

You need to test different test cases of booking tickets 5 times.

So, we can easily do it by entering the ticket details in 5 rows of Action sheets and setting "Run on All Row" in "Action Call properties".

We know that we need to login into the application before booking Tickets.
So now the tickets will be booked 5 times with single user login.

Assume that we need to test this with 4 different users.

So, we need to book the tickets 20 (5x4) times.

It can be handled by using both Test Iterations and Action Iterations.

The user login details can be kept in the Global Sheet and the "Run on All Row" should be set in the Test settings.

So now script will execute 20 times to make 5 bookings with 4 user logins.


-------------
http://www.quick2sms.com - Send Unlimited FREE SMS to Any Mobile Anywhere in INDIA,
Click Here



Print Page | Close Window