I want to approve from the list view can i perform this through ATF

kranthi2
Tera Expert

Hi 

I want to approve from the list view can i perform this through ATF.

I have created a ATF from the portal once it is created there 2 Site Access Request Entries will create as mentioned in the below screenshot:

 

kranthi2_0-1717413777819.png

 

kranthi2_1-1717413948583.png

 

Can i perform the bulk approval from the mentioned above screenshot by using the ATF 

 

do we have any ATF test step to perform such kind of Bulk approve from the list. If yes, please provide me the test step in ATF.

 

Thanks,

 

 

 

 

8 REPLIES 8

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @kranthi2 

 

https://www.servicenow.com/community/now-platform-forum/enable-dynamic-multiple-approval-in-atf-for-...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG 

I don't find the proper resolution for the same.

 

Thanks

@Dr Atul G- LNG 

Any possibility can i approve from the actions on selected rows which is mentioned in the below:

 

kranthi2_1-1717414980554.png

 

Because even if i impersonate still i don't have any option to approve from the form view.

Must and should approve from list itself.

 

Thanks,

 

 

 

Vaishnavi Lathk
Mega Sage
Mega Sage

Hello,

Step-by-Step Guide to Approve from List View Using ATF

  1. Navigate to ATF: Go to System Applications > Automated Test Framework > Tests.

  2. Create a New Test: Click New to create a new test and provide a name for your test.

  3. Add Test Steps: Add the necessary steps to your test. The key steps will be opening the list view, selecting the record, and performing the approval action.

Example Test Steps

Step 1: Open a New Form

  1. Action: Open a New Form
    • Table: Your Table (e.g., Incident)
    • Record: Leave empty if you want to create a new record.

Step 2: Set Field Values

  1. Action: Set Field Values
    • Table: Your Table
    • Fields: Set the necessary fields to create a record that needs approval.

Step 3: Submit Form

  1. Action: Submit a Record
    • Table: Your Table

Step 4: Open a List

  1. Action: Open a List
    • Table: Your Table
    • View: Select the appropriate view (e.g., Default view).

Step 5: Impersonate a User

  1. Action: Impersonate User
    • User: Select the user who has the authority to approve the record.

Step 6: Select Record in List

  1. Action: Open a Record from a List
    • Table: Your Table
    • Filter: Add a filter to find the specific record you created in step 2 (e.g., Number = INC0010001).

Step 7: Click UI Action

  1. Action: Click a UI Action
    • UI Action: Select the UI Action for approval (e.g., Approve).

Example of Setting Up the Test Steps

  1. Create a new test:

    • Navigate to System Applications > Automated Test Framework > Tests.
    • Click New and provide a name for your test.
  2. Add test steps:

    • Click Add Test Step and configure each step as described.

Add a Test Step: Open a New Form

  • Step Configuration:
    • Action: Open a New Form
    • Table: incident (or your specific table)
    • View: Default view (or your specific view)

Add a Test Step: Set Field Values

  • Step Configuration:
    • Action: Set Field Values
    • Table: incident
    • Fields: short_description = "Test Incident for Approval", priority = "3"

Add a Test Step: Submit Form

  • Step Configuration:
    • Action: Submit a Record
    • Table: incident

Add a Test Step: Open a List

  • Step Configuration:
    • Action: Open a List
    • Table: incident
    • View: Default view (or your specific view)

Add a Test Step: Impersonate User

  • Step Configuration:
    • Action: Impersonate User
    • User: Approver (a user with approval rights)

Add a Test Step: Open a Record from a List

  • Step Configuration:
    • Action: Open a Record from a List
    • Table: incident
    • Filter: short_description = Test Incident for Approval

Add a Test Step: Click UI Action

  • Step Configuration:
    • Action: Click a UI Action
    • UI Action: Approve