ATF SCTask Variables

Hannah C
Giga Expert

Hello!

I am working on building an Automated Test. I have successfully been able to open a catalog item, set the variable values, submit the catalog item, and then open an SCTask associated with that request. I can set values on that SCTask like Assigned to and State. You can dot-walk to the Requested Item, but is there a way to get to the variables? Like the custom variables that are created on the catalog item and put onto the task?

We have a variable added on the task for this item and if it is answered Yes the workflow goes one way and if answered No it goes a different way. Trying to figure out how to set the value of this variable on the task. Thanks!

6 REPLIES 6

Soumita3
Tera Expert

Hi Hannah,

 

As per your configuration mentioned above, all the variables can be accessed via ATF both on the Requested form page and the SCTASK form page. But for the same, all the variables should be present at the both level in general, then only it can be accessed through ATF.

 

Now, when the variable is accessible in SCATSK page, setting the value to true or false will help the workflow proceed in the configured manner.

 

Please let me know for any further queries. 

 

Please mark the answer as correct if it suffice your query.

 

Thanks.
Soumita.

bbf3562
Kilo Guru

Hi Hannah,

Is the variable Yes/No is created in catalog item but as hidden that will only show in catalog task under Requested Item Variables tab for fulfiller to select yes or no? If yes, then you can pre-select that variable ahead even though it is hidden in catalog form. You can do that in Set Variable Values step. When it gets to the catalog task, it will automatically go to "Yes" workflow or "No" workflow because of pre-selected. If the custom variable doesn't create in catalog item but create in catalog task, then you can do Set Field Values step in task form to select Yes or No. I hope that helped!

Thank you for the input. Yes, it is from the catalog item. I have tried using the Set Variable Values step but it doesn't do anything to any of the variables even the ones that aren't hidden on the catalog item...

In Set Variable Values step right after Open a Catalog Item step, were you able to select a hidden variable name and pick Yes or No? Also, did you monitor on ATF test runner to see at task form if it selected Yes or No?