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

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
window("Flight Reservation").Close
Next

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?

1496


When do go for loop condition in test?

654


What are parameterizing tests?

547


Hi I know two types of testing processes. 1. Reaquirments stage,test design,code review's, Design review's, Test Plan, Test Cases design, test execution, Defect Reporting and tracking, UAT, Signoff. 2.Test Initiation , Test Plan, Test Design, Execution,Bug tracking, UAT, Sign off.

1371


Generic function to search for the unique link in webtable and click on it

2481






What is QTP and the use of QTP in TD?

597


How to export quicktest professional results to an .xls file?

568


Explain in brief about the quicktest professional (qtp) automation object model?

561


An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?

648


how to convert 100 into hundred repees only and viceversa

1447


What are the different types of recording modes?

529


in a web page How to check and display a particular word from a paragraph?

2037


What is parameter in qtp?

676


tell me abt a time when u had to go above &beyind the call of duty to get the job done

1438


Hi All, I need code for how to execute qtp scripts from excell sheet

1459