Static local variables are declared inside a function but retain their value throughout the lifetime of the program and are initialized only once. Due to this characteristic, in integration tests (Maintain test case context), only the test case that first initializes the static local variable initializes its value.

When Maintain test case context is checked, additional configuration is required to input values into static local variables for each test case.

  1. Method for inputting values into static local variables for each test case
    1. From [Test View], double-click the test or test case that attempts to assign an input value to a static local variable.
    2. Check the name of the static local variable in [Test Editor] > [Test Case]
    3. In [Test Editor] > [Test Info] > [Test Structure], enter static local variable name_initialized = 0; into the Before-call code and save
      1. Example: If the static local variable name is static_local_value_3935363592_1, enter static_local_value_3935363592_1_initialized = 0; into the Before-call code and save.
    4. RUN Test

Need more help with this?
Don’t hesitate to contact us here.

Thanks for your feedback.