Need help in testing a scenario using ATF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2024 08:19 AM
Hi - I am unable to test below scenario using ATF. Can someone please help?
Scenario - Once an email is received in Servicenow, a ticket is created and body of the email is pasted in the description of the ticket. There is a number in the description which is automatically extracted and populated in another field on the same ticket.
I want to automate this scenario. I am able to create a ticket but how to test whether the number which is in the description of the case is populated in another field and the value is same?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2024 08:33 AM
Hi @Som4 ,
After pasting the email body into the description, then add the step 'Submit a form.' In the next step, select 'Open an existing form' to reopen the submitted form. Then, use 'Field value validation' to test the populated field.
Please mark as helpful if the solution helped you!
Rampriya S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2024 09:26 PM
Hi Rampriya - Thank you for your response.
Email body is automatically pasted in the description when ticket is created. In the email body, there is a number which gets saved in the description and from the description it is automatically copied to another field.
How to test whether the number which is in the description of the case is populated in another field and the value is same?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2024 06:59 AM
As an alternative method of validation, you can use the 'Record Query' step. Query the record by matching its description with another field.
Please mark as helpful if the solution helped you.
Rampriya S