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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When you open QTP, how many sheets you can see?

651


In an interview, what r the general questions asked in QTP? pls give me anwser to this question?

1415


What is the use of text output value in quicktest professional?

506


Have you used xml check point in your project? How?

543


can u explain relative path architecture framework in qtp?

1557






How does qtp identify gui object?

582


what you mean by artifact,milestone...

1492


How many tabs are available in debug viewer pane?

643


If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

579


Why qtp the best testing tool?

558


What are the various automation frameworks available in qtp?

501


How will you find the current time of the remote machine using QTP script?

591


How you can write contexts to text file in qtp?

588


How many types of recording modes in qtp? Which will be used when?

546


How to creating an output value using quicktest professional?

538