ATF to test incident SLA

ShuRiseUp2023
Tera Expert

HI Community

I'm trying to test incident SLAs using ATF. We are asked to create 294 SLAs for incident that is from BMC system. It's very time consuming to test each SLAs. So I'm trying to use ATF to test. Now I have created a Test and added test steps as 1, impersonate user, 2, open a new form, 3 set Field values, 4, Submit a Form, 5, ......。 The test always failed at step 4 when submitting the incident.  with the error message: This step failed because the client error 'Invalid query string received:null: java.lang.NullPointerException: Invalid query string received:null: java.lang.NullPointerException: Invalid query string received:null: java.lang.NullPointerException: Invalid query string received:null: java.lang.NullPointerException: Invalid query string received:null: java.lang.NullPointerException: ' was dected on the page being tested. See failing Test logs. ......

 

Please give some insights why the error occurs, how to solve this error. It's simply to submit the incident with all mandatory fields. 

BTW, is there other automatic method to test SLAs? 

Thank you so much

 

1 ACCEPTED SOLUTION

t_sadahisa
Giga Guru

Hello @ShuRiseUp2023 

 

I suspect that the test is interrupted by an error on the client side caused by client script.

Please refer to the following KB and try to put it in the exception temporarily.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0725054

 

Of course, but I recommend that you investigate separately why the error is occurring.

 

Thanks.

View solution in original post

8 REPLIES 8

kaushal_snow
Mega Sage

Hi @ShuRiseUp2023 ,

 

Use a Record Query step against the task_sla table, with a filter on task = [incident_sys_id] and has_breached = true, to locate the SLA record generated for that incident (instead of querying on the incident table)..

 

Try this once and let me know. If you find this helpful, please accept this as a solution and hit the helpful button..

 

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

Thanks for your response. But my problem so far is I can't submit the new incident at step 4, It always returns the error message: This step failed because the client error 'Invalid query string received:null: java.lang.NullPointerException: Invalid query string received:null: java.lang.NullPointerException: Invalid query string received:null: java.lang.NullPointerException: Invalid query string received:null: java.lang.NullPointerException: Invalid query string received:null: java.lang.NullPointerException: ' was dected on the page being tested. See failing Test logs. ......

 

Any ideas how to solve this? Thanks

t_sadahisa
Giga Guru

Hello @ShuRiseUp2023 

 

I suspect that the test is interrupted by an error on the client side caused by client script.

Please refer to the following KB and try to put it in the exception temporarily.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0725054

 

Of course, but I recommend that you investigate separately why the error is occurring.

 

Thanks.

Hi @t_sadahisa Thanks for your help. I add the errors to the warning list and now it works. I can use the ATF to test my SLAs. Thanks a lot