Forum Discussion
chrisb
10 years agoRegular Contributor
If you need to do the same thing on each screen - verify one or more object exists and nothing else then a data driven test looks like the way to go.
Take a look at a sample of controls in your project and see if there are some properties that are common to all controls but unique enough to be used to locate the object on the screen.
Write one test script that reads in the property values from your data store (spreadsheet?), pairs them with a set of property names and tries to locate them on the screen.
If you have 50 screens and you must test for the presence of each control on each screen then create a list of property values in a worksheet for each program. Of course you will need to aquire those property values from each screen but not having to acquire the property name halves your workload.
Take a look at a sample of controls in your project and see if there are some properties that are common to all controls but unique enough to be used to locate the object on the screen.
Write one test script that reads in the property values from your data store (spreadsheet?), pairs them with a set of property names and tries to locate them on the screen.
If you have 50 screens and you must test for the presence of each control on each screen then create a list of property values in a worksheet for each program. Of course you will need to aquire those property values from each screen but not having to acquire the property name halves your workload.
Related Content
Recent Discussions
- 4 hours agoMW_Didata