How to Toggle Between Faster Mode and Normal Mode In QTP .
Normally we run all our QTP Scripts in Normal mode. This is required as Scripts might interact with web pages or Some applications (may be desktop or some other applications).
Think of some other scenarios, where our script will not interact with other application like testing painting or analog scripting testing. For those cases we don’t need not run our script in Normal mode. We can go with Faster mode.
Again there might be scenarios where our script might do some analog activity and can interact with other applications. For this mixture applications we need to run some portion of our script in Faster mode and some part will run in normal mode.
For solving this third point we need to toggle between faster mode and normal mode.
Now how to code in QTP which will toggle between faster and normal mode..
Setting Run mode as Normal
Dim App 'As Application Set App = CreateObject("QuickTest.Application") App.Visible = True App.Options.Run.RunMode = "Normal" App.Options.Run.StepExecutionDelay = 100
Setting Run mode as Faster
Dim App 'As Application Set App = CreateObject("QuickTest.Application") App.Visible = True App.Options.Run.RunMode = "Fast"
There is also one more run mode called Maintenance Mode run.