04-04-2011, 01:02 PM
I am learning qtp.I am doing practice of actions.I have doubt given as below
I create two tests i.e. test1 and test2
test1 contains two actions i.e. login (non reusable action) and logout (reusable action)
test2 contains booking order action
Now i make a call to copy of non reusable login action from test1 in test2 and also make a call to existing reusable logout action from test1 in test2.It runs successfully.
Now my question (doubt) is this:I have read somewhere that non reusable action can not be use in other tests.
But here i have make a call to copy of non reusable login action from test1 into test2?How is it possible to use non reusable action of test1 in other test2.Please clear my doubt.
I create two tests i.e. test1 and test2
test1 contains two actions i.e. login (non reusable action) and logout (reusable action)
test2 contains booking order action
Now i make a call to copy of non reusable login action from test1 in test2 and also make a call to existing reusable logout action from test1 in test2.It runs successfully.
Now my question (doubt) is this:I have read somewhere that non reusable action can not be use in other tests.
But here i have make a call to copy of non reusable login action from test1 into test2?How is it possible to use non reusable action of test1 in other test2.Please clear my doubt.