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'm not able to write the script for login page

This is a discussion on I'm not able to write the script for login page within the QTP forums, part of the Software Testing category; I have created datatable in xls sheet (username, password), however I'm not able to write the script for login page. I didnt able to understand how do I fetch the ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 07-19-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 192 Times in 154 Posts
Geek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura about
I'm not able to write the script for login page

I have created datatable in xls sheet (username, password), however I'm not able to write the script for login page. I didnt able to understand how do I fetch the username and password value to login. I am beginner can any one help me out.......Look forward to your reply guys...

Question asked by visiotor Anurag
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-19-2007
Contributing Member
 
Join Date: Mar 2007
Location: Florida,United States
Posts: 35
Thanks: 0
Thanked 2 Times in 2 Posts
myth.ks is on a distinguished road
Re: I'm not able to write the script for login page

Hey Anurag,

First let me know whether u r using external datasheet or QTP inbuild datasheet.

If you are using inbuild datasheet,u can fetch the values from the data sheet and pass it to the appropriate fields.see the example below

Test Case for Yahoo Login :
Enter the UserName
Enter the Password
Click on the Submit button

Syntax for fetching value from DataTable

Variable1 = DataTable("","")
Variable2 = DataTable("")

Example :

Let me say ur Action Name be "Login".
Your field name will be "UserName" and "Password"

v_strUserName = DataTable("UserName","Login")
v_strPwd = DataTable("Password","Login")

Browser().Page().WebEdit().Set v_strUserName
Browser().Page().WebEdit().Set v_strPwd
Browser().Page().WebButton().Click

To run more than one iteration, go to Keyword view,Right click the appropriate action name,select Action Call Properties option,from their select your own option. Another alternative way is like.... you can use For..Next looping statement to retrive more than one row from the data table.


Hope u got some idea now!!
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 do we write script in expert view Geek_Guest QTP 0 06-08-2007 10:25 PM
Winrunner is taking the entire web page as a single page Sridevi.P WinRunner 0 06-05-2007 11:26 PM
Putty screen login and password script dnarsingarao Quality Center 1 05-29-2007 05:43 AM
login page for multiple users greesh ASP.NET 1 05-02-2007 10:34 AM
how should we write the script? abraham_ahmed Testing Issues 4 02-15-2007 05:05 AM


All times are GMT -4. The time now is 09:31 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