How to get Decision point result element in ATF test step?

mfhaciahmetoglu
Mega Sage

Hi all,

 

I am trying to create a test for a service catalog item. There is a decision table step in the flow and I am trying to automate that as well via impersonating the user record that comes from Decision table (so that I can impersonate that user to approve). I found the table that contains the result elements: sys_decision_multi_result. I put a Record Query step to get query this table for the decision table I call. But it is not possible to dot.walk in the next step (impersonate) to move to result elements from the query that returns.

 

Anyone found a way?

 

Best,

Firat  

8 REPLIES 8

@mfhaciahmetoglu ,

Thanks!! for marking the reply as Helpful.

Are above solutions solved the question? Is yes, Pls close the question by accepting as solution.

 
Regards,
Chidanand

@Chidanand_VK ,

 

Thanks for introducing the parameterization but it is not clear to me how this helps with finding the result coming from the decision table.  

 

You impersonate first but the result of that impersonation does not come from decision table result table.

 

Do I miss something?

 

Best,

Firat

@Chidanand_VK ,

 

I was checking this solution but it seems like it is not so straightforward to get the result from the decision table via that piece of code.

 

I think we need to call the DecisionTable API with input and only then we will be able to return the result. See here: https://www.servicenow.com/community/workflow-automation-articles/make-decisions-from-javascript-wit...

 

Best,

Firat

@mfhaciahmetoglu 

Use the script I provided, that is most easy one.

 

Regards,
Chidanand