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

How you can decide which type of object repository you have to use?

701


Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly

1251


What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?

571


what is stepin & stepout?

1420


What will be happen if i load object repository at run time, but it has already associated.

1258






Is it possible to use two instances of UFT on the same machine? If not why?

599


how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods

1379


I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that

1395


How many types of run modes are there in qtp?

586


after initiating one project for testing, when exacltly QTP tester role starts?

1397


I want to know can we integrate visual source safe tool with QTP and QC for our version controlling process? WE know QTP and QC 10.0 version is having the version control inbuilt in it but I want to know the merits and demerits of the inbuilt version control tool and the visual source safe tool using QTP and QC.

2467


What are the benefits of qtp?

554


wht type of User defined functions or Java Releated functions Do we write in VB scripting

1378


I am having major problems with some DB Table Checkpoints I add to my script. I 35 web based applications recorded and each has DB Table Checkpoints insert but only 1 script isn't recognizing the DB Table Checkpoints for some reason. I've checked the DB connections and the info in the Library Functions and still only this one script out of 35 doesn't recognize the DB Table Checkpoints. Can someone please help me figure out why only this one script out of 35 that's hitting the same database is having a problem.

1741


when to start the automation?

1475