How we can call the script from another script in QTP, Quick Test Professional Calling Test Script



How we can call the script from another script in QTP, Quick Test Professional Calling Test Script


This is main generic question that can we call QTP test from another test using scripting. Assume 4 tests are there and you want to call all these tests from or in main script. So is it possible or not, Let's discuss about it → 
 
Answer will be YES: we can call multiple four or more than 4 scripts in our tests . Now questions is that what we need to do for that.


First we will required to adjust the Actions in the related corresponding scripts for Re-usable.
Now from the Destination, The scripts can or make calls to these re-usable actions.


SO From Main Script You can call any numbers of Test Scripts.
Just you need to to that whatever scripts is required to call that will need to change Action in all those scripts default to Re-Usable actions.


Finally we can say that Any numbers of actions or tests can be call from any test just we required to make them External or Re-Usable actions.



The Syntax for calling the actions will be as follows:



RunAction "ActionName[MyTestName]"

Ex: RunAction "Action2[MySampleTest]"




















Android Install Apps to SD Card Default
Developer vs Tester a fake competition


QTP TESTING STEPS How to Record a QTP Script






No comments:

Post a Comment

Popular Posts