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
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 |
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 |
How to record right click of a context menu and click on the selection ?
what is object?
IS standard check point is very important than the other check points in QTP? If so why?
What is the syntax to call one script from another?
In my script there is a link(e.g. 'My Page') when I execute the script sometimes(not every time) QTP throws an error that "My Page(as link)" not found. Pleaase tell me where I need to update
what is the Exact Meaning of Environment Variables?
What is the keyword view and expert view in qtp?
How to get line numbers in your editor in expert view?
how to load all resource files(function libraries,object repositories etc) into tests without associating them?
when i was doing the Flight reservation with QTP calculating the tickets i got Type mismatch: '[string: ""]' in "If cdbl(tot)=cdbl(p)*t Then" error. where I am doing the mistake Could you please tell me.
How to test login module with different username and password by using data driven testing in QTP?
qtp script for recording and running the application.need script for short cut keys like f3,f4 etc.how to write script for recording?