com.deepshiftlabs.nerrvana
Class Testrun

java.lang.Object
  extended by com.deepshiftlabs.nerrvana.Testrun

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> 
 

Version:
1.00
Author:
Deep Shift Labs, Victor Orlov

Field Summary
 String description
           
 String exec_id
           
 String id
           
 String name
           
 
Constructor Summary
Testrun()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public String id

exec_id

public String exec_id

name

public String name

description

public String description
Constructor Detail

Testrun

public Testrun()
Method Detail

getId

public String getId()

getExecid

public String getExecid()

getName

public String getName()

getDescription

public String getDescription()

assembleName

public static String assembleName(String test_run_name,
                                  hudson.model.AbstractBuild<?,?> build)
Parameters:
test_run_name -
build -
Returns:
assembled test run name

assembleDescription

public static String assembleDescription(hudson.FilePath workspace,
                                         NerrvanaPluginSettings settings)
                                  throws Exception
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

Parameters:
workspace -
settings -
Returns:
test run description
Throws:
Exception

getTestrun

public static Testrun getTestrun(Node parent)
                          throws Exception
Maps XML document to Testrun object

Parameters:
parent - parent XML node to start mapping from
Returns:
mapped object
Throws:
Exception


Copyright © 2004-2012 Deep Shift Labs. All Rights Reserved.