I wanted to create Data Driven test for login page
(loginname,password). Password is same for all the
loginnames.
I recorded the script for one user. I mentioned all the
user names in the global excel sheet with the column name
as "Loginname". I mentioned 5 loginnames. I selected tools-
>datadriver and select loginname. Select parameterize and
select parameter all option.Changed the parameter name
to "loginname" which i mentioned in the global excel sheet.
I executed the script. For the users 2 and 4 only, the
script is failing... can anybody explain why the script is
failing for users 2 and 4.

Answers were Sorted based on User's Feedback



I wanted to create Data Driven test for login page (loginname,password). Password is same for all ..

Answer / raju

HI can u provide some more info on this...
If length of the username is less than 4 chars then we get
the error message.
That may be one case....pls verify and let me know..

Is This Answer Correct ?    0 Yes 0 No

I wanted to create Data Driven test for login page (loginname,password). Password is same for all ..

Answer / less than you

From best of my sense you no need to go for "for All"
options because in that case password will also be
parameterize which is not intended and click on next till
the finish. if still you are facing issue I will be
required more details.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

what is the extension of action script template?

7 Answers   Capco,


How to watch currnet value of an object like OK buton or edit box with "Agent Name:" label. in watch expression tab?

2 Answers   Cap Gemini,


what is the script(qtp) to export and import the datas from MSaccess to Excel sheet.if anybody know plz tell me.

3 Answers  


What is a Patch in QTP?

0 Answers  


What is smart identification?

2 Answers   Ordain Solutions,






Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji

0 Answers  


Hi, i want download attached files in test plan area from QC to local drive in my system using QTP script. Please help me

3 Answers  


How you test the object which is dynamically changes its location?

7 Answers   Wipro,


I have the script like this: Browser("Login").Page ("Application").Frame("ScopeFrame").Link("DC3701737 (Active)").Click in which the value "DC3701737" will get changed and i have to use the same value in so many places. I got the value "DC3701737" in to a variable(Say x). Now if i want to pass the variable in to link object .. how? Browser("Login").Page("Application").Frame ("ScopeFrame").Link(x).Click Is it possible to pass any variable into a link object .. so, that the application will select that link automatically? If ur not able to understand, pls let me know.

2 Answers   ABC,


Hi I have created a table in the MS access database. I want to access the table in this database through QTP. The code is given below. The code is not working.The following error is displayed "Data source name not found and no default driver specified". Any one can correct the code. Thanks in advance. Dim dbconnection, rs Dim ca, sname Set dbconnection = createobject("ADODB.Connection") Set rs = createobject("ADODB.Recordset") dbconnection.open "DSN = MS Access Database","", "" rs.open "select * from Research", dbconnection rs.movefirst If rs.EOF <> True AND rs.BOF<> True then ca = rs("order_number") sname = rs("customer_number") rs.movenext msgbox ca msgbox sname End If

1 Answers  


in login module login button chage regularly(means login button change to submit button).What is the code for it.

3 Answers  


1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?

0 Answers  


Categories