-->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)?

Answers were Sorted based on User's Feedback



-->IF two TextBOxes are there in a "Form". -->A table contains some records which c..

Answer / manish

Browser("Name:=Browser name").page("title:=page
title").wededit("class:=name of the test").set
datatable.value(dtGlobalsheet,username)
Browser("Name:=Browser namae").page("title:=page
title").wededit("class:=name of the test").setsecure
datatable.value(dtGlobalsheet,password)

100% correct, try this out.

Is This Answer Correct ?    7 Yes 0 No

-->IF two TextBOxes are there in a "Form". -->A table contains some records which c..

Answer / kumar

My Knowledge....

Browser("Name:=Browser namae").page("title:=page
title").wededit("class:=name of the test").set
datatable.value(1)
Browser("Name:=Browser namae").page("title:=page
title").wededit("class:=name of the test").setsecure
datatable.value(2)

Is This Answer Correct ?    4 Yes 0 No

-->IF two TextBOxes are there in a "Form". -->A table contains some records which c..

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

More QTP Interview Questions

diff between wr and qtp in detail.

4 Answers  


How to count the no of objects in XML file(QTP)

1 Answers   IBM,


HI All i need one suggestion.is there any companies taking corresponding degree courses. i have 3+ yrs exp in QTP and i am working north side. iam looking for job in south.

1 Answers  


How to capture dynamic objects in qtp like mark up text

3 Answers  


Can you tell me any books or websites to learn VB Script for QTP ??

1 Answers  






What is the use of ordinal identifier in qtp?

0 Answers  


What is the difference between the design-time and run-time data tables?

0 Answers  


Do you support automated testing? Why?

0 Answers  


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

0 Answers  


What are the properties you would use for identifying a browser and page when using descriptive programming?

0 Answers  


when i was doing the Flight reservation with QTP calculating the tickets i got Type mismatch: '[string: ""]' in "If cdbl(tot)=cdbl(p)*t Then" error. where I am doing the mistake Could you please tell me.

5 Answers  


How to release all resources file from the QTP?

0 Answers   Tech Mahindra,


Categories