Consider this, you put in those 70 hours of hard work in creating the QA automation scripts for the new login UI for your app, and after seeing the results for one sprint, your Product Manager decided to change the UI again. While you are happy to do the dev again, but your face becomes red and angsty thinking about creating those QA automation scripts for the 30 most important customer devices all over AGAIN!
Or imagine it’s testing day and you’re looking forward and going about your testing on Sofy, your favorite No-Code QA automation platform, recording more specifically and you accidentally make an in-correct touch on the screen which navigates you to a section that was never a part of your test case. Oops.
Do you have to perform the entire recording process again? Start over? Just to undo one mistake? Not with Sofy, you don’t have to. We are introducing the ability to Edit Test Cases, so when the UI changes happen or you click the wrong buttons now you can just edit your existing tests with a few clicks, and voila they are all set to run on hundreds of devices again in just a few minutes.
How to Edit Test Cases in Sofy
Once you’ve recorded your scenario, make your way to the main portal, click on the ‘Test Case’ (1) option to view all your test cases, and then click on the edit icon (2).
Upon doing so you’ll be seeing our new UX design to make things easier for you and your test case editing efforts. For this instance let’s assume you never wanted to select ‘Estonia’ and instead wanted to select ‘Russia’ for this particular test case. Well, not to worry all you have to do is click on that screen (Step 1)
Once you click on it an Edit modal will open up,
- You can view the information such as the ‘Element ID’ and the ‘Xpath’ itself so you can identify the element Sofy has detected and plans to perform an action on.
- In order to delete the performed action, you can click the trash can icon, resultantly this action will be removed from the test case altogether.
- Clicking on the edit icon will enable you to change the action performed, lets see how
You can however over different elements and select a new element you want to interact with, In this case upon hovering over ‘Russia’ and clicking on it updated the action; make sure you click on the ‘Save’ button after. Moving forward, instead of clicking on ‘Estonia’ the click will be performed on ‘Russia’ during playback.
You can also edit the ‘Xpath’ manually or add a new ‘Xpath’ directly by manipulating the Xpath field which will result in the selection of a new element on the device screen.
The action of selecting ‘Estonia; has now been replaced by the action of clicking ‘Russia’. Once you hit ‘Save Changes’ Sofy will update this change and you’re all set.
4. You can also add an ‘Assert’ during the editing process, once you do another step will be added in the view.
In case you want to maintain separate copies of the test case, keep the original and the edited test case in the test case repository you can click ‘Save As’ which will allow you to store the edited test case by a new name.
This feature also allows you to add static delays, in case of a delayed API response or waiting for an element to load. You can click here and select the time delay you want to add between two steps,
This delay will act as a buffer between two steps and will be performed by Sofy during playback.
As you can see, in just a few clicks you can now maintain and run your QA automation testing forever. No more headache of maintenance, scrambling through tools and platforms, running tests on ad-hoc devices or emulators. Say hello to Sofy!