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

Yes I was able to select the variable and set it to Yes. When I monitor the ATF test runner it is not selecting Yes or any of the values I put in the Set Variable Values step. It is not working for all variables, not just this one.

Abdul30
Kilo Contributor

Hi Hannah, I believe you should be able to do this by using one of the following OOTB steps: 

  1. Products -> Variable State Validation: This step can be used to check the state of the variable such as (mandatory, visible, read-only, etc..)
  2. Products -> Validate Variable Values: This step can be used to validate the actual value that was selected within that variable.
  3. Products -> Set Variable Values: This step will populate a variable with a value. 

You have to make sure the task/form is first opened, then you can validate the variables. I hope this helps.

Thanks

---

Please mark my answer as correct if it has helped you. Thanks!