13 years ago
How to specify alias names in excel sheet and use it in a script routine
I want to perform various click and data entry operations through various flows for the same combinations of objects.
Example:-
There are 3 edit boxes "First Name, "Last Name", "Phone Number" and
there are 3 buttons "Submit", "Cancel", "Send to pending"
Now, I have to perform various tests using the same by specifying the flow of the tests in an excel file.
Flows:-
1) Action : Insert only First Name and click on Submit.
Expected result : System should display error
2) Action : Insert only First Name and click on Cancel.
Expected result : System should show a message that the edits wont be saved
3) Action : Insert only First Name and click on Send to Pending.
Expected result : System should send the record to pending and give a reference number.
4) Action : Insert only First Name and Last Name and click on Submit.
Expected result : System should display error
5) Many more combinations like the above
In order to atomate this,
1) I will create aliases for the required objects in TestComplete
2) Create an excel file with fields "Alias Name", "Action", "Value"
3) Update excel file with values "FirstName", "InsertText", "Maya"
"Submit", "Click", ""
" "DialogBox", "VerifyValue", "All mandatory fields are not entered"
Please let me know how to assign the aliases programatically through a script routine. I have done the above implementation using QTP using Description Object. Please let me know how to do this in Test Complete
Example:-
There are 3 edit boxes "First Name, "Last Name", "Phone Number" and
there are 3 buttons "Submit", "Cancel", "Send to pending"
Now, I have to perform various tests using the same by specifying the flow of the tests in an excel file.
Flows:-
1) Action : Insert only First Name and click on Submit.
Expected result : System should display error
2) Action : Insert only First Name and click on Cancel.
Expected result : System should show a message that the edits wont be saved
3) Action : Insert only First Name and click on Send to Pending.
Expected result : System should send the record to pending and give a reference number.
4) Action : Insert only First Name and Last Name and click on Submit.
Expected result : System should display error
5) Many more combinations like the above
In order to atomate this,
1) I will create aliases for the required objects in TestComplete
2) Create an excel file with fields "Alias Name", "Action", "Value"
3) Update excel file with values "FirstName", "InsertText", "Maya"
"Submit", "Click", ""
" "DialogBox", "VerifyValue", "All mandatory fields are not entered"
Please let me know how to assign the aliases programatically through a script routine. I have done the above implementation using QTP using Description Object. Please let me know how to do this in Test Complete