I am working as Test Enigneer.In our company we are doing manual testing .I am keen to learn QTP tool...I download QTP from net..while conducting data driven testing i am facing problemplease explain me how to paramaterize ,how to perform data driven testing

Showing Answers 1 - 4 of 4 Answers

Mostafa

  • Mar 24th, 2006
 

Fill a field say XX with your input data in global sheet table that you want to parameterize. Global Sheet Table located at the left bottom corner if you have QTP 8.2.

Click on Tools on menu bar and choose Data Driver

Choose the field you want to parameterize

Click on Parameterize Button

Click on Next and go with default value unless you know what are you doing.

Click on parameter Option button and point Global Sheet and the field XX.

Save and run, it should be fine.

 

Note: I would assume you have generated your script prior to Data Driven Test

 

Cheers

  Was this answer useful?  Yes

venki

  • Apr 10th, 2006
 

Hi thnks for  this,

can i cite me wht r the MNC COMPANYS USING  QTP FOR TESTINFG

  Was this answer useful?  Yes

venkata ramana

  • Jul 27th, 2007
 

You can do data driven testing using this script,
Here I am passing value fron text file for login window,
 and i am printing result in xls file

Set fso=createobject("scripting.filesystemobject")
Set f1=fso.createtextfile("c://results.txt",2,true)
Set fso=createobject("scripting.filesystemobject")
set g=fso.opentextfile("c://user.txt",1,true)
While g.atendofline <> true
 n=g.readline

Browser("FREDi").Page("FREDi").WebEdit("UserName").Set n
Browser("FREDi").Page("FREDi").WebEdit("Password").SetSecure "46a9dcc0714639460dcfce202536969677a4"
Browser("FREDi").Page("FREDi").Image("ImageButton2").Click 37,10
If  Browser("FREDi").Page("FREDi").Exist Then
 f1.writeline("step,Logindetails is pass")
 else
 f1.writeline("step2.Logindetailsis fail")
End If

wend






  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions