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 record right click of a context menu and click on the selection ?

3 Answers  


what is object?

5 Answers   iFlex,


IS standard check point is very important than the other check points in QTP? If so why?

4 Answers  


What is the syntax to call one script from another?

0 Answers  


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

3 Answers  






what is the Exact Meaning of Environment Variables?

2 Answers   Semantic Space,


What is the keyword view and expert view in qtp?

0 Answers  


How to get line numbers in your editor in expert view?

1 Answers  


how to load all resource files(function libraries,object repositories etc) into tests without associating them?

1 Answers  


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.

5 Answers  


How to test login module with different username and password by using data driven testing in QTP?

0 Answers   HCL,


qtp script for recording and running the application.need script for short cut keys like f3,f4 etc.how to write script for recording?

2 Answers  


Categories