I am using watir for web testing. The application on which i am working is based on sharepoint.
Whenever the development team gives us a new build we create a new portal from it.
I have to write test scripts for regression.
To uniquely identify objects such as select list, combo box in the portal I have been using name or ID of the object. The problem I am facing now is that name and ids of these objects are not static across differnt portals. They are autogenerated for each portal and so they are different for different portals.
As per my knowledge these objects in my application can be only identified by name, ids and so this blocks me from running similar scripts on different portals.
I would like to write a generic script which will work on multiple portals but this issue is blocking me.
Kindly suggest a solution for this.
Have you discussed this with your development team?
I often find that the dev team can either offer excellent suggestions, or else can be alerted to something in the environment/coding that they could adjust to make it easier for me to accomplish auto-testing.
I am using rational functional tester for my browser application. Whenever a new build is given the RFT fails to recognize the gui objects. The problem was identified at the properties of the gui objects. the .href value changes whenever the new build is given, since the url is bound to change, What i did was each property in the RFT has a value called as WEIGHT, here i changed it into zero, so that the problem was solved.
If you are using watir tool, then check the uniqueness of the gui objects or the links; see where the difference is between the previous build and new build. Some where around you can capture the problem, Definitely the tool developers would have come across this issue and would have fixed it