04-01-2011, 12:43 PM
Suba,
You can columnize the excel to have action names and the rows to contain data respective to the actions.
Let me potray the logic,
1. Loop through the sheet to pick the values.
2. Create Reusable actions with Input and output action parameters.
3. feed the values from the datatable on to the input action parameters.
Your Test might look something similar to this,
Or you can perform the same on a case basis controlling the execution of the action.
It is very rustic at the moment. Please spend sometime to enhance it and if you face issues we can chisel in then.[/code]
You can columnize the excel to have action names and the rows to contain data respective to the actions.
Let me potray the logic,
1. Loop through the sheet to pick the values.
2. Create Reusable actions with Input and output action parameters.
3. feed the values from the datatable on to the input action parameters.
Your Test might look something similar to this,
Code:
For x=1 to totalrows
Runaction "ACtionName", Param1, Param2 etc
Runaction "ACtionName", Param1, Param2 etc
Runaction "ACtionName", Param1, Param2 etc
Next
Or you can perform the same on a case basis controlling the execution of the action.
Code:
Select(Case)
Case : ACtionDriver
Runaction "ACtionName", Param1, Param2 etc
Case: ACtionInsurance
Runaction "ACtionName", Param1, Param2 etc
End Select
It is very rustic at the moment. Please spend sometime to enhance it and if you face issues we can chisel in then.[/code]
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.