You can do this in many ways. I know the two ways to achieve this concept.
1. Store all objects in any collection API , and iterate to obtain exact object in remote run.
2. Create one class file where you can write the getter and setter method for every object and call these properties against your test scripts.
Actually use of this provides a better object repository system which can be easily manageable.
[/ QUOTE ]
1st sorry for my naive knowledge about Selenium & the languages supported by it. Even working on QTP for long, I am still yet to learn true OOP. Is there any possibility if you can please post a very short code snippet of the 2 things mentioned in the post. I exactly did the same concept by storing object repository in excel sheet and using descriptive programming (~vbscript) read the repository to access & execute actions on the objects in the app under test.
i was able to do this one in junit3 , by creating a separate class and allocating assertions within the try catch block .
currently i am facing difficulty that it is not asserting as expected , when i copy the same code within my main test class it is asserting fine ... when i put that code into a separate class object it is not verifying , even object exist it throws a error. any suggestions on this ...
i appreciate if u can send a useful link regarding this ...