how can i parameterize a login page by using database
parameterization i fetch the username and password from
database and put this on login page and click on ok button.
so how can we write script for that code please let me know
asap
thanks
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
window("Flight Reservation").Close
Next
Is This Answer Correct ? | 1 Yes | 0 No |
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
window("Flight Reservation").Close
Next
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / pravati
Rowcount=Datatable.Getsheet(shtID).Getrowcount
for i=1 to rowcount
Datatable.Getsheet(shtID).setcurrentrow(i)
username=Datatable.value(rowid1,sheetid)
pwd=Datatable.value(rowid2,sheetid)
Browser().page().webedit().set username
Browser().page().webedit().set pwd
Browser().page().webbutton.click
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / pravati
Rowcount=Datatable.Getsheet(shtid).getrowcount
for i=1 to rowcount
Datatable.Getsheet(shtid).setcurrentrow(i)
username=Datatable.value(rowid1,shtid)
pwd=Datatable.value(rowid2,shtid)
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 use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.
why we use sendkey method in qtp?
Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.
What are Child Objects?
Can you import and export data from XLS and how?
does QTP provides any tools for parametrisation?
If aclient comes to tester ask to bye a tool Keep aside about the cost,In what way we can choose the tool.
How can the name of a checkpoint be changed in Qtp
What are the Test design techniques you uses in ur project?
1.How recognize QTP Dyanamic Image? (suppose tha wedpage contains 3 logos..1 square 2.circle 3.rectangel)there changing at same position how to capture that)
one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.
write string reverse prog using vb script with out using string reverse statement();