<Test> Element

TestStand ATML Toolkit 2017 Help

Edition Date: June 2018

Part Number: 374205B-01

»View Product Info
Download Help (Windows Only)

<Conditions> Element

The <Test>/<Conditions> element can contain <PreConditions> and <PostConditions> child elements.

Each <PreConditions> element contains <PreCondition> elements, and each <PostConditions> element contains <PostCondition> elements. Each <PreCondition> and <PostCondition> element contains <VariableValue> and <Other> child elements.

The ATML TD translator generates one step precondition expression in the translated TestStand step for each <PreCondition> element and one step post-expression in the translated TestStand step for each <PostCondition> element. The translator uses the following criteria to annotate the expressions it creates:

  • If more than one <PreCondition> element exists in the source TD instance document, the translator uses commas to separate the expressions for the translated step.
  • If more than one <PostCondition> element exists in the source TD instance document, the translator uses && operators to separate the expressions for the translated step.
  • If the <PreCondition> or <PostCondition> element includes attributes, the translator adds the attributes as comments to the expression.
  • If a <PreCondition> element contains an operatorNOT attribute with a value of True, the translator adds ! to the expression.

The translator also translates the following child elements of each <PreCondition> and <PostCondition> element to a TestStand construct:

  • <VariableValue>—For a <PreCondition>/<VariableValue> element, the translator verifies whether the instance of the corresponding variable in the translated sequence file is equal to the value the Value attribute in the source TD instance document specifies.

    For a <PostCondition>/<VariableValue> element, the translator changes the instance of the corresponding variable in the translated sequence file to the value the Value attribute in the source TD instance document specifies.
  • <Other>—Adds the entire XML content of the <PreCondition> or <PostCondition> element as a comment in the precondition expression or post-expression, respectively.
    Completing the Partial Test Program Completing the Partial Test Program  You must manually implement the logic that the <Other> element describes. Refer to the post-translation recommended Tests section of the log file for more information about how you can implement the logic the <Other> element describes.

The <PreConditions> element can also contain a <Composition> child element, which in turn contains its own <PreConditions> child elements. The translator generates a precondition expression by recursively evaluating each <Composition>/<PreConditions>/<PreCondition> element.

Incremental Update Incremental Update  The translator updates the precondition expressions and post-expressions for translated steps if you modify the <Conditions> element in the source TD instance document.

See Also

Expressions Panel

Logging Translation Information

Preconditions Panel

WAS THIS ARTICLE HELPFUL?

Not Helpful