-->IF two TextBOxes are there in a "Form".
-->A table contains some records which contains usernames &
password..
-->What is the script we need to write using Descriptive
programming concept...in QTP (simply DATA DRIVEN TEST
SCRIPT OF QTP)?

Answer Posted / krishna chand

Option Explicit
dim uid,pwd
uid=datatable(1,1) ' consider user name is in 1st row
1st 'column
pwd=datatable(2,1) ' consider password is in 2nd row
ist 'column
browser("broswer name").page("page name").webedit("User
name").set user name=uid
browser("broswer name").page("page name").webedit
("Passord").set secure password=pwd

' The entire script is may not correct. But the procedure
is correct

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?

1569


What is test object model in quicktest professional?

628


Explain QTP using different development techniques ?

542


What is checkpoints for qtp?

536


which type of testing process are you following in ur company? how to recognize a qtp page?

1409






What is Associate Repository in QTP 9.2 ?

605


How does quicktest professional identifies the object in the application?

555


Can launch two instances of qtp on the same machine?

583


Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)

1556


What is difference in global and action sheet in qtp?

616


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

1571


How do know the number of browsers opened?

629


Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?

625


For which type of project the iterative model is suitable?

1387


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

1525