ATF: How to query and close concurrent TASKs

nag2
Tera Expert

Hi, We have a workflow which creates 3 concurrent tasks. we are using ATF to test the workflow before moving updates to test. If there is only one Catalog task 'Record Query' works but if there are multiple concurrent tasks its not working.

Could you please somebody help me if you already tested this scenario!

Thanks advanced,

Nag

1 ACCEPTED SOLUTION

Hi Anil, sorry for the delay. in 'record query' step you need to query the SCTASK that is in OPEN status.

Thanks,

nag

View solution in original post

5 REPLIES 5

Anil Lande
Kilo Patron

Hi,

Can you please share what you have done?

 

Thanks,

Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Hi Anil, thank you for responding. my workflow is simple. it will create 3 concurrent tasks and when all of them are closed then we will close RITM. In ATF i have done the below steps. at step6 i am getting results that there are 3 open catalog tasks, immediately at step7 we would like to close all 3 steps. or query each open catalog task and close one by one.

1) open a catalog item

2) set Variable values

3) order a catalog item

4) Record query (sc_req_item) from step3

5) open existing record (sc_req_item) from step4

6) Record query (sc_task) from step3

7) help to close all or close one by one

 

Thanks,

Nag

 

Hi Anil, i just have tested successfully querying task after task. But is there a way that i can close all catalog tasks in step7?

Thanks,

Nag

Hi there 
I also need this. Have you been able to find the answer? 
If you have and let me know I will appreciate it. 
Thanks