ATF test not following flow after approval step

kgomez222
Tera Contributor

So I created a flow that interacts with the service catalog and I'm testing it in ATF for full functionality.

It follows the entire flow up until the approval step.

 

Normally, within the flow, when someone approves the catalog item, a new service catalog task item is created that is attached to the requested item record. 

 

But when the ATF test reaches this point, there is no Service Catalog task being created within the SC task table, i have tried to query it and nothing shows up, and i don't understand why.

 

Really need help on this, I'm not sure whats going on.

5 REPLIES 5

Hemant Goldar
Mega Sage
Mega Sage

Hi @kgomez222 ,

 

Did you tried adding timeout= 60 sec for step Record Query where it is searching for your catalog task.

 

Regards,

Hemant 

**Please mark my answer correct or helpful based on the impact**

Hey hemant, just tried that right now and it still doesn't seem to be finding the SC task.

@kgomez222 Did you tried manually testing the flow does after approver approve the request, how many sc_task is begin created.

 

You can also try using below steps to open sc_task.

1) open an existing form - table -sc_task and condition request = step x where you submitted your request item.

 

I hope this helps!

 

Regards,

Hemant 

**Please mark my answer correct or helpful based on the impact**

 

 

Yeah, I've walked through the flow manually and the task is generated.  only one task is generated since i tasked the flow with only creating one.

 

i have tried the second step you sent, but it doesn't seem to be working either, because the SC task record with the ID for the requested item 'does not exist'.

I genuinely have no idea what I'm missing, because walking through he flow manually works, but it just doesn't create the catalog task in ATF.