ATF FAILURE: g_form is not defined. A valid form must have g_form defined

Anne Mc
Kilo Expert

I have been trying to create an automated test covering a user logging an incident in the portal using the Ask for help record producer. I can open a new form and log the incident successfully. However, when I try to reopen the form for the user to add comments, the test opens the correct form (the screen dump show this) but it errors on that step and is generating the above error.

I saw in another thread that someone suggested this error message might be because the widget was deprecated, but that isn't the case with this one. We are using the most recent version. I have simplified the test down to the basic steps:

find_real_file.png

It is the final Open a Form (SP) that is failing:

find_real_file.png

The step details are:

find_real_file.png

 

Is the error being generated because there are no query parameters?  If so, what parameters would be needed?  The screen dump shows it is opening the correct form with the correct incident:

find_real_file.png

Any ideas please?

Regards,

Anne.

18 REPLIES 18

sachin_namjoshi
Kilo Patron
Kilo Patron

This is an known issue which is fixed in London release.

 

https://hi.service-now.com/kb_view.do?sysparm_article=KB0681668

 

Regards,

Sachin

Thanks for replying but we are on London Patch 6 so whatever was causing the issue previously must have been different.

Regards,

Anne.

Amruta12
Tera Contributor

Hi Anne

Were you able to resolve this issue?

Soumita3
Tera Expert

Hi Anne,

 

I would like you to use the Service Portal(SP) test steps for the above.

Since, you are at first following normal test step like Opening a record producer and then you are trying to open that particular form using the SP test step, as  a result the value is not being fetched.

 

Kindly open the record producer using the SP test step which will not give the above mentioned error.

 

Please mark the answer as correct if it suffice your query.

 

Thanks.