I was wondering if anyone had an opinion on the best process of doing a property check.
ie. do you choose to examine the minimum amount of properties (probably the names/text in the fields to validate that the correct data went in) or will you also include all the other hundreds of properties like ID, height, width, style, .net properties etc etc etc etc.
I appreciate that the answer may be that it depends on what you are testing, but essentially, is it better practice to keep as many properties as possible or cut them down to a minimum? (as I notice that some checks can take sometime).
TestPartner 6.3, Visual Tests
Application under test: Client/Server based, C# .Net App with Infragistics Presentation layer
Database: SQL 2000/2005
The answer to that it is entirely subjective. Personally, I like to keep it as comprehensive as possible and only get rid of properties if they get in the way of the check, e.g. the ID changes or the position on the screen varies.
Others may take a minimalist approach.
Depends on what you are trying to accomplish. If your main concern running the test is to verify as much as possible, then the approach I use is probably appropriate. If the main concern is getting through the test as quickly as possible with the minimum number of checks required, then the minimalist approach is probably appropriate.
When I run automation, my concern is coverage, not how long the automation took to run.
Eight years ago I though it would be nice to know and track everything about the objects on the screen. Quickly I found that takes too long and often failed if ran on a different workstation based on may setting to that workstation. I now check what I need to pass that application, but the trick is how the application MAY change over time.
I once checked the text color and background color and all was fine in the land of test; But where was my text. The developers set the background color to the system setting of button face color and that just happened to match the text color on some text, thus not able to see it.
In short getting the properties is good but the trick is what properties and what should you do with the results.