through the script i want to run the iteration no 1to10 (no need to set the iteration in Test -->Setting -- > Run)through the code need to do this? [img]/images/graemlins/confused.gif[/img]
i think this will help
Set qtTest = createobject("quicktest.application").Test
qtTest.Settings.Run.IterationMode = "rngIterations"
qtTest.Settings.Run.StartIteration = 1
qtTest.Settings.Run.EndIteration = 10
The easiest way to learn it by doing settings and click on generate script(in test settings diaog and verify what you need.
Simple way to do is.
RunAction "My Action", "1 - 4"
I use a slightly different approach.
In my Reusable Action the first column of the local datasheet is "Run". Then I create my sheet full of parameters.
I enclose the entire script (except DIM statements) in a For..Next loop from 1 to the rowcount of the local datasheet and the following If..Then statement:
If DataTable("Run", dtLocalSheet) <> "" Then
my entire script goes here
So each row is checked. If the Run column is blank, the row is skipped. If the Run column is not blank, the row is executed.
This way, anyone running the script can put something simple, even just an 'x' in that column for the rows they want to run and leave the rest blank.
Makes it really easy to test different features of the application with something as simple as changing which rows have a value entered in the Run column.
"The last 10% of any software project will take 90% of the budgeted time. The first 90% will take the other 90%"