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

Tommy Jensen
Giga Guru

Have anybody found a solution for this error

 

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

 

I am getting this error in the test step "Open a Form (SP)". I open a custom portal with a custom page that contains 3 custom widgets.

I have tried to setup g_form with code like this

$scope.$on('spModel.gForm.initialized', function (e, gFormInstance) {
	g_form = gFormInstance;
}

 

but the event spModel.gForm.initialized is never fired.

23 REPLIES 23

Community Alums
Not applicable

Hi,

 

I am getting the below error while trying to open Catalog Item using ATF.

 

FAILURE: Failed to open Catalog Item. Either you don't have access to the Catalog Item or g_form is not defined

 

The catalog item works fine otherwise.

I am still getting this issue ..Did you find any solution? Fatima..I am working on paris release now.

Did you get solution for this problem.I am also getting same issue.

Community Alums
Not applicable

Check for user criteria, the user i was trying to impersonate was not authorized to view the catalog item, hence i was getting the error