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

Sardash
Mega Guru

@ShuRiseUp2023  - Are you creating Incident from Native UI or from Portal? Can you check if the user you are impersonating is having right roles? and still you are getting this same error then please reach out to your developer to check if the script written behind UI button is failing

@Sardash , I use ATF to create incident from Native UI. the person I impersonating has the right role. I tried to add errors to warning/ignore list, then the problem solved. Now I am able to use ATF to test my SLAs. Thanks

Shaqeel
Mega Sage

Hi @ShuRiseUp2023 

 

Uncheck the below fields and try adding the error to ignore list in the failed result.

Shaqeel_0-1754383774710.png

 

Regards

Shql


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

@Shaqeel Thanks for your response. I added the errors to the warning list and now the ATF is working successfully.