Notifications

908 views

Description

ATF: Set Field Values step configuration does not support dependent / asynchronous updating fields

Steps to Reproduce

 

Negative use case:

This test execution should fail during Set Field Values step when using an invalid dependent field reference, because the value is not selectable. Instead, Set Field Values passes (incorrect), and then Field Values Validation fails (correct). We want to fail during Set Field Values step.

  1. Navigate to Automated Testing Framework > Tests.

  2. Click New, name the test, and then click Save.

  3. Click Add Test Step, click Open a New Form, and click Next.

  4. Set the Table to Demand [dmn_demand] and click Submit.

  5. Add a test step with the following values:

    • Field Values
    • Category: Operational
    • Type: Enhancement
  6. Add a test step with the following values:

    • Field Values Validation
    • Type: Enhancement
  7. Run the test.

    Expected Result: On the Step Results related list, the Set Field Values step fails and the output is: "FAILURE: Unable to set field 'type' to value 'enhancement'. Value 'enhancement' is not currently a valid choice."

    Actual Result: On the Step Results related list, the Set Field Values step passes. The Field Values Validation fails with output: "FAILURE: The form did not match the condition. Type = Enhancement." Type is a dependent field on Category. The Set Field Values step should fail because when Category is set to Operational, only Change and Defect are available options. When Category is Operational, Type should not be able to be set to Enhancement.

Workaround

When setting the value of a dependent field, set the value of the non-dependent field in a different Set Field Values  test step. In a later Set Field Values test step, set the value of the dependent field. 

For example, on the dmn_demand table, Type depends on Category.

  1. Navigate to Automated Testing Framework > Tests.
  2. Click New, name the test, and then click Save.
  3. Click Add Test Step, click Open a New Form, and click Next.
  4. Set the Table to Demand [dmn_demand] and click Submit.
  5. Add a test step with the following values:
    • Set Field Values
    • Category: Operational
  6. Add a test step with the following values:
    • Set Field Values
    • Type: Enhancement
  7. Add a test step with the following values:
    • Field Values Validation
    • Type: Enhancement
  8. Run the test.

    Result: Test will fail on step "Set Field Values" with the following output: "FAILURE: Unable to set field 'type' to value 'enhancement'. Value 'enhancement' is not currently a valid choice."

 


Related Problem: PRB833259

Seen In

Istanbul

Fixed In

Istanbul Patch 7
Jakarta

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2017-09-21 14:05:40
Published:2017-06-13