Health-check for SOAP UI Pro in continuous integration with Jenkins
Hello, Most of tools dispose of “health check” routine that verify that everything is OK before starting the CI pipeline. So before executing the SoapUI tests in Jenkins I want to verify that : - TestRunner of ReadyAPI is available - Licences are available in sufficient quantity - Each component of the testing tool is ready to use Maybe it is very simple and I just have to run a blanc test, maybe the control is stricter and I can run some of health-check procedure. So the point is : - What are the best-practices you have observed in IC integration ? What is your advice ? - Does the health-check procedure exists and how to run it ? Thanks a lot :) Mohamed.Solved3.9KViews0likes19CommentsNeed help to setup Jenkins job using project from Git
Hi All. I have a composite project in GITHUB. I installed the ReadyAPI in jenkins server. Now I want to run readyAPI test cases from Jenkins jobs. which has to pick the project from github. How can I achieve this? I'm strugging to find the information. Anyhelp would be appreciated .Solved1.7KViews0likes1CommentTests are failing on Jenkins
Tests are failing on Jenkins with error Please specify endpoints and restart your test. I have added endpoints in <con:service type="SOAP" name="xyz"> <con:endpoint authProfile="No Authorization">https://foo</con:endpoint> </con:service> Tests are running fine on my local machine504Views0likes2CommentsReadyAPI Runner on Jenkins writes logs in the home directory how do I clean up?
We use a ReadyAPI Runner on our Jenkins slave and we have seen that the runner writes his own log for every Job that it running. The log is located in the <home directory>/.readyapi directory, where we have a reduced space to write something. After a while the node will be unusable because the logfiles will exceed the space available. In the documentation I did not find an option to specify not to write logs there or a different location. How can I tell the runner not to write logs or write them elsewhere? I'm running on linux, the used readyapi version is at 2.6.0 at the moment.Solved2.9KViews0likes7CommentsValue on Custom properties not incremented in the remote repository on the master branch
Hello, I use this groovy script to increment variable "increment" that i declared on Custom properties : // read the property as a string def uniqueUserPortion = testRunner.testCase.testSuite.project.getPropertyValue("increment") // convert it to an Integer, and increment def uniqueUserPortionInc = uniqueUserPortion.toInteger() + 1 // set the property back as string testRunner.testCase.testSuite.project.setPropertyValue("increment", uniqueUserPortionInc.toString()) // check return testRunner.testCase.testSuite.project.getPropertyValue("increment"); When I launch the script in my local branch, the variable 'increment' is successfully incremented, but when the Jenkins started to run the job automatically on the master branch, the value of the variable 'increment' doesn't change. So I supposed that the script could not be executed automatically on the master branch. the project on my local branch is the same that I have on the master branch Have you any ideas about that issue? Thank you in advance for your responseSolved3KViews0likes11CommentsCan we trigger a jenkins job thru ready api
Hi All, I am trying to automate a process in my present project, i have two questions related to it. 1) can I trigger a Jenkins job using ready api? 2) If the answer to my 1st question is Yes, then this jenkins job does a spark submit and run an etl job on hadoop cluster and presently I do a manual check on job status (accept, running, finished) on hadoop by passing a parameter which I used while triggering the jenkins job, So, my second question is can I make calls to the hadoop cluster to check the job status (as this job takes times around 5 to 10 mins to complete can I make recurring calls until the status changes to finished).1.7KViews0likes5CommentsSoapUI Jenkins: how to use TestSuiteRunListener
Hi, I have a test pipeline running in Jenkins with a SoapUI node connected to it. I want to run a script (in a test suite, in a testcase) ONE time before I start running my testsuite (I have only one for now). I thought about using the Event TestRunListener.beforeRun, but that will run the script everytime a test case starts.Then I thought about using the TestSuiteRunListener.beforeRun. But that one gave the following exception: 08:59:45 08:59:45,811 ERROR [EventHandlersRequestFilter] com.eviware.soapui.support.scripting.ScriptException: Error in TestSuiteRunListener.beforeRun 08:59:45 08:59:45,817 ERROR [SoapUI] An error occurred [Error in TestSuiteRunListener.beforeRun], see error log for details 08:59:45 08:59:45,818 ERROR [errorlog] com.eviware.soapui.support.scripting.ScriptException: Error in TestSuiteRunListener.beforeRun 08:59:45 com.eviware.soapui.support.scripting.ScriptException: Error in TestSuiteRunListener.beforeRun 08:59:45 Caused by: groovy.lang.MissingPropertyException: No such property: testCase for class: com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner Apparently there is something wrong with the following code that I use: // Check if the test case is run from the command line if (com.eviware.soapui.SoapUI.isCommandLine()) { log.info "This code is executed by Command Line SoapUI" log.info "Now running setup scripts" def testCase = testRunner.testCase.testSuite.project.testSuites['testsuite'].testCases['testcase'] def testStep = testCase.getTestStepByName("teststep") testStep.run( testRunner, context ) } It doesn't recognize testCase for class: com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner used here: def testCase = testRunner.testCase.testSuite.project.testSuites['testsuite'].testCases['testcase'] So how do I script to have the testRunner run the testcase'Setup Project' in the testsuite 'tooling-general' using theestSuiteRunListener.beforeRun?Solved2.3KViews0likes3CommentsSoapUI on Jenkins with global variables (auth)
Hello, I have project for soapUI that contains global variables for username and password. ${#Global#username} Now I have setup to run tests on Jenkins, but it fails to authentication error. I need somehow to pass those global parameters. I have setJenkins job configuration, enable "This build is parameterized" and typedName same asmyvariable username and value for it. But it did not work, test failed, because I see username is empty while trying to call web service.1.6KViews0likes2CommentsFail to Run SoapUI Testrunner from Jenkins: ERROR [SoapUIProTestCaseRunner] java.lang.Exception: Fai
Trying to run my tests in Jenkins. Tests run from GUI and from Windows command line (I've copied testrunner command from interface): However, when I run the same batch command from Jenkins, I'm getting: Test #14 Console [Jenkins] ERROR [SoapUIProTestCaseRunner] java.lang.Exception: Failed to load the project file Any ideas how to fix it?1.7KViews0likes1CommentHow to get reporting at test step level instead of test case level what surefire currently provides
I am running my test via jenkins and i have surefire plugin which generates xml reports in my workspace. But this report has run status of all test suites and all test cases. Each test case will have failed test step information too. I want a way by which i can have run status of each test step whether failed or passed. Can some one help here if we can do this with surefire plugin or with some other way/plugin. Thanks a lot.4.4KViews0likes7Comments