# major automation bug

**URL:** <https://community.smartbear.com/t/major-automation-bug/634>\
**Category:** SoapUI OS\
**Tags:** api, soapui, migrated, scripting, latest\
**Created:** [June 24, 2025, 12:06pm UTC](https://community.smartbear.com/t/major-automation-bug/634 "2025-06-24T12:06:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 24, 2025, 12:06pm UTC](https://community.smartbear.com/t/major-automation-bug/634/1 "2025-06-24T12:06:45Z")

</div>

> Originally posted by **vigy** on June 24, 2025

For the past two months I have been dealing with a weird bug in SoapUI. Just thinking about making a post on this forum gives me headache.

**TLDR;**

Sometimes when testcase has multiple soap steps, RawRequest (custom properties) does not contain correct data. It contains previously launched test step’s data.

**Long story** , starting with background so you can understand what I’m doing and what I’m trying to achieve.

I work for a company which has many internal systems and these systems rely on bunch of web services (in my scope around 10). Each web service has roughly from 10 to 150 web methods. There was an internal project aimed at upgrading systems and my purpose in this process was to assure, that nothing was affected in a bad way. This company has many test environments and for this project, two were allocated. Let’s name them T2 and T3. Environment T2 had as-is systems, while T3 had everything upgraded, but the data were the same. My job was to create a comparison between these two environments and make sure, the upgrade did no harm and responses from web methods were identical.

**My approach**

For every web method, I created a test case and in this test case were few steps. Mostly Request\_T2, Request\_T3, sometimes Properties.

I created one “main” test suite in which was just one test case with two steps.  
**Init** - groovy script that recursively sweeps whole solution, deletes any (old) **Verificator** and then replaces it with new one, and creates an excel template containing all test cases and test steps.  
**Verificator** - groovy script which is placed on last position in every test case. It searches for every soap-type test step that has \_T2 suffix in its name. Then searches for its twin, test step with \_T3 suffix in its name. It does many internal verifications, writes both \_T2 and \_T3 requests and responses to a directory structure that resembles how SoapUI test suite structure. These are for future analysis if necessary. It also writes verdict to the excel template that **Init** created.

Sounds good, right? It actually works really well, and the script is very complex as it uses functions and methods not used in groovy scripts very often. The script looks almost like a library for inspiration or a buffet of functions.

**The problem**

One day analyst told me, that I saved wrong “REQ” file and that it is not corresponding to “RES” file. Few hours later I was even more confused. As it turned out, _RawRequest_ was containing wrong data! This is a bit complicated, there are some conditions. For example

Request\_T2  
Request\_T3  
Verificator

In this setup, Request\_T3 contains _RawRequest_ of Request\_T2 (it’s a copy, Request\_T2 has correct data). When I switched the requests like this:

Request\_T3  
Request\_T2  
Verificator

then everything was OK. How can this be? Well, I found out, it happens only sometimes. And the cause seems to be, that Request\_T2 was aimed at a system with enabled security (basic auth, outgoind wss, global http settings).

Not only that, but when I launched the test from the test case window, the _RawRequest_ was filled with incorrect data. But then I opened the Request\_T3 in a separate window and executed it like that, _RawRequest_ was filled with correct data. This is the only way to get correct data written.

**Mitigation**

How to deal with this? I’ve tried many things. It does not matter how you get the data, whether you use _testStep.httpRequest.response.requestContent_ or _context.rawRequest_ or _testStep.getPropertyValue(“RawRequest”)_ because you are reading the wrong data. When you open the Custom Properties in SoapUI you can see the behavior for yourself. Execute from test case - wrong data. Execute individually - correct data.

What I’ve done so far was a dilemma between using _context.request_ and _context.expand(‘${Request\_T3#Request}’)_.

Since the bug occurs only sometimes and I need a generic Verificator script, I use following setup:

I read _testStep.httpRequest.response.requestContent_ and _testStep.httpRequest.response.responseContent_. I use _${=java.util.UUID.randomUUID()}_ as messageID in request header, so I use xmlHolder and compare the values of the elements in REQ vs RES. If they match, great, bug did not occur. But when they don’t match, it means bug is present.

The dilemma is there because _context.request_ is a request with all variables and functions, like the one mentioned above. The _context.expand(‘${Request\_T3#Request}’)_ executes all variables and functions again, so _${=java.util.UUID.randomUUID()}_ is generated again and it does not match the original.

BTW I’ve also tried tweaking the security settings and trying to refresh the Request or SoapUI somehow, but nothing makes SoapUI work correctly. And keep in mind, I’m testing repeatedly hundreds of web methods

At this point I’m stuck with something I can barely call a workaround. I cannot use SoapUI for automation if such bugs exist. Actually I’m a bit surprised this hasn’t been discovered or addressed yet. Nowhere on the internet have I seen anybody talk about this. Only positive thing about this is that response is always correct.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [September 20, 2026, 1:35pm UTC](https://community.smartbear.com/t/major-automation-bug/634/2 "2026-09-20T13:35:59Z")

</div>

> Originally posted by **Humashankar** on September 20, 2026

Hi vigy​

This sounds like a reproducible SoapUI test-step state issue, particularly when multiple SOAP requests use different security configurations.

Since executing the request individually produces the correct RawRequest,

Give a try by creating a minimal reproducible project and report it as a potential SoapUI automation defect, including the SoapUI version, Java version, security settings, and sanitized request examples.

**Hope this helps !!**

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 13, 2026, 12:00pm UTC](https://community.smartbear.com/t/major-automation-bug/634/3 "2026-10-13T12:00:58Z")

</div>

Closed on October 13, 2026, 12:00pm UTC

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
