creating automatic HR Case using ATF

vish1
Kilo Contributor

Hi,

I have a requirement to create HR Cases using ATF. I am able to set field values for HR Cases expect for HR Service. The problem being HR Service field is a mandatory field and it been referenced. Is there a way to populate this field to run the ATF.

In General, how do we populate Mandatory fields which are referential in nature via ATF. Similar is the problem with creating knowledge article where Knowledge Base needs to be populated.

 

find_real_file.png

 

Thanks,

Vish

4 REPLIES 4

priyankayedluri
ServiceNow Employee
ServiceNow Employee

Hi ,

 Breaking the test steps for each dependent field to be set separately works.They cannot be in one test step.

 find_real_file.png

Thanks,

Priyanka.

Thanks Priyanka for the post.

I did the same, but the problem is that HR Service needs a reference rather than just hard coding the value as General Inquiry.

Please suggest.

Thanks,

Vish

Hi,

 

I did the same.

 

My steps are

1) Impersonate

2) Open a HR CASE FORM

3)Set field values

4) Submit a form

5) Open an Existing Record.

 

In step 5, I am using a Reference to refer to the form that was submitted 

 

First 4 steps work. But the last step throws an error saying that record is not found.

This works for a different table - Incident, but not for any HR table. 

I have not made any changes to the tables.

The problem is only in 5th step. I tried this in London and Madrid, it still doesnt work

vish1
Kilo Contributor

Hi Priyanka,

I was able to now successfully create a new HR Case. It turns out I was using a wrong user id for impersonation which did not have access to create HR case. So this is resolved.

However I face another challenge in creating HR Knowledge articles. The Field Knowledge Base present in the KB Article form is not present in the list of field values. Now how do we go ahead and select a KNowledge Base for a knowledge article?

 

Thanks,

Vish