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.

I want a step for Data driven Testing in QTP

This is a discussion on I want a step for Data driven Testing in QTP within the QTP forums, part of the Software Testing category; Hi, when i record a step for login window of flight resservation application,& run the test script it run succesfully but when i use parametration for agent name feild,it run ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 07-03-2009
Junior Member
 
Join Date: May 2009
Location: pune
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ajayrathod09 is on a distinguished road
I want a step for Data driven Testing in QTP

Hi, when i record a step for login window of flight resservation application,& run the test script it run succesfully but when i use parametration for agent name feild,it run sucesful for 1st ittration,but for next step it show error message "object proerty is not match/defined in parent object menu please... " if such error occur what nessscary step i want to take please tell me .. step by step if some one knows solutions
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-03-2009
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,461
Thanks: 15
Thanked 150 Times in 141 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: I want a step for Data driven Testing in QTP

Hai friend,

1. Open a test and record the login steps

2. From the datatable click on columnname A and enter Username and click on column name B and enter Password and then enter the required values.

3. File->Settings->Run->Run one iteration only->Click on apply->Click on Ok

4. Paste the code in expert view and then enter the path of the application.

5. Run the test

For i=1 to Datatable.GetRowCount
struser=Datatable("Username",dtGlobalSheet)
strpass=Datatable("Password",dtGlobalSheet)
SystemUtil.Run "Path of the application"
Dialog("Login").WinEdit("Agent Name:").Set struser
Dialog("Login").WinEdit("Agent Name:").Type micTab
Dialog("Login").WinEdit("Password:").SetSecure "4a4e00da0ae6177d2f0a239a300e3280068f1178"
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").Close
Datatable.SetNextRow
Next

Let me know if any issues exists

Thanks
Deepa

Last edited by deepasree; 07-03-2009 at 10:23 AM.
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
Data -driven testing in qtp gouthami123 QTP 5 07-15-2009 03:35 PM
Data driven testing in WinRunner GMustafa WinRunner 2 02-17-2008 02:31 AM
What is the next step to restore the data? Geek_Guest Data Warehousing 2 09-20-2007 01:18 AM
what is Data-driven, Time-Driven and keyword-driven testing vijenjoy2k2 Testing Issues 1 05-31-2007 06:22 AM
Data-driven, Time-Driven and keyword-driven testing? spd15 Testing Issues 1 04-02-2007 03:24 AM


All times are GMT -4. The time now is 09:23 PM.


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