I'm new to automated testing and am writing a simple smoke test to add a record, update that record and then delete that record. The problem is that to update the record or delete the record, the application uses the record's internal key and each time I run the ADD test a new internal key is generated so the UPDATE and DELETE tests fail as they reference the internal key of the record that was added when the test was recorded. The record to be updated or deleted is in devexpress grid. The test searches for the record via its external name. To update, I click on a link in the grid to open a pop-up to Edit the selected record. To delete, I click on a button in the grid which brings up a pop-up to choose a specific delete option. The URLs for the pop-up contain the internal key so the connect to pop-up steps are failing.
I have access to the internal key in the UI once the record is created. Is there anyway to read that value during the test and pass it to another step that needs to use it?
I have access to the internal key in the UI once the record is created. Is there anyway to read that value during the test and pass it to another step that needs to use it?