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


Please Help Members By Posting Answers For Below Questions

How do you know the location Id of an object if you know its index id?

589


What is fragmentation and paging?

1592


How many types of run modes are there in qtp?

587


What are the two types of repositories available, explain them?

594


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.

1445






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

1463


What is meant by Output Value in UFT?

567


How does quicktest professional (qtp) identifies the object in the application?

583


What is text/text area checkpoint?

564


What the differences are and best practical application of Object Repository?

592


How does qtp identify the object in the application?

537


write script for bitmap image?

1540


how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel

1903


What are the ordinal identifiers in web page?

640


Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?

1486