public class Testrun extends Object
Wraps information about Nerrvana test run
This class expects following XML returned by Nerrvana API call:
<testruns>
<testrun>
<id>1181</id>
<space_id>676</space_id>
<name><![CDATA[First_created_by_API]]></name>
<description><![CDATA[Bla bla bla]]></description>
<executable_file><![CDATA[rebuildAndRun.sh]]></executable_file>
<platforms>
<platform>
<code>winxp_sp3_firefox_3</code> <name>Firefox 3/WinXP SP3</name> <platform>
</platforms> <start_date>2012-02-21</start_date> <week_days>Monday,
Tuesday</week_days> <start_time>20:45</start_time>
<period_type>hr</period_type> <periodicity>10</periodicity>
<on_pause>1</on_pause> <validation>1</validation>
<ftp_name>First_created_by_API</ftp_name>
<next_executions> <next_execution> <id>1767812</id>
<start_datetime>2012-02-21 20:46:19</start_datetime> </next_execution>
</next_executions> </testrun> </testruns>
Modifier and Type | Field and Description |
---|---|
String |
description |
String |
exec_id |
String |
id |
String |
name |
Constructor and Description |
---|
Testrun() |
Modifier and Type | Method and Description |
---|---|
static String |
assembleDescription(hudson.FilePath workspace,
NerrvanaPluginSettings settings)
Assembles test run description from static part contained in NerrvanaPluginSettings.test_run_descr
and dynamic part contained in the file defined as NerrvanaPluginSettings.test_run_descr_file
|
static String |
assembleName(String test_run_name,
hudson.model.AbstractBuild<?,?> build) |
String |
getDescription() |
String |
getExecid() |
String |
getId() |
String |
getName() |
static Testrun |
getTestrun(Node parent)
Maps XML document to Testrun object
|
public String id
public String exec_id
public String name
public String description
public String getId()
public String getExecid()
public String getName()
public String getDescription()
public static String assembleName(String test_run_name, hudson.model.AbstractBuild<?,?> build)
test_run_name
- build
- public static String assembleDescription(hudson.FilePath workspace, NerrvanaPluginSettings settings) throws Exception
workspace
- settings
- Exception
Copyright © 2004-2013 Deep Shift Labs. All Rights Reserved.