public class NerrvanaExecution extends Object
Parses and wraps information about tests execution in Nerrvana.
testExecutionResults(AbstractBuild, NerrvanaPluginSettings)
This class expects to get following response from Nerrvana API:
{@code
4547
520
1342533469
9234
winxp_sp3_firefox_110
https://xxx.ftps.nerrvana.com/demo_space/_test_runs/Testrun-Name/2022_01_22_22_22_22/winxp_sp3_firefox_110/
}
Modifier and Type | Field and Description |
---|---|
String |
id |
ArrayList<Platform> |
platforms |
String |
starttime |
String |
status |
String |
testrun_description |
String |
testrun_id |
String |
testrun_name |
Constructor and Description |
---|
NerrvanaExecution() |
Modifier and Type | Method and Description |
---|---|
static Document |
fatalResult(Document lastExecutionResult,
Exception e,
NerrvanaPluginSettings settings)
Adds message about fatal error to the last <execution> node returned by Nerrvana
or creates placeholder containing <execution> node when no NerrvanaExecution object
has been returned by Nerrvana, e.g on connection failure.
|
String |
getId() |
ArrayList<Platform> |
getPlatforms() |
String |
getStarttime() |
String |
getStatus() |
String |
getTestrunDescription() |
String |
getTestrunName() |
static boolean |
testExecutionResults(hudson.model.AbstractBuild<?,?> build,
NerrvanaPluginSettings settings)
Tests if execution of selenium tests in Nerrvana was successful.
|
String |
toString() |
static ArrayList<NerrvanaExecution> |
xml2list(Document doc)
Converts XML document into list of NerrvanaExecution objects
|
public String id
public String starttime
public String status
public String testrun_id
public String testrun_name
public String testrun_description
public String getId()
public String getTestrunName()
public String getTestrunDescription()
public String getStarttime()
public String getStatus()
public static boolean testExecutionResults(hudson.model.AbstractBuild<?,?> build, NerrvanaPluginSettings settings)
UserMessageLevel
for message levels
build
- settings
- public static Document fatalResult(Document lastExecutionResult, Exception e, NerrvanaPluginSettings settings) throws Exception
lastExecutionResult
- last XML returned by Nerrvana servere
- exception caused fatal errorsettings
- settings object. Actually we need names of platforms for error reportException
public static ArrayList<NerrvanaExecution> xml2list(Document doc) throws Exception
doc
- document containing <execution> nodesException
Copyright © 2004-2013 Deep Shift Labs. All Rights Reserved.