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

How to import excel sheet to QC?

1 Answers  


.qfl extension for which file? where vl use it

1 Answers   iFlex,


w is recovery senario manager

3 Answers   Infosys,


How can we change(increase or decrease)the size of a array variable with out loosing the previous values

1 Answers   DST Global Solutions,


how you update scripts in qtp?

1 Answers  






How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?

0 Answers  


how can we call an external library file in QTP apart from using the Executefile statement..?? is there any other way we can call the external library file in QTP..??

2 Answers   DST Global Solutions,


What are the challenges do we face while testing webbased applcations using the automation tool QTP or any?

1 Answers  


Explain Descriptive Programming Types with Examples?

0 Answers  


What is Step generator in qtp? wt is the use? can u any body explain me? plz

1 Answers  


What is Virtual Object? Plz Explain me with an example?

2 Answers   Ordain Solutions,


Explain the views in the QTP GUI?

0 Answers  


Categories