TestCase Variable Not Recognized During Full Execution

Originally posted by instant on February 02, 2025

Hello,

I’m encountering an issue with SoapUI when executing my entire TestCase.

Context:

  • My TestCase comprises three steps:
    1. Create an order (TC1 Create Order)
    2. Retrieve the order (TC2 Get Order)
    3. Delete the order (TC3 Delete Order)
  • I manually define a variable orderId in TestCase Properties.
  • This variable is referenced in my requests using ${#TestCase#orderId}.

Problem:

  • When I execute each TestStep individually, everything works as expected: the orderId is correctly utilized.
  • However, upon executing the entire TestCase, SoapUI fails to recognize the variable, displaying UNKNOWN in the logs.
  • I attempted to initialize the variable using a property transfer step, but the issue persists.

Steps Already Taken:

  • Verified that orderId is defined in TestCase Properties.
  • Ensured that my requests correctly reference ${#TestCase#orderId}.
  • Added a property transfer step to enforce the retrieval of orderId.
  • Attempted to store the variable at different levels (Project, TestSuite, TestCase).
  • Reviewed the logs to confirm that orderId is present before the requests are executed.

Screenshots:

Create ok

Get ok

Test case ko

Originally posted by rraghvani on February 03, 2025

The screenshots you have attached, doesn’t look like TestComplete?

Originally posted by Hassan_Ballan on February 03, 2025

Your post is in the wrong community product page. Select the correct product from the list Home | SmartBear Community

For example if this is “SoapUI Open Source” then use Category: SoapUI Open Source | SmartBear Community

Originally posted by jkrolczy on March 07, 2025

Ever solve this issue ?

What SoapUI version you using.

Got a screenshot of where on testcase level you have the property defined?