Contributions
TestRunner - disable decompression setting
Refer to the linked AlertSite post: https://community.smartbear.com/t5/AlertSite/SoapUI-Monitor-Disable-decompression-setting/td-p/151201 I've created a separate settings.xml file that has the value of the "disable response decompression" setting flipped to "true": <con:setting id="HttpSettings@disable_response_decompression">true</con:setting> I'veused the -t flag in the TestRunner Custom Args to leverage the new settings file, and I can see it referenced in the log messages as the TestRunner executes. The test case still fails however due to the content-encoding header being missing. In this case, I believe the response is being decompressed before the Test Case gets its hands on it due to that setting.I also copied the same command out of the TestRunner GUI and ran it in a command prompt directly with the same results. When you check the checkbox through the Preferences interface, it requires a Ready API restart. Does that mean that even though I'm providing a different settings file to the TestRunner, it doesn't respect that specific value? Is there any other way to get that setting configured for the TestRunner? Is it possible to get my hands on the original request details before being altered?7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes1CommentSoapUI Monitor - Disable decompression setting
I'mworking witha SoapUI Test Case monitor, and one of the things I'm trying to validate is that our web server is sending back gzipped content. To that end, I'm checking for the existence and value of the "content-encoding" HTTP header using the Groovy Scripting. The challenge is that the Ready API TestRunner on the server doesn't appear have the "Disable Response Decompression" preference checkedby default. Therefore, the response is decompressed and the "content-encoding" HTTP header isn't present when my script checks for it. I've tried to use the Groovy Setup Script to try to set it as follows: import com.eviware.soapui.SoapUI import com.eviware.soapui.settings.HttpSettings SoapUI.settings.setBoolean(HttpSettings.DISABLE_RESPONSE_DECOMPRESSION, true) However that wasn't successful, presumably because the checkbox when checked through the preferences says it requires a Ready API restart. Is there any way to script that setting, or enable it for the Test Case when it runs on the AlertSite servers? I've found reference to being able to pass in a settings file via command line to the TestRunner with the -t flag, is there some way to tap into that on the AlertSite server?7 years agoPlace AlertSite QuestionsAlertSite Questions1.6KViews0likes1Comment