I am a newbie for QTP.
Can you please explain how to run the scripts subroutine wise.
Assume that there are 3 subroutines in a Test.
In this I need to run only the subroutine 2. How can i run only subroutine 2, leaving other two.
In few automation tools,right clicking on the selected subroutine and selecting "run current routine" will serve the purpose.
It there is any option like this in QTP.
Please reply ASAP.
The way I do it is to list each subroutine in its own row of the datatable. I include a column called "Run" and another column called "Script". The name of the subroutine goes under "Script". In the "Run" column, leave it blank if this row should be skipped or put anything in it if you want this row to be run.
Then in your script you have a simple If..Then:
<font class="small">Code:</font><hr /><pre>strRunScript = DataTable("Run", dtLocalSheet)
If strRunScript <> "" Then
'call your action name here using the value in the "Script" column of your datatable
End If</pre><hr />
"The last 10% of any software project will take 90% of the budgeted time. The first 90% will take the other 90%"