Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on QTP - Data value from data table -- only one at a time for each test !! within the QTP forums, part of the Software Testing category; Greetings friends , Hope all of you are doing well. My query is that , when I run a test, is it possible for me to for me to take ...
|
|||||||
|
|||
|
QTP - Data value from data table -- only one at a time for each test !!
Greetings friends ,
Hope all of you are doing well. My query is that , 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 ??? Is there any QTP setting which can be done or is it possible through VB Scripting ? Would be great if anybody can help me out know in this issue. Thanks & Regards !! |
| Sponsored Links |
|
|||
|
Re: QTP - Data value from data table -- only one at a time for each test !!
Global Sheet Entries itself Parameterize your scripts for multiple runs.
But in your case you want to use entries depending on date..Right? My UNDERSTANDING 1. you would like to run the script each day with a different row. 2. Upload all the data in local sheet, with a column for the date you would like to have the Run 3. Read data from datatable for the parameters, in case date column scanned with Current date..perform operation 4. A for LOOP is required for the perpose. DONE In case there is a differing business scenario, please revert with specs. Regards, Nawab |
| The Following User Says Thank You to NawabShaikh For This Useful Post: | ||
|
|||
|
Re: QTP - Data value from data table -- only one at a time for each test !!
You could also emplementing logic like below example with datasheet preparation:
Let' s say your datasheet as below Mydata Executed? ====== ======= data1 no . no . no data10 no Steps in your script should include: 1) load datasheet 2) validate the "Executed?" if it is "no" do your stuffs ... your stuff complete change "no" to "yes" (on the same row) save your datasheet (since your script will load it every time you run scrpt) 3) if it is "yes" set current row to next row repeat step 2 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to add two numbers in run time data table | sowmini devi | QTP | 3 | 02-26-2009 12:17 PM |
| Getting #REF in data table when data is referred from external sheet | suryaperi | WinRunner | 1 | 09-12-2008 07:18 AM |
| Test data flow from table to table | vaibhavst | Test Cases | 3 | 07-31-2008 06:36 AM |
| How to insert data from one table to an empty table | sahanai mishra | Oracle Apps | 1 | 08-11-2007 11:45 AM |
| How to save the data in the data table | subuits | WinRunner | 0 | 07-10-2007 12:56 AM |