Exforsys

Free Training

QTP- import Sheet - Data table

This is a discussion on QTP- import Sheet - Data table within the Software Testing forums, part of the Testing category; Hi all I have recorded few application actions and i parametrised that action by using ddt functionality in QTP,data table ...

Go Back   Exforsys > Testing > Software Testing

Exforsys.com


Software Testing Software testing is a process used to identify the correctness, completeness and quality of developed computer software.

Reply

 

LinkBack Thread Tools Search this Thread
  #1 (permalink)  
Old 03-06-2009, 02:33 AM
Junior Member
 
Join Date: Mar 2009
Posts: 8
lalithambigi is on a distinguished road
QTP- import Sheet - Data table

Hi all

I have recorded few application actions and i parametrised that action by using ddt functionality in QTP,data table is .xls which i will import from my local machine while executing script.

while executing that scripts, always script is taking first row details only, but no.of itration are same as no.of rows which i have mentioned in data table.

for example:
I have mentioned data in three rows
i.e one row will cover one scenario,second row will cover second scenario and third row for third scenario

but my script is executing three times with first row data only, it is not taking second and third row data.

pls advice whate could be the reason.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-29-2009, 06:35 AM
Junior Member
 
Join Date: Mar 2009
Posts: 2
ramana028 is on a distinguished road
Quote:
Originally Posted by lalithambigi View Post
Hi all

I have recorded few application actions and i parametrised that action by using ddt functionality in QTP,data table is .xls which i will import from my local machine while executing script.

while executing that scripts, always script is taking first row details only, but no.of itration are same as no.of rows which i have mentioned in data table.

for example:
I have mentioned data in three rows
i.e one row will cover one scenario,second row will cover second scenario and third row for third scenario

but my script is executing three times with first row data only, it is not taking second and third row data.

pls advice whate could be the reason.

Hear 1st check run time settings
then check Data table column name
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-03-2009, 09:47 AM
Junior Member
 
Join Date: Jul 2009
Posts: 12
basanth27 is on a distinguished road
Quote:
Originally Posted by lalithambigi View Post
Hi all

I have recorded few application actions and i parametrised that action by using ddt functionality in QTP,data table is .xls which i will import from my local machine while executing script.

while executing that scripts, always script is taking first row details only, but no.of itration are same as no.of rows which i have mentioned in data table.

for example:
I have mentioned data in three rows
i.e one row will cover one scenario,second row will cover second scenario and third row for third scenario

but my script is executing three times with first row data only, it is not taking second and third row data.

pls advice whate could be the reason.
Go to Test Settings -> Run- > check if the Datatable run iterations are set to run on one row only.

How are you programming it ?? You may need to follow something like this,

rowcount = Datatable.Getrowcount

For i = 1 to rowcount
Datatable.SetCurrentrow(i)
write your code..
Next

If you dont use Setcurrentrow and you have data in the subsequent rows then it will not execute according to your requriemnt.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
General Ledger – Technical dongta_ndh Oracle Apps 1 09-10-2009 07:34 AM
Import EXCEL Data into QTP Global Data Table venkata krishnamurthy t Software Testing 7 12-09-2007 11:59 PM
Data Modeling Tutorials lokeshm Data Warehousing 0 04-24-2007 03:18 PM
[FAQ] FileMaker Pro - database for Macintosh and Windows Martin Trautmann Tech FAQ 0 04-17-2004 08:26 AM
Apple II Csa2 FAQs: Telecom Hardware & Transfers, Part 20/25 rubywand@swbell.net Tech FAQ 0 04-04-2004 08:29 AM


All times are GMT -4. The time now is 10:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright 2004 - 2009 Exforsys Inc. All rights reserved.