cryptton2004Occasional ContributorJoined 8 years ago6 Posts1 LikeLikes received1 SolutionView All Badges
ContributionsMost RecentMost LikesSolutionsRe: soapui-testing and automation Or you can pass those parameters to the testrunner as arguments and you'll be able to access them at the Project level. High level pseudo example: SOAPUI_RUNNER=${SOAPUI_HOME}/bin/testrunner.sh SOAPUI_COMMAND="${SOAPUI_RUNNER} "${SOAPUI_TESTS_DIR}/${TEST_SUITE}" -I -f \"${RELATIVE_REPORT_DIR}\" \ -PmyCustomEndpoint=httpEndpointHere \ -PsecondParameter=secondValue \ ${ANY_OTHER_PREDEFINED_SOAPUI_EXTRA_ARGS}" echo "Running: ${SOAPUI_COMMAND}" sh -c "${SOAPUI_COMMAND}" And then you'll use that as an endpoint for your http test step: ${#Project#myCustomEndpoint}/api/v2 Re: TestRunner logging I managed to get something similar to work by adding this: project = context.testCase.testSuite.project project.save() project.getWorkspace() When I first run in from testrunner, I get no results. The second time I run it, it works. I guess that somehow the workspace doesn't know about the dynamically created tests, that's why it works starting with the second time. Now, next step would be to find a way to 'reload' the project in the same run, in order to also have the results from the new dynamically created test cases. If I find a way to do it, I'll let you know, but any help is appreciated . Re: Test suite report via groovy Did you manage to find a solution to this? Re: Show test steps also in JUnit report Supporting this as well. I'd like to have this feature also. Re: How to get reporting at test step level instead of test case level what surefire currently provides Hi, I'm using a similar setup (jenkins that triggers soapui suite) and I'm also interested in a similar solution. Did you manage to get the tests steps results in the generated report? Re: Window Command line option in jenkins : Call multiple soapUI project files to execute in same batch If you're running it on windows, you could make a bat script and run that bat file. Something like this works for me: set SOAPUI_TESTS_FOLDER=API AUTOMATION Quick Check\ set SOAPUI_HOME=E:\tests\SoapUI-5.2.1 set SOAPUI_RUNNER=%SOAPUI_HOME%\bin\testrunner.bat dir /b "%SOAPUI_TESTS_FOLDER%" @echo off SetLocal EnableDelayedExpansion for /f "usebackq delims=|" %%f in (`dir /b "%SOAPUI_TESTS_FOLDER%"`) do ( set SOAPUI_PROJECT_NAME=%%f echo Running Project: !SOAPUI_PROJECT_NAME! call "%SOAPUI_RUNNER%" "%SOAPUI_TESTS_FOLDER%!SOAPUI_PROJECT_NAME!" -j -I -f "report\%BUILD_NUMBER%\" )