data validation in data driven testing
Posted: Sat May 23, 2015 12:49 am
Hi Folks,
I am thinking about writing class library for validating data from data source before setting the value to data fields. For example, validate a cellvalue for a dropdown list is actually an available option in the dropdown. This applies to radio button/check box options too. I think using database storing option values won't make sense here.
I can always use the parent xpath and find either its children or descendants to make sure that the inntertext from one of the option values matches the cellValue from data source.
Can you guys provide some comments/ideas and suggestion for that?
Thanks,
Betty
I am thinking about writing class library for validating data from data source before setting the value to data fields. For example, validate a cellvalue for a dropdown list is actually an available option in the dropdown. This applies to radio button/check box options too. I think using database storing option values won't make sense here.
I can always use the parent xpath and find either its children or descendants to make sure that the inntertext from one of the option values matches the cellValue from data source.
Can you guys provide some comments/ideas and suggestion for that?
Thanks,
Betty