Quality Testing

Quality is delighting customers

Which one is the best for running the same test case multiple times? Reusable Actions (or) Functions

Hi,

For running the same test case multiple times, which one is the best? Reusable Actions (or) Functions

Regards,
Rajesh

Views: 88

Reply to This

Replies to This Discussion

Hi Rajesh Kumar,

The benefits of using function /Reusable action is wary depends on the Scenario,
For Example:
You want to repeat certain script, with different inputs then you may use function and call that function in your script by passing the different i/p as parameters.
here benefit is,
Very quick response from function i.e. Fast Execution.
but you cannot use all the resource of QTP scripting technique inside the functions.

You want to repeat certain script, with different inputs then you may use reusable action.
here benefit is,
the script may use objects thats already with Action local repository,
Action may have script to run the Check points ,output values and other all benefits of QTP will be here.

Select which one is best for your Test Execution Scenario..
I use a simple 'for' loop...

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2020   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service