How can I create an ATF test step for a field that has a dependency (i.e., another field).

Community Alums
Not applicable

When creating a manual test step for a Service Catalog item (Create a New Incident), the records of a reference field on the form depend upon the selected value of a drop down on the same form.  In ATF this cannot be performed when filling out variable values for a record producer.  When attempting to create the step for ATF, no records are displayed in the pop-up window list and any manual entry is an Invalid Input considering the window has no records.

Side note:  ATF steps using a reference field are able to be created successfully when there isn't a dependency.

Is there a work around to this issue?

 

 

8 REPLIES 8

Hi Carolien,

I'm not certain what you mean when you say that the Variables Choice List doesn't appear.

If you mean that this field doesn't appear in your Test Run Data Set:

find_real_file.png

Then in the variable definition, you need to set the choice type to Dropdown with -None-

find_real_file.png

If the choice field doesn't appear on the variable definition, then you need to update the layout for the variable defintion.

If the issue is that the choice list is empty as in the first image above, then you need to add the choice options.

  1. Open a Test Run Data Set that has the variable, right click the variable and click Configure Choices.
    find_real_file.png
    The Configure Parameter Choices dialog appears.
  2. Use the Enter new item field to add choices to the list. 
    find_real_file.png
  3. When you've add all your choices, click Save.

I know that I probably went into more detail than necessary. I hope this helped.

If it didn't, please add a screen shot of the layout that is missing the Choice List.

Also, let me know if you have other questions.

Thanks,

Cody

Carolien
Tera Contributor

Hi Cody,

Thanks again for your (elaborate) answer, it somehow seems that my rights on the work instance are not good enough, as I don't see the choices:

 

find_real_file.png

 

Cheers,

Carolien

Carolien
Tera Contributor

Final remark:

If one chooses None as Choice at the Choice List Specification as below, then it will be possible to enter any string in the Data Set.

 

find_real_file.png

 

 

 

find_real_file.png

 

Boya Jayaramudu
Tera Contributor

This can be done by making in 2 steps of set field values. Suppose abc & def fields are dependant. set abc field value in first step and set def field value in next step. it will work absolutely.