Should objects that are not being tested or referenced by scripts, be removed from SilkTest declarations?
It is a good idea to remove objects that will not be referenced by your scripts. SilkTest is very thorough in the fact that it captures all objects that a tester could possibly be interested in. Although this is a great feature, it is a good idea also to remove any objects from your window declaration that will never be tested. Simplicity is the key.
Other objects that a tester may like to remove might be the parents of objects that they will need to reference. In this situation, they can either :
- Ignore the class of the object (Options->Class Map). This has the potential to be very dangerous. If this option is chosen, make sure that objects that need to be accessed are not children of the ignored class.
- Add the parent object"s tag to the child object"s tag...
Original child tag:
New child tag with parent:
Realise that this step requires a bit of extra work on the part of the tester. However, it can be worth the investment.