Micro Focus QTP (UFT) Forums
how to plan execution of QTP scripts - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: how to plan execution of QTP scripts (/Thread-how-to-plan-execution-of-QTP-scripts)



how to plan execution of QTP scripts - sudhirzpatil - 12-17-2010

Can any one Explain me how to plan execution of QTP scripts ?

I have created following scripts / action for the Test cases on Flight Reservation.

1. Sussceefully Login.

2. Create order in Flight reservation.

3. Open and successfully view the created oreder.

4. Verify the Price in Total textbox is 3 times the Price in Price textbox.

5. Verify click on Help open the Help window.

6. Delete the Order and Ensure that flights can be properly deleted from the database.

7.Verify that the correct customer data is shown in the reports.

I have alos created following Folder structure as per Framework structure guide line provide on most of sites.

A) Function Library
B) Object Repository
C) Database
D) Application Scenario Files
E) Initialization VB Script
F) Sequence File
G) Driver Script
H) Test Case List File

Now I want run the Test cases .

Can any one help me how to organize all the test cases, call them , execute as per
the sequence and Report the result.

Can any one guide me to
1. How to create Test List file ?
2. How to arrange it in Sequence file ?
3. How to write Driver script which call all the scripts/Action/Test defined as per Sequence file ?
4.How to drive script based on Y/N flag defined in Test case list file ?

As per my Understanding this is Hybrid Framework. Is this my approcah right as a beginer ?


RE: how to plan execution of QTP scripts - Tejas Tikhe - 04-14-2012

Hi,

First you have to create Excel files such as Test plan folder and Test Cases folder.

Then by using XML config file you have to get Paths of Above folder.
create driver script in qtp you can write code for reading the XML config file, then traverse through the excel files created above by checking ""if" condition for status Y/N (you have to write code for reading the XLS as well).
Now Test cases mentioned by you have to called either by call existing action or call to copy of action(as required).

(Do not interfere in test scripts (actions) created, you have to code the driver script such that it will take care of all execution of test scripts)

Thanks.