Greetings friends ,
Hope all of you are doing well.
When I run a test, is it possible for me to for me to take
each row from the data table , once at a time.
In other words,if i have 10 rows in the global data table,
say data1,data2, data 3...and so on up to data10.
Can I have the value of data1 when I run a test, and next
time when I run the same test (say next day), it should
skip data1 as it has already used it and go directly to
data 2 ???
Would be great if anybody can help me out know in this
issue.
Thanks & Regards !!
Answer Posted / kashinath hajare
'Please Check Following code. In this code "Is_Required" is
defined in Datatable( Column Name). Make it as "1" or "0",
as per requirement. If value of this column "1", only that
column will execute.
iScenCount=DataTable.GetSheet("Global").GetRowCount
'Traverse throgh master datasheet to execute the scenario
For iRowCounter= 1 to iScenCount
DataTable.GetSheet("Global").SetCurrentRow iRowCounter
If trim(DataTable.Value("Is_Required", "Global")) Then
'Your Script code will be here
End if
Next
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you know the location Id of an object if you know its index id?
What is fragmentation and paging?
How many types of run modes are there in qtp?
What are the two types of repositories available, explain them?
Hi Friends, Can anyone help me out in this one? In QTP, I am using Data Driver and want to parameterise multiple values (say 3 values ) for a field. How can I do it using Data Driver wizard? Plz mention it step-by-step. In the end after doing the needful, on opening the Data Driver window, how can I get number (i.e. 3) in the Parameterised column for that particualr value? Thanks a lot in advance.
Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain
What is meant by Output Value in UFT?
How does quicktest professional (qtp) identifies the object in the application?
What is text/text area checkpoint?
What the differences are and best practical application of Object Repository?
How does qtp identify the object in the application?
write script for bitmap image?
how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel
What are the ordinal identifiers in web page?
Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?