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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2019 04:30 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2019 09:08 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2019 05:41 AM
HI,
I tried impersonating the user but no luck 😞
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2019 12:24 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2020 12:30 AM
hi,
add 5 seconds of timer to this step, it works.
Thanks,
Priyanka R