ContributionsMost RecentMost LikesSolutionsRe: Test Runner bat via Octopus Deploy I think I fixed the classnotfoundexception by renaming the plugins @ C:\Users\<user name>.soapuios\plugin see : https://community.smartbear.com/t5/SoapUI-Open-Source/AutoDiscoveryMethodFactory-ClassNotFoundException-when-executing/td-p/105397 Re: Test Runner bat via Octopus Deploy I see you have 'Disable Usage Statistics', but did you make sure you were logged in as the same user that is going to execute the .bat file ? For me I was using Octopus Deploy which was running a service under a specific user account. I had to log onto the server that was running the SOAP tests using this account. Run the .bat file manually and check for UI prompts and adjust SOAPUI where necessary. The message you are seeing I believe is due to UI actions. "I am executing mockservicerunner.bat from a C# class that executes the batch file mockservicerunner.bat " - What user is this running as ? Can you adjust the bat file to print the current user ? Re: Can't execute script by using testrunner.bat via a webportal that is hosted in windows server2008 R2 Resolved here : https://community.smartbear.com/t5/SoapUI-Open-Source/Test-Runner-bat-via-Octopus-Deploy/m-p/143243/highlight/false#M24332 Re: Test Runner bat via Octopus Deploy SOAPUI was throwing up a UI screen about usage statistics that was preventing Octopus Deploy from continuing on running the TestRunner.bat. The solution was : Run Octopus Deploy tentacle manually Execute the Octopus Deploy steps for TestRunner.bat, This displays the usage statistics screen, click OK Start up SOAPUI, file > preferences > UI Settings, Disable usage statistics - Check. Click OK. The long term solution will be to save the preferences file and load it into TestRunner when the test is executing, but I haven't done this yet. Re: Test Runner bat via Octopus Deploy There's not much more info from Octopus logs : | == Running: Step 40: SOAPUI Tests - clone (1) == | | Running: ***** Web Server 11:23:35 Verbose | Octopus Server version: 3.13.6+Branch.master.Sha.f00cbbf5c6ace477cb8d9e1b458f1cf5c3b32cc6 11:23:35 Verbose | Environment Information: | OperatingSystem: Microsoft Windows NT 6.2.9200.0 | OsBitVersion: x64 | Is64BitProcess: True | CurrentUser: NT AUTHORITY\SYSTEM | MachineName: [Octopus server] | ProcessorCount: 4 | CurrentDirectory: C:\Windows\system32 | TempDirectory: C:\Windows\TEMP\ | HostProcessName: Octopus.Server 11:23:35 Info | Executing script on '***** Web Server' 11:23:36 Verbose | Octopus Deploy: Calamari version 3.7.65+Branch.master.Sha.8097779b7c3b6ad3a96e52107d4727c40e9b307e 11:23:36 Verbose | Environment Information: 11:23:36 Verbose | OperatingSystem: Microsoft Windows NT 6.1.7601 Service Pack 1 11:23:36 Verbose | OsBitVersion: x64 11:23:36 Verbose | Is64BitProcess: True 11:23:36 Verbose | CurrentUser: CORP\[Accont] 11:23:36 Verbose | MachineName: [machine name] 11:23:36 Verbose | ProcessorCount: 1 11:23:36 Verbose | CurrentDirectory: C:\Octopus\Work\20170602102336-303 11:23:36 Verbose | TempDirectory: C:\Users\ncbcdevwebservice\AppData\Local\Temp\ 11:23:36 Verbose | HostProcessName: Calamari 11:23:37 Verbose | Executing 'C:\Octopus\Work\20170602102336-303\Script.ps1' 11:23:39 Verbose | Name Value 11:23:39 Verbose | ---- ----- 11:23:39 Verbose | CLRVersion 2.0.50727.5485 11:23:39 Verbose | BuildVersion 6.1.7601.17514 11:23:39 Verbose | PSVersion 2.0 11:23:39 Verbose | WSManStackVersion 2.0 11:23:39 Verbose | PSCompatibleVersions {1.0, 2.0} 11:23:39 Verbose | SerializationVersion 1.1.0.1 11:23:39 Verbose | PSRemotingProtocolVersion 2.1 11:23:39 Verbose | PowerShell Environment Information: 11:23:39 Verbose | OperatingSystem: Microsoft Windows NT 6.1.7601 Service Pack 1 11:23:39 Verbose | OsBitVersion: x86 11:23:39 Verbose | CurrentDirectory: C:\Octopus\Work\20170602102336-303 11:23:39 Verbose | CurrentLocation: C:\Octopus\Work\20170602102336-303 11:23:39 Verbose | TempDirectory: C:\Users\ncbcdevwebservice\AppData\Local\Temp\ 11:23:39 Verbose | HostProcessName: powershell 11:23:39 Verbose | TotalPhysicalMemory: 4193848 KB 11:23:39 Verbose | AvailablePhysicalMemory: 2503948 KB 11:23:39 Info | Removing any previous SOAPUI test results. 11:23:39 Info | SOAPUI Execution. 11:23:39 Info | del %TEMP%\jfxrtpath 11:23:39 Info | set CLASSPATH=%CLASSPATH%;%JFXRTPATH% 11:23:39 Info | rem JVM parameters, modify as appropriate 11:23:39 Info | set JAVA_OPTS=-Xms128m -Xmx1024m -Dsoapui.properties=soapui.properties "-Dsoapui.home=%SOAPUI_HOME%\" 11:23:39 Info | if "%SOAPUI_HOME%\" == "" goto START 11:23:39 Info | set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.libraries="%SOAPUI_HOME%ext" 11:23:39 Info | set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.listeners="%SOAPUI_HOME%listeners" 11:23:39 Info | set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.actions="%SOAPUI_HOME%actions" 11:23:39 Info | :START 11:23:39 Info | rem ********* run soapui testcase runner *********** 11:23:39 Info | More? SOAPUI Execution - Finished - Exit code : 255. 11:23:39 Verbose | Updating manifest with output variables 11:23:39 Verbose | Updating manifest with action evaluated variables 11:23:39 Error | No SOAPUI test results available. Interestingly enough another user had the same issue as me. https://community.smartbear.com/t5/SoapUI-Open-Source/Can-t-execute-script-by-using-testrunner-bat-via-a-webportal/m-p/143221#M24240 Re: Can't execute script by using testrunner.bat via a webportal that is hosted in windows server2008 R2 I too have the same issue. If anyone resolved it, I would be glad to know the answer. Re: Test Runner bat via Octopus Deploy What im using to determine success at the moment is the output that I redirect to an output file. When the run fails the output hangs with the following ., rem ********* run soapui testcase runner *********** More? The "More?" makes me feel like its waiting for an input and therefore is hanging indefinitely until it gets the input. Test Runner bat via Octopus Deploy I'm using Octopus Deploy to run a SOAPUI smoketest at the end of an installation. Im using Test Runner bat to start the whole process via Powershell : cmd.exe /C "C:\Program Files\SmartBear\SoapUI-5.2.1\bin\TestRunner.bat" -sUK1 "-Dsoapui.properties.UK1=C:\temp\[client]\SOAP\UK1-Quote-UK1.properties" "C:\temp\[client]\SOAP\UK1-Quote-Smoke-soapui-project.xml" >C:\temp\[client]\SOAP\SOAPlogging.txt The log output is as follows : ------------ del %TEMP%\jfxrtpath set CLASSPATH=%CLASSPATH%;%JFXRTPATH% rem JVM parameters, modify as appropriate set JAVA_OPTS=-Xms128m -Xmx1024m -Dsoapui.properties=soapui.properties "-Dsoapui.home=%SOAPUI_HOME%\" if "%SOAPUI_HOME%\" == "" goto START set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.libraries="%SOAPUI_HOME%ext" set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.listeners="%SOAPUI_HOME%listeners" set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.actions="%SOAPUI_HOME%actions" :START rem ********* run soapui testcase runner *********** More? ------------ However when run in Powershell directly, everything runs as expected, all tests pass, the output file is generated showing that everything has been successful. I don't think this is a SOAPUI issue, but im hoping someone has seen the same issue and has a resolution. Thanks Jon SolvedTestRunner.bat TestSuite Properties Hi, Is it possible to set the testsuite custom properties via the command line (TestRunner.bat) ? We have our end points stored at this level and need to alter them per environment. I have tried -P but this looks to be a level above at the project level. Thanks