Creating an ATF to Resolved an Incident - Issues With UI Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2020 08:23 AM
So, I am creating an ATF Test where I submit an Incident via the Service Portal, and then also pick it up on the back-end and work it through to completion in ServiceNow. I am almost through it, but am having issues with the last step.
When working it ServiceNow, it should be populating the Assigned To and Work Notes field, and then clicking the "Resolve" Incident UI Action button. Here is what my steps look like:
The first nine steps work fine, but I am getting an error on the last step. The error says:
FAILURE: Cannot submit 'incident' form. There is no form currently open. See screenshot
That is odd, because step 7 opens the form, and I am able to succressfully update it in step 9. So I thought maybe I need to re-open it, so I tried re-opening it by repeating step 7 again before step 10. But when I tried doing that, my last step still failed, but this time the error said:
FAILURE: Browser failed to submit 'incident' form to server when clicking UI Action 'Resolve Incident'. See screenshot
Any idea on what I am doing wrong? How can I get it to submit the Incident by clicking on the "Resolve Incident" button?
Thanks.
- Labels:
-
Automated Test Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2020 07:21 PM
Hi,
Can you add field state validation after step 8. this state validation will check for 2 mandatory fields. then you try adding set field values
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2020 05:37 AM
That does not seem to be working. I still get that same error. If you look at the error I printed in the previous screen, you can see in the header how it says "Test Step" and then under it it says "New Record". It then lists all the fields in the record.
So, when I select "Set Field Values", it is acting like I am trying to fill out a NEW record, not updating an existing one, even though we opened an existing record back in step 7.
Unlike other steps/actions, this "Set Field Values, does not have any option within it to select which record you want to work on. So perhaps you cannot use this to update existing records, but can only use it to enter new records.
Are you able to use to edit existing records?