ATF opening a record created by clicking UI action.

Srikanth Menava
Kilo Sage

Hello SNC,

 In to the story, I created an INC and on the incident i am clicking on UI-Action 'create outage' which has to create an outage record in cmdb_ci_outage. My test is running fine untill this step but the I am not able to open the record, I am getting the following error.

FAILURE: Failed to open the 'cmdb_ci_outage' form with id '371745b68762e550c540c916cebb35a4'
Table 'cmdb_ci_outage' does not have a record with id '371745b68762e550c540c916cebb35a4'

 

below(attached)is the test result,ATF-SNC.PNG

 

has anyone faced it, FYI, I build other steps and same approach worked for othr and not for this, can anyone tell why?

1 ACCEPTED SOLUTION

I was able to figure it out myself.I created a submit record step after clicking the UI action.

Then the record was saved to the data base and was able to query for the record.

I followed the below approach..

SrikanthMenava_0-1684347909901.png

My test was success now.

View solution in original post

18 REPLIES 18

Markus Kraus
Kilo Sage

I faced similar issue before and i was able to fix it using a simple sleep.

By the way: Where do you get the SysID from the newly created outage, so you know which one to open in step 11? Can you show us the step configuration of step 11?

Thanks for the reply @Markus Kraus ,

Can you please elaborate on the timer and how you achieved it?

Below is my step config in step 11.

SrikanthMenava_0-1683549791076.png

 

@Srikanth Menava I just realised that you are missing the submit of the outage form. You need to add a "submit" atf step between step 10 and 11. Then you can reference the record returned by this newly added test step in the "Open existing record".

@Markus Kraus  Outage is being created by clickeng th UI action after step 10..