Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
buildscript { | |
ext { | |
springBootVersion = '1.1.0.RELEASE' | |
} | |
repositories { | |
mavenLocal() | |
jcenter() | |
} |
/* ******************************************************************************************* | |
* THE UPDATED VERSION IS AVAILABLE AT | |
* https://github.com/LeCoupa/awesome-cheatsheets | |
* ******************************************************************************************* */ | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html |
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
1. Mock-Server: http://www.mock-server.com/ | |
2. SOAPUI Open Source | |
3. ServiceV Tool | |
4. Wiremock: http://wiremock.org/ | |
5. Hoverfly: https://hoverfly.readthedocs.io/en/latest/pages/keyconcepts/keyconcepts.html | |
6. Mokito | |
7. Jmeter |
import static com.eviware.soapui.impl.wsdl.teststeps.registry.HttpRequestStepFactory.HTTPREQUEST_TYPE | |
//Provide the http request endpoint in the below | |
def endpoint = 'http://google.com' | |
//Valid http method GET | PUT | POST | DELETE etc | |
def method = 'DELETE' | |
def stepName = 'httpRequestStep7' | |
def tc=testRunner.testCase | |
//Adds http request step to given test case assumes tc is valid object of TestCase | |
tc.addTestStep(HTTPREQUEST_TYPE , stepName, endpoint, method) |
import static com.eviware.soapui.impl.wsdl.teststeps.registry.HttpRequestStepFactory.HTTPREQUEST_TYPE | |
//Provide the http request endpoint in the below | |
def endpoint = 'http://google.com' | |
//Valid http method GET | PUT | POST | DELETE etc | |
def method = 'POST' | |
def stepName = 'httpPostRequestStep' | |
def tc=testRunner.testCase.getTestStepByName(stepName).s | |
//Adds http request step to given test case assumes tc is valid object of TestCase | |
tc.addTestStep(HTTPREQUEST_TYPE , stepName, endpoint, method) |
def ts = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss.SSS"); //Time Steamp Object | |
def randomString = System.currentTimeMillis() //Current Epouch object | |
Create a three test suites | |
Each tetestSuite with three testcases: | |
Each Test Cases must have three groovy steps | |
Each Step has one string "I am in Step{1/2/3}" | |
Test Following | |
testRunner.cancel(arg0) | |
testRunner.fail(arg0) | |
testRunner.results | |
testRunner.status | |
testRunner.getReason() |