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 difference betweem class annd object?

1 Answers  


Suppose i have given 10 test cases all the test cases should be automated?

3 Answers   NTT Data,


what is the advantages and disadvantages of using functions instead of re usable actions

0 Answers  


desribe a situation where u faced a stressful situation and how did u cope with it

0 Answers   DELL,


Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?

0 Answers   CTS,


Hi All,I am in wierd situation that my laptop is installed with QTP11 and os is xp sp3.The problem is the descriptive programming which i have written is working in other laptops and it is not working in my laptop.it is clicking the link which is above the testbox instead of typing it in textbox below it.It is same with the other working scripts written by another person.

1 Answers  


How to capture data from images in QTP and produce them in Excel sheet ?

4 Answers   iFlex, QA InfoTech,


images are dynamically changes how to compare two images

2 Answers   Hexaware,


Is it possible to return multiple values from a function..? Then how..?

3 Answers  


Why use Regular Expressions?

1 Answers  


Hi All, I am a beginner in QTP and have understood the basics of QTP by going through tutorial. I am trying to Automate a HRMIS application, What is the right approach to Automate this application. Kindly answer. Thanks in advance

1 Answers  


What is difference between Class and MicClass

2 Answers  


Categories