Vaishnavi Lathk
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