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

Hi all. Could anyone tell me the difference between an Action and a Function in QTP. Thanks in advance and Merry Christmas.

3 Answers   IBM,


If the weblist is identified as webelement,and by clicking on webelement if the values are displayed,and if the values the values also identified as webelement.then how to fetch the values through script?

0 Answers  


what the difference between shared repository and per action repository?

0 Answers  


What is the use of Accessibility check point?

3 Answers  


Can we Test Welcome Screens and Process Images with QTP

0 Answers  






Hi All I'm new in QTP. I'm trying to make test cases for login on Flight.exe . I have parametrise the agentname and password field. So wen wromg agent name or password is entered it show a dialog box with proper message(Like: "Wrong Password" or :Please enter Password" etc) and OK button. I have created If else block. Now my problem is i want to make checkpoint on error message Dialog box. But each time i create a checkpoint it shows same text message. So how i can check that message is there or not.

2 Answers  


hello all i need some good sites or blogs which give info abt vb script with examples n real time scenarios.just like tutorials as i m new to qtp n vbscripting. its urgenttt

2 Answers  


Why u don’t like recording the script and writing the script

3 Answers   Wipro,


How to find RAM size by using QTP?

2 Answers   IBM,


How to do call a output parameter from one action to another action??/

0 Answers   TCS,


How many types of parameters are available in quicktest professional?

0 Answers  


how to parameterizing values from an excel sheet in Quick test professional?

1 Answers  


Categories