How to ADD Incident in to the Problem related list using ATF

saha23456
Tera Contributor

Hi Team,

 

Can anyone help With ATF Steps

 

How to ADD Incident in to the Problem related list using ATF.

i will able to click Add button.

I don't know how to filter and select 

 

 

Steps:

saha23456_4-1741166972954.png

 

saha23456_0-1741166872265.png

 

saha23456_2-1741166914330.png

 

14 REPLIES 14

Till Click UI action "Add" working.

Please help me with the step how to select specific record in look up window 

 

Steps:

saha23456_4-1741166972954.png

 

saha23456_0-1741166872265.png

 

saha23456_2-1741166914330.png

 

@saha23456 

I don't think you select any specific without using Click Custom Component UI Step

Did you try to see if you are able to find multiple checkboxes?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

yes tried Click Custom Component UI Step but  unable to filter out the records 

sravya chipilla
Tera Contributor

Open the ATF Test Case
Navigate to Automated Test Framework → Test Cases.
Create a new test or open an existing one.
Create a New Step for Opening the Problem Record
Step Type: Open a New Form or Open an Existing Record.
Table: problem (Select an existing problem record or create a new one).
Action: Open Record.
Click the "Add" Button in the Related List (Incidents)
Add a step: Client Test Step → Click a UI Action.
Choose Related List: Incidents.
Select UI Action: "Add" (Button to add incidents).
Filter and Select an Incident in the Lookup Window
Add a step: Set Field Values
Field: Use the search filter to locate a specific Incident.
Select the Incident and click "OK".
Submit or Save the Form
Add a step: Click a UI Action → Click "Save" or "Update".
Validate that the Incident is Linked

Add a step: Field Validation.

Field: "Incidents" (Related List).

Condition: Contains INCXXXXXX

 

Chidanand_VK
Tera Expert

Hi @saha23456 ,

You can do this by anyone of following methods.

Method 1: By 'Record Update' step.

*Using 'Record Query' query the Incident record which you want to link with the Problem created in ATF step.

*Using 'Record Update' update the above Incident by selecting 'Problem' field with value as the Problem created in ATF step.

 

Method 2: By 'Set Field Values' step.

*Using 'Open an Existing Record' open the Incident record which you want to link with the Problem created in ATF step.

*Using 'Set Field Values' update the above Incident by selecting 'Problem' field with value as the Problem created in ATF step.

*Using 'Click a UI Action' click on 'Save' UI Action.

 

 

If my answer helped, please mark it as helpful or accept as the solution.

Regards,

Chidanand