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

charliesdev
Giga Expert

We are having same problem, were you able to resolve it?

RP6
Tera Contributor

I'm also having similar issue in Madrid version. Here are my Test Steps:

find_real_file.png

Open a Form(SP) Variables

find_real_file.png

Is this a known issues? Is the fix available in New York release?

 

In New York use "Custom UI " and then "Open Service Portal Page" this should not need g_form as requirement. But you probably need to setup the ATF utility helper object to perform the various tests.

 

Look in OOB widget "SC Catalog Item" in the client controller script for an example. Look for the line "// ATF helper object"

Cayley
ServiceNow Employee
ServiceNow Employee

Thanks Tommy

I knew there was an open portal page somewhere!

"Custom UI " and then "Open Service Portal Page"


My working example in Quebec for others that may come here. This opens an approval record in the portal for view and action


asha23
Tera Contributor

I am facing the same issue in newyork release, is there any solution found?

 

find_real_file.png