Use TestComplete to verify all of the fields in a chart are filled (Keyword solution preferred).
- 5 years ago
Hi,
There is no generic solution, but you might appear to be more or less lucky depending on how testable your tested application is.
For example, assuming that all tested fields are children of a chart table and have 'fld' as a prefix for their ids (e.g. fldModelNo, fldSize, ...), then you will be able to find all of them, iterate through and check if the given field is empty or not.
E.g.:
var arFields = <chartTable>.FindAllChildren('id', 'fld*', 5).toArray();
for (var i = 0; i < arFields.length; i++)
if (arFields[i].Value == '')
Log.Warning(...);
- 5 years ago
Alex - Thank you for responding, and sorry for the late reply. Work followed by a bit of time off.
I will review the solution you provided later this week, and let you know how it goes.
Again, Thanks.
Rich