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 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 ...
|
|||||||
|
|||
|
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 |
| Sponsored Links |
|
|||
|
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!! |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |