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

In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?

1433


how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.

1314


Is it possible to use two instances of UFT on the same machine? If not why?

590


Explain quicktest professional testing process?

555


Explain the parameter in qtp?

571






how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods

1377


Generic function to search for the unique link in webtable and click on it

2479


Can any suggest me what is exposure testing?

1366


Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji

911


give me an example where u used good judgement and logic in solving a problem

3347


Hi, While recording a Jave based web application, its recording all my actions and the objects.And I have 5 WebEdit objects on the page and all are recorded. But while execution, at the 2 WebEdit object, its entering the value into the object (Its making a call to the AJAX, matching the value), when the control get out of this object the value is erased or cleared. Could anyone please help. I have recoreded 5 more scenarios where WebEdit is in the picture on different webpages and all are working fine. Here is my Script: Browser("Sign In").Page("Matching Workbench_3").WebEdit ("locationLookup").Set "0320 - SEATTLE-KM" Browser("Sign In").Page("Matching Workbench_3").WebEdit ("supplierNameLookup").Set "TRAMMO PETROLEUM INC" *** SupplierNameLookup is the object, which is haing an issue. And also I was using the SendString function, but it didnt work.

1759


What are the check points can be inserted without recording?

592


what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?

1541


Explain the features of quick test pro(qtp)?

564


What is the difference between qtp and selenium?

539