can i login a page by giving username and password and click
on ok button through database parameterization.and if its
yes then please write the code of that

Answers were Sorted based on User's Feedback



can i login a page by giving username and password and click on ok button through database paramete..

Answer / shaveta

rc=datatable.GetSheet("Global").GetRowCount
For i=1 to  rc
datatable.GetSheet("Global").SetCurrentRow(i)
systemutil.Run"C:Program FilesHPQuickTest Professionalsamplesflightappflight4a.exe"

With dialog("Login")
.Activate
.WinEdit("AgentName:").Set(datatable.Value("UID","Global"))
.WinEdit("Password:").Set(datatable.Value("password","Global"))
.WinButton("OK").Click
End With

Next

Is This Answer Correct ?    3 Yes 1 No

can i login a page by giving username and password and click on ok button through database paramete..

Answer / pravati

Rowcount=Datatable.getsheet(id).Rowcount
msgbox Rowcount
for i=1 to rowcount
Datatable.Getsheet(id).setcurrentrow(i)
username=Datatable.value(parameter id,sht id)
pwd=Datatable.value(parameter id,sht id)
Browser().page().webedit().set username
Browser().page().webedit().set pwd
Browser().page().webbutton().click
Next

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

how to get no.of non empty rows in a excel sheet through vb-script

2 Answers   HP,


what is smart identification?

7 Answers  


Hi all, I am using windows vista, I am in the process of learning QTP. When ever I try to work with insert mode in flight application , i am getting the error of 'Operation must use an update table query, fractional truncation(null) error. Can anyone help me regarding this?

0 Answers  


What is the advantage of associating a procedure with a test object?

1 Answers  


In project module it contains 3-ok buttons with same properties who qtp identify its objects while runing ??

5 Answers   HCL,






There is one login screen,after accepting valid username and apassword, it will show the next screen. In the 2nd screen u r having 2 combo boxes, U have to select any item from these, and click OK button. After closing that, it will show the 3rd screen. If u click CANCEL button from 2nd screen it will show the first screen. Write QTP script for it???

1 Answers   Sonata,


I AM NEW IN QTP,PLZ TELL ME ANY BOOKS FOR QTP, MY COMPANY IS QTP,SO I LEARN QTP,PLZ ANYBUDY HELP ME

68 Answers   AZTEC,


How to remove associated function library?

0 Answers  


How to do Laod testing for web based Application?

1 Answers  


What are the Features & Benefits of Quick Test Pro ?

0 Answers   Crea,


what is purpose of automation?

3 Answers  


What is diff betwee datatable.importsheet "path" and datatable.import

2 Answers  


Categories