Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to pause QTP script using DotNet Factory
#1
Solved: 11 Years, 3 Months, 3 Weeks ago Rolleyes 
I have a QTP script in that after executing some keywords i have to pause the script and i have to to some manual steps later on i want to continue.
But here the wait time is unknown.
I want to call a Custom form in that it should contain 2 buttons
1) Pause the QTP Test
2) Resume the QTP Test

Once i click the button "Pause the QTP Test" the script should get pause
then i want to perform other manual things
Once it is complete then
I want to click 2nd Button "Resume the QTP Test" my script should proceed further.
I went through "Part3: QTP and DotNetFactory......." I created form & Buttons.

But i don't know what to write to Pause & Resume the script.

Can Anyone help me in this?
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Ankur,
Can you please provide help on this?
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Code:
Dim App
Set App = CreateObject("QuickTest.Application")
App.Test.pause
App.Test.Run
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi nistalaramesh,
first thing - why do you need such kind of thing when we already have built in feature to stop, pause or resume in QTP?
in any case if you want this form with the two button to be running side side while your script execution is going on, in that case, this wont be possible using DotNet Factory as we can not create or assign methods/action for controls in the form created as we have in visual basic.

refer - QTP and DotNetFactory Series

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Dot Net Factory Button click to run action in QTP nutsndips 1 4,438 06-21-2011, 08:37 PM
Last Post: nutsndips
Exclamation Pause script with code JRDew 6 13,329 03-08-2011, 09:46 PM
Last Post: tdevick
  Pause from QTP. logeshkumarvb 2 4,437 01-11-2011, 07:20 PM
Last Post: UFTEnthusiast
  need script to pause the test kumsweta 1 3,437 12-02-2008, 09:26 PM
Last Post: roxer

Forum Jump:


Users browsing this thread: 1 Guest(s)