04-05-2011, 06:29 PM
Manish -
He is never going to find the water in the desert. If you are open to listen, then i would say, you must give leverage to a person who has declared that he is "learning QTP" and is intrested to clear his doubts which he has accured over the internet from faksters posting answers which they dream of. In this case, i would request you, to have provided a bit more information which would be as good as taking the horse to the pond. Well, if you reached this far, and you find this offensive, please use the undo feature on your brain and ignore me .
Pradeep -
Very intresting observation. I am sorry, i have been held up and hence had no time to look in and reply. I must apologize, you havent recieved a correct reply, although manish really showed you the door it was left to you to open and explore further.
What you have read is partially correct and some of it is un-true. You can make a call to copy of an action for an non-reusable action in a different test. That statement is true. But have you observed what happens after you have made the call and the action appears in your test? Let us know your observations then.
From what QTP has to say, this is what they mean with definitions for the various action names,
The definitions are self-explanatory. In short, if you have Test1->Non-Reusable ACtion1 and you make a call to this Non-Reusable Action1 on to Test2, then the properties of "Non-Reusable Action1" in Test2 is changed to an readonly reusable action. The reason is, because you have forcibly called this action to be a copy of the action which the action thinks that you want to reuse this in the test2 multiple times. However, in Test1 the property of the "Non-Reusable Action1" remains as Non-Reusable and can be called only once in the same test where it is stored.
If it is still confusing or you havent found the way yet, i suggest you read the section "Working with actions" on QTP help as suggested by manish and pick up specific doubts and put it across, which we will be very much happy to answer.
He is never going to find the water in the desert. If you are open to listen, then i would say, you must give leverage to a person who has declared that he is "learning QTP" and is intrested to clear his doubts which he has accured over the internet from faksters posting answers which they dream of. In this case, i would request you, to have provided a bit more information which would be as good as taking the horse to the pond. Well, if you reached this far, and you find this offensive, please use the undo feature on your brain and ignore me .
Pradeep -
Very intresting observation. I am sorry, i have been held up and hence had no time to look in and reply. I must apologize, you havent recieved a correct reply, although manish really showed you the door it was left to you to open and explore further.
What you have read is partially correct and some of it is un-true. You can make a call to copy of an action for an non-reusable action in a different test. That statement is true. But have you observed what happens after you have made the call and the action appears in your test? Let us know your observations then.
From what QTP has to say, this is what they mean with definitions for the various action names,
Code:
Reusable action: An action that can be called multiple times by the test with which it is stored (the local test), as well as by other tests.
Non-reusable action : An action that can be called only in the test with which it is stored, and can be called only once.
External action : A reusable action stored with another test. External actions are read-only in the calling test, but you can choose to use a local, editable copy of the Data Table information for the external action
The definitions are self-explanatory. In short, if you have Test1->Non-Reusable ACtion1 and you make a call to this Non-Reusable Action1 on to Test2, then the properties of "Non-Reusable Action1" in Test2 is changed to an readonly reusable action. The reason is, because you have forcibly called this action to be a copy of the action which the action thinks that you want to reuse this in the test2 multiple times. However, in Test1 the property of the "Non-Reusable Action1" remains as Non-Reusable and can be called only once in the same test where it is stored.
If it is still confusing or you havent found the way yet, i suggest you read the section "Working with actions" on QTP help as suggested by manish and pick up specific doubts and put it across, which we will be very much happy to answer.
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.