Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Need help in testing a scenario using ATF

Som4
Tera Contributor

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?

 

3 REPLIES 3

Rampriya-S
Kilo Sage
Kilo Sage

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!

Best,
Rampriya S

Som4
Tera Contributor

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?

@Som4 

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.

Best,
Rampriya S