09-06-2010, 02:48 PM
Yes you can actually do that , your intention might be to create a framework of your own...
Let's think of a rough design perspective. Let's create a library of objects which can access SAP GUI elements and this library can be called within QTP as an Add in( i suppose that is what SAP add in within QTP does) . So your library can have listener objects which are capable of registering the GUI object actions and perform validation steps , so i would say for each family of objects you can create a library .. But there is huge overhead involved when it comes to maintaining this library as it frequent changes to the object definitions could make your library invalid , hence QTP was probably built as a GUI framework with functionalities to update the object repositories dynamically at runtime when the object changes , however to test some standard object you can follow your approach.
Regards.
Balaji
Let's think of a rough design perspective. Let's create a library of objects which can access SAP GUI elements and this library can be called within QTP as an Add in( i suppose that is what SAP add in within QTP does) . So your library can have listener objects which are capable of registering the GUI object actions and perform validation steps , so i would say for each family of objects you can create a library .. But there is huge overhead involved when it comes to maintaining this library as it frequent changes to the object definitions could make your library invalid , hence QTP was probably built as a GUI framework with functionalities to update the object repositories dynamically at runtime when the object changes , however to test some standard object you can follow your approach.
Regards.
Balaji