error - "FAILURE: Failed to open Catalog Item. Either you don't have access to the Catalog Item or g_form is not defined" While trying to open a Service Catalog item using Automated Test Framework

Priya127
Kilo Explorer

Hi All,

I am  automating service catalog item on cloud management platform using ATF

started with Virtual Server Provision and now stuck with below mentioned issues 

Steps to reproduce :

1) Navigate to the 'Cloud User Portal ' module in the 'Cloud Management' application. 

2) Open "Virtual Server" in the "Cloud Admin Portal" portal --> ref table - cloud_cat_item

3) Set parameter values on the catalog form :

Set Variable Values (SP)Answer the questions on the form as follows:
Managed OS = Yes
and Logical Datacenter =
and Disaster Recovery = Yes
and DR Region =
and Never Expire = Yes
and User Group =
and Application =
and Cloud Account =
and Stack Name =

Expected output - 1) User should be allowed to open a catalog item successfully

                             2) User should be able to select parameters/variables values successfully

Actual output - 1) Getting an error - "FAILURE: Failed to open Catalog Item. Either you don't have access to the Catalog Item or g_form is not defined" 

                        2) On ATF , the dropdowns are not getting populated with the values set against it -- All I see is --none-- as an option

Note - Majorly , if the field - "Logical Datacenter" gets populated rest of the fields value should get auto populate.  

 

9 REPLIES 9

Weston Wilson
Tera Expert

Are you doing an impersonation before running the test? You may need to add that step first if you are not already. Also, I have run into issues in the past where it states g_form is not available, which I just had to ignore the error. After ignoring the error everything ran fine. 

Priya127
Kilo Explorer

HI,

I tried impersonating the user but no luck 😞

Thanks  

faro
Tera Expert

This issue was suppose to be fixed in New York. Not. Still persists.

There is a problem record in hi. And there are KB articles.  No work around or solution ..yet.

PriyaRanji
Tera Guru

hi, 

add 5 seconds of timer to this step, it works.

Thanks,

Priyanka R