Need 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 machine504Views0likes2CommentsTestEngine + Jenkins Plugin: Execute list of Project/Suite/Case SoapUI tests
In their current implementation 1.) the TestEngine needs to be provided a zip with all required files by the calling client 2.) the TestEngine Jenkins plugin will execute one Project/Suite/Case per Jenkins job Problem: This setup does not scale to execute many Project/Suite/Case SoapUI tests in a row Suggestion: ad 1.) a.) Provide TestEngine the ability to access/checkout GIT repos containing SoapUI Projects b.) Add an API to TestEngine that will take the Project/Suite/Case/... parameters and pick all required files from above local checkout area --> Like this no files need to be created/transfered to the TestEngine server What still needs to be done is the specification of the list of Project/Suite/Case to be executed. This could be provided by one or more config files maintained in the GIT repo(s) ad 2.) In case the TestEngine runs on the Jenkins slave(s), the Jenkins job could - checkout the GIT repo(s) - locate the config file(s) containing the list of /Project/Suite/Case SoapUI Tests in the checkout area (e.g. via parameter) - loop the config file(s) calling the TestEngine API with Project/Suite/Case/... parameters --> like this - The TestEngine is running as a server (contrary to testruner.sh) - The invocation of many Project/Suite/Case's will run with minimal overhead (presumably msecs instead of secs) - all required files are taken from a repo -> any updates propagate to TestEngine automatically Remark: This type of automated execution of SoapUI Test from different Project/Suite/Case needs to complemented with a suitable test report (e.g. csv file with Project/Suite/Case/Step, timeStamp, Status, ExecTime, ErrorMsg, ...1.9KViews1like1CommentReadyAPI 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.7KViews0likes5CommentsHealth-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.3.9KViews0likes18CommentsSoapUI 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.6KViews0likes2Comments