Needs to automate ATF for Creation of HR case from sn_hr_core_case_creation

iztgokul
Tera Contributor

Hi,

I am using Automated Test Framework to create tests for HR. 

The 'Open a New Form' Test Step points to a table, and i can select sn_hr_core_case - this creates a Core case.

However, now we use the newer Create new case option - sn_hr_core_case_creation.do - whereby search for employee, and once Employee is selected, the Employee information and Case Details appear, whereby the COE and HR Service are selected and we can then Create Case.

I'd like ATF to call sn_hr_core_case_creation.do and be able to set up tests starting from the Case Creation page. 


Thanks in advance
Gokul Raj M

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@iztgokul 

that is a case creation page and is an UI page.

You will have to open that UI page and then use Custom UI steps to select the fields there

Remember using custom UI step doesn't always guarantee you will find those components.

Even if you find those, no guarantee that it will work later as it uses HTML elements on page.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

We are creating the HR case from sn_hr_core_case_creation. But I can't be able to see this in open a form. If it will be not found there. Can someone tell me where I can automate this in the ATF

Regards,

Gokul Raj M

@iztgokul  - If you have any category where this HR Case creation is available then Use Custom UI Step i.e. Click Component (Custom UI) which will navigate you to the desired form

@iztgokul 

that's what I informed, it's not a normal form but a UI page

Did you check my earlier response?

AnkurBawiskar_0-1752675660255.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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