Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 !!

Answers were Sorted based on User's Feedback



Greetings friends , Hope all of you are doing well. When I run a test, is it possible for me ..

Answer / hemakumar.m

1)Answer
as per y knowledge there is no function to get entire row

2) Answer

U can maintain one colummn Ex:Status in excel sheet,when u
used particular data and u got expected result u palce some
text like useddata for used one and blank for unused data
(default) in u r excel sheet.u can write programme like
that when the status colummn value is used data skip that
step.

Is This Answer Correct ?    4 Yes 0 No

Greetings friends , Hope all of you are doing well. When I run a test, is it possible for me ..

Answer / vik

Thanks Mr.Hemakumar

Realy appreacite your time.

Actually, I need QTP to select a new user name each time
automatically. I want to pre-enter 50 names in the excel
data table and accordingly let QTP to take 1 value each
time.

So, if I can understand your answer right, there needs to
be a column named "Status". Assuming the first field
says "Raj", then QTP uses it because it has not been used
before.

However, next time with a new test how would you let QTP
know that it has already used "Raj". Have we got to
capture "Raj" as a already used data and then compare with
next test. If the value matches , then move to next field
to fetch the next field value. Am I right ?

Is This Answer Correct ?    3 Yes 1 No

Greetings friends , Hope all of you are doing well. When I run a test, is it possible for me ..

Answer / deepakm82

Hey Vik,
As far as i understand ur question,u saying that u have 50
users which use 50 different sets of data.
You have already pre-entered the 50 users and so u also
must have pre-entered the 50 rows of data used by 50 users.
What hemakumar is saying is that you can have a column
STATUS which gives you the position of the user.
Suppose 'Raj' is the first user and 'Vik' is the 2nd user
then STATUS would say 1 for 'Raj' and 2 for 'Vik'.
Now while running the QTP you can use following:
Datatable.SetCurrentRow("STATUS")
Depending upon the STATUS column the data row would b
selected.

Is This Answer Correct ?    1 Yes 0 No

Greetings friends , Hope all of you are doing well. When I run a test, is it possible for me ..

Answer / 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

More QTP Interview Questions

In my application there is a billing thru credit card. how to validate the credit card details(min balance,credit card no,card holder name).if these details are valid then only that booking will be done.how to validate these details thru automation or manual?

1 Answers  


I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”

0 Answers  


is it possible to check the text displayed in the tool tip using QTP? if so, how?

6 Answers  


What is the default add-ins in qtp?

0 Answers  


can u explain relative path architecture framework in qtp?

0 Answers   Mindlance,


how can i replace any text from the qtp script with some anothere text

1 Answers   Livetek,


Where u will use output checkpoint in QTP?

3 Answers   HCL,


How to sendKeys in QTP? Diff b/w sendkeys and device replay? Diff b/w function and Sub? Diff b/w Array and List Different Types of running Keys other than Fast, slow,Normal mode Regular expression for http://newtours.demoaut.com Difference between \w and \W How to generate script button Recording Types Different Types of Actions? Using DP performance degrades, If Yes why? How to close all the opened browsers? Diff b/w SystemUtil.Run and invoke application? If qtp not recognized the combo box How to select values from drop down?

0 Answers  


How to use library files in QTP? how we can call these files in to script?

4 Answers   Virtusa, Wipro,


Hi Guys, My Application in Microsoft Dynamic Navision, is it compitibale with QTP? if yes then let me know...

0 Answers  


how to get the particular chr in an array list the question is ....i have an array like this ABCD EBCF GBCH IBCJ HERE I NET TO GET ONLY "BC" FROM ALL HOW TO GET IT HELP ME ANY ONE THANKS

6 Answers   Cap Gemini,


how to retrieve the xml file data through qtp. can anybody send script for this..

3 Answers   Synechron,


Categories