Micro Focus QTP (UFT) Forums

Full Version: Integration of many test cases in One Script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi QTP Folks,

I have a manual test script which contains 100 test cases, I want to automate all the test cases in one script, and want to run only selected test cases in every release.

Below are my queries:

How can I integrate 100 test cases in a single script ?
How can I run only selected test cases through QTP, Is there any method through which I can mark the test cases for execution ?

Thanks
1) 100 test cases in a single script? what will you gain out of that? Instead divide your test cases into reusable actions. Call the reusable actions in one script. That ways with few reusable actions you can have 100 automated scripts.

2) This can be very easily achieved through Quality Center. Otherwise you need to do a bit of scripting to accomplish this solely with QTP.
Alll the 100 test cases are different, and I want to achieve the functionality something like mentioned below:

Testcase 1: scripting for case 1
Testcase 2: Scripting for case2
and so on till 100

Can I do it in single script, also I am interested in executing only testcase 1 not all.

Can we do this through QTP ?
Hi Ankur/Shayad15,

I want to Suggest this....for the qwes: I am interested in executing only testcase 1 not all [by Shayad15].
I understand that he wants to execute eg:15 randomly picked testcases out of 100.
Ankur s right as it would not have any purpose writing all the test cases in 1 script.
We faced the issue in Insurance Domain, we were told to maintain 190 scripts for around 225 test cases [ we had resuable actions as Ankur Mentioned ]. we used to call the functions which one we wanted to execute.Using the batch execution.

Cant we don like that Ankur....[asking from u as i saw ur previous message to me ]