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

What is the use of Accessibility check point?

3 Answers  


Hi guys, can anyone explain me whats the method for reporting the QTP test results to teamlead or non-QA member (developer/PM)? Thanks in Advance!!!!!

2 Answers  


In QTP, As a first step wht we will do before going to start a Automation....when it will be decided that we have to go for a Automatio..and who will decide to go for Automation. Any body can pls let me know.. Thanks in Advance..

1 Answers   Wipro,


what is main diff of qtp8.2 and qtp9.0?

1 Answers   Covansys,


It seems Interview questions from Ordain Solutions are almost BASIC LEVEL-Easy. I am asking one tough question..(I think.. May be easy for some people) In recorded script the - WebLink("cityinfo") In reality, the WebLink name is "generalinfo" How you can write function to click that changed web link. NOTE: This functin should work with any Dynamic text link. I will post the answer later.

8 Answers  






How to use the Object spy in QTP 8.0 version?

2 Answers  


w is output value

3 Answers   MBT,


What are the technics follow in writing VB script?

0 Answers   CTS,


How to execute the test cases using QTP. i.e What is the use of QTP while execution

2 Answers  


Which environments does qtp support?

0 Answers  


How is GC reddy online program Will i get placed How are the placements.

1 Answers  


what is regular expression how will you implement it?

1 Answers  


Categories