I need to create Regression Test scripts for a Dot net application.The functionality is the same across all forms in the application.
For example I have form by name Customer, I need to verify the Label Names, state of the button,Type of fields, enter data in all the fields and save the record.
All these information and the data will be available in Customer excel sheet.
similarly for another form Limits, a corresponding excel will be there.
All these Test cases (Label Names, state of the button,Type of fields, enter data in all the fields and save the record) need to be verified for all forms.
Can somebody tell me how to go about creating Test Script for each Test case such that one Test Case runs for all forms.i.e If I run the Label Check Test Script it should check the Label names for all the forms.
What I have thought is...To Create the Test case - Type of fields:-
1)Create Object Repository files for all the forms that needs to tested.
2)Make the QTP to open the Input Excel Sheet(Customer.xls) and read for the " Field Types " cell and store the entire row in an array.
3)Capture the actual and compare it with the array.
4)Do the above 3 steps for the next form.
Am not sure whether this will work if we run for the second form.