Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - How will you write the vb script in QTP for Data Driven test from Excel sheet for multiple userid and password explain with example?




367
views
asked marvit October 10, 2014 09:52 AM  

How will you write the vb script in QTP for Data Driven test from Excel sheet for multiple userid and password explain with example?


           

1 Answers



 
answered By Hitesh-1047   0  

In the data driven framework, first we have to decide the flow of the data. Below is the code

that will demonstrate this

''=================================================================================================================================== ====================

On Error Resume Next 'Variable declarations used in driver file

SheetPath = "C:\TAFramework\TestData\ERP0391TestData.xls" strActionName = Environment.Value("ActionName")

rc = CaptureInputData() '''Reads environment data from configuration files and loads into environment variables If rc = micFail Then ExitTest SheetPath = gERP055_TestDataPath '''<< <<<

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert