Forum Discussion

instant's avatar
instant
New Contributor
2 months ago

TestCase Variable Not Recognized During Full Execution

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 

 

3 Replies