ATF Creation

ShraddhaMore
Tera Contributor

Hi Everyone, can anyone help me with the ATF creation for below mentioned requirement:

I've implemented up to 3rd step but getting error while checking email logs.

 

Go to service catalog and open DevSecops request

Verify all the mandatory fields are enforced

Fill all the required fields and submit

Go to email logs and verify that email is sent to approver.

Open RITM and approve the approval

Go to email logs and verify that 'DevSecOps Ticket-approved request' is sent

Check the RITM status to validate it is completed

 

Thanks in advance!

1 ACCEPTED SOLUTION

Ujjwal019
Tera Guru

 

Hi Shraddha, 

Follow the steps below to achieve your requirements:

  1. Open a Service Portal page
  2. Open a Catalog Item (SP)
  3. Validate Variable Values (SP)
  4. Validate State Validation (SP)
  5. Set Variable Values (SP)
  6. Submit a Form (SP)
  7. Validate Outbound Email

Or you can also follow the steps below for a clear visualization of each step. To validate if an email is getting triggered, follow these steps:

  1. Impersonate a user:

Email ATF.png

  1. For approving the request:

    1. First, impersonate the user.
    2. Navigate to the "My Approvals" module (or the relevant table for approvals).
    3. Record query the approval with respect to the RITM and apply some filter conditions.
    4. Click an UI action: Approve.
  2. Go to email logs and verify that the 'DevSecOps Ticket-approved request' email is sent. Refer to the above screenshot for detailed steps or you can use 'Validate Outbound Email' test step.

  3. Record Query on RITM and Open an Existing Record (RITM): Validate the state of the RITM.

Please mark my answer helpful if it helps you and accept it as a solution to assist the ServiceNow community.

 

Thanks and Regards,

Ujjwal Sharma

View solution in original post

1 REPLY 1

Ujjwal019
Tera Guru

 

Hi Shraddha, 

Follow the steps below to achieve your requirements:

  1. Open a Service Portal page
  2. Open a Catalog Item (SP)
  3. Validate Variable Values (SP)
  4. Validate State Validation (SP)
  5. Set Variable Values (SP)
  6. Submit a Form (SP)
  7. Validate Outbound Email

Or you can also follow the steps below for a clear visualization of each step. To validate if an email is getting triggered, follow these steps:

  1. Impersonate a user:

Email ATF.png

  1. For approving the request:

    1. First, impersonate the user.
    2. Navigate to the "My Approvals" module (or the relevant table for approvals).
    3. Record query the approval with respect to the RITM and apply some filter conditions.
    4. Click an UI action: Approve.
  2. Go to email logs and verify that the 'DevSecOps Ticket-approved request' email is sent. Refer to the above screenshot for detailed steps or you can use 'Validate Outbound Email' test step.

  3. Record Query on RITM and Open an Existing Record (RITM): Validate the state of the RITM.

Please mark my answer helpful if it helps you and accept it as a solution to assist the ServiceNow community.

 

Thanks and Regards,

Ujjwal Sharma