What is Per action and Shared recording?

Give advantages and disadvantages of Per action and Shared ?

Editorial / Best Answer

Answered by: srinivas potnuru

  • Jun 9th, 2006


Hi,

Both Per action and shared has its own advantages and disadvantages.

Per Action:

  When we  Record by setting the repository to Per action each and every action will have its own repository. So each action will be independent with the other action w.r.t the Object Repository.

Shared:

When we record by setting the Object Repository to shared mode, all the actions in that particular Test can use the same Shared Object Repository . i.e there will be only one repository which contains all the objects that are required across all the actions.

I am giving this as per my Knowledge there may be some more as well...

TypeAdvantagesDisadvantages
PerActionThe actions can be reused and as the repositories are individual there wont be any problem with the Objects.If there are few objects that are being used in more than one action then there will be a duplicate occurence of the object in the object Repository as the object repositories are different for different actions
SharedThere will be only one Object Repository and can be maintained easily
Shared

Even if there is a need of using same object in more than one action, then there will be only one occurrence of the Object in the Object Repository.As the Object Repository is shared.

          

Showing Answers 1 - 1 of 1 Answers

srinivas potnuru

  • Jun 9th, 2006
 

Hi,

Both Per action and shared has its own advantages and disadvantages.

Per Action:

  When we  Record by setting the repository to Per action each and every action will have its own repository. So each action will be independent with the other action w.r.t the Object Repository.

Shared:

When we record by setting the Object Repository to shared mode, all the actions in that particular Test can use the same Shared Object Repository . i.e there will be only one repository which contains all the objects that are required across all the actions.

I am giving this as per my Knowledge there may be some more as well...

TypeAdvantagesDisadvantages
PerActionThe actions can be reused and as the repositories are individual there wont be any problem with the Objects.If there are few objects that are being used in more than one action then there will be a duplicate occurence of the object in the object Repository as the object repositories are different for different actions
SharedThere will be only one Object Repository and can be maintained easily
Shared

Even if there is a need of using same object in more than one action, then there will be only one occurrence of the Object in the Object Repository.As the Object Repository is shared.

          

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions