Geeks Talk

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.

QTP - Data value from data table -- only one at a time for each test !!

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

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 12-29-2008
Junior Member
 
Join Date: Aug 2008
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
vikwin is on a distinguished road
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 !!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-30-2008
Expert Member
 
Join Date: Jan 2007
Location: India
Posts: 208
Thanks: 3
Thanked 19 Times in 19 Posts
NawabShaikh is on a distinguished road
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
Reply With Quote
The Following User Says Thank You to NawabShaikh For This Useful Post:
  #3 (permalink)  
Old 12-31-2008
Expert Member
 
Join Date: Jun 2008
Posts: 209
Thanks: 6
Thanked 12 Times in 11 Posts
learqtptesting is on a distinguished road
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
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 10:08 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved