-->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 many maximum number of virtual users we can create?

0 Answers  


What does VBS file contain..? what is VBS file.?

4 Answers  


How to use regular expression in descriptive programming?

0 Answers  


Write a function which returns the addition of two numbers. give the value of the numbers outside the function.

3 Answers   SAP Labs,


what testing activities u may want to automate in a project?

2 Answers  






Hi, I want to write the script for a webpage. But i didn't added the properties of the objects to the object repository. Without adding the object properties to the object repository, how to write the script. When i am writing the script, Let us say i typed as Browser (""). after selecting ".", if the object is added to the object repository it will display atomatically. But in my case it is not as i didn't added the object properties. How to proceed further in the above mentioned case to write the script manually. Pls let me know if you didn't understand the question.

3 Answers  


How to see the screens after running test in QTP?

1 Answers  


Write a script to delete the a specific row (say 3rd) in a webtable.

0 Answers  


What is Terminal Emulators”? Why we used in QTP.? How he works on QTP.

1 Answers  


Can any suggest me what is exposure testing?

0 Answers   Value Labs,


When we try to use test run option "Run from Step", the browser is not launching automatically why?

1 Answers  


How to merge the two object repositories

3 Answers   Wipro,


Categories