public class HudsonTestRunProvider extends TestRunProvider
TestRunProvider to provide TestRuns
created by the CI-Server Hudson.| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_ARTIFACT_FOLDER
The hudson artifact folder property.
|
static String |
PROP_DIFF_JOB
The property of the hudson diff job.
|
static String |
PROP_HUDSON
The prefix for hudson properties.
|
static String |
PROP_JOB
The name of the hudson job property.
|
static String |
PROP_PORT
The hudson port property.
|
static String |
PROP_URL
The hudson url property.
|
static String[] |
VALID_STATES
An array containing all valid states of a hudson build.
|
| Constructor and Description |
|---|
HudsonTestRunProvider()
Standard constructor using the last build and the build before the last
build for reading testruns.
|
HudsonTestRunProvider(int firstBuildNumber,
int secondBuildNumber)
Constructor using tow special numbers for testruns.
|
| Modifier and Type | Method and Description |
|---|---|
List<TestConfig> |
getAllConfigs() |
static org.eclipse.emf.ecore.resource.Resource |
getDiffResource() |
TestRun[] |
getTestRuns() |
setConfigpublic static final String PROP_HUDSON
public static final String PROP_URL
public static final String PROP_ARTIFACT_FOLDER
public static final String PROP_PORT
public static final String PROP_JOB
public static final String PROP_DIFF_JOB
public static final String[] VALID_STATES
public HudsonTestRunProvider()
throws org.dom4j.DocumentException,
IOException
org.dom4j.DocumentException - If it cannot read the buildnumbers correctly from hudson.IOException - If it cannot read the buildnumbers correctly from hudson.public HudsonTestRunProvider(int firstBuildNumber,
int secondBuildNumber)
firstBuildNumber - The number of the first build (first from the last one
backwards, so it is later than the second one).secondBuildNumber - The number of the second build.public TestRun[] getTestRuns() throws IOException
getTestRuns in class TestRunProviderTestRuns specified by the config and this
provider.IOException - If there is an error reading the TestRuns.public List<TestConfig> getAllConfigs()
TestConfig which are loadable via this HudsonTestRunProvider.public static org.eclipse.emf.ecore.resource.Resource getDiffResource()
throws MalformedURLException,
org.dom4j.DocumentException
org.dom4j.DocumentException - in case an error occurs during obtainment of the resource.MalformedURLException - in case an error occurs during obtainment of the resource.Copyright © 2017. All rights reserved.