net.praqma.jenkins.rqm.model
Class TestSuite

java.lang.Object
  extended by net.praqma.jenkins.rqm.model.RqmObject<TestSuite>
      extended by net.praqma.jenkins.rqm.model.TestSuite
All Implemented Interfaces:
Serializable

public class TestSuite
extends RqmObject<TestSuite>

Author:
Praqma
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.praqma.jenkins.rqm.model.RqmObject
rqmObjectResourceUrl
 
Constructor Summary
TestSuite()
           
TestSuite(String rqmObjectResourceUrl)
           
TestSuite(String rqmObjectResourceUrl, String suiteName)
           
 
Method Summary
 HashMap<String,String> attributes()
           
 List<TestSuite> createOrUpdate(RqmParameterList parameters)
          Override this method if you wish to push data from RQM (PUT && POST)
 String getResourceName()
           
 String getSuiteTitle()
           
 Set<TestCase> getTestcases()
           
 Set<TestSuiteExecutionRecord> getTestSuiteExecutionRecords()
           
 String getTestSuiteTitle()
           
 TestSuite initializeSingleResource(String xml)
          Expects an internal resource id.
 List<TestSuite> read(RqmParameterList parameters)
          Override this method if you wish to read data from RQM (Primarily GET)
 void setSuiteTitle(String suiteTitle)
           
 void setTestcases(Set<TestCase> testcases)
           
 void setTestSuiteExecutionRecords(Set<TestSuiteExecutionRecord> testSuiteExecutionRecords)
           
 void setTestSuiteTitle(String testSuiteTitle)
           
 String toString()
           
 
Methods inherited from class net.praqma.jenkins.rqm.model.RqmObject
createObject, equals, getDescriptor, getDescriptor, getDocumentReader, getDocumentReader, getInternalId, getRqmObjectResourceUrl, hashCode, intializeSingleResource, readMultiple, setRqmObjectResourceUrl
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestSuite

public TestSuite()

TestSuite

public TestSuite(String rqmObjectResourceUrl)

TestSuite

public TestSuite(String rqmObjectResourceUrl,
                 String suiteName)
Method Detail

initializeSingleResource

public TestSuite initializeSingleResource(String xml)
                                   throws RQMObjectParseException
Description copied from class: RqmObject
Expects an internal resource id.

Specified by:
initializeSingleResource in class RqmObject<TestSuite>
Returns:
Throws:
RQMObjectParseException

getTestcases

public Set<TestCase> getTestcases()
Returns:
the testcases

setTestcases

public void setTestcases(Set<TestCase> testcases)
Parameters:
testcases - the testcases to set

toString

public String toString()
Overrides:
toString in class Object

getSuiteTitle

public String getSuiteTitle()
Returns:
the testSuiteTitle

setSuiteTitle

public void setSuiteTitle(String suiteTitle)
Parameters:
suiteTitle - the testSuiteTitle to set

getTestSuiteTitle

public String getTestSuiteTitle()
Returns:
the testSuiteTitle

setTestSuiteTitle

public void setTestSuiteTitle(String testSuiteTitle)
Parameters:
testSuiteTitle - the testSuiteTitle to set

read

public List<TestSuite> read(RqmParameterList parameters)
                     throws IOException
Description copied from class: RqmObject
Override this method if you wish to read data from RQM (Primarily GET)

Overrides:
read in class RqmObject<TestSuite>
Returns:
a 'constructed' rqm object. Read populates the object given an array of parameters
Throws:
IOException

createOrUpdate

public List<TestSuite> createOrUpdate(RqmParameterList parameters)
Description copied from class: RqmObject
Override this method if you wish to push data from RQM (PUT && POST)

Overrides:
createOrUpdate in class RqmObject<TestSuite>
Returns:
Create or updates the object given an array of parameters. Use the initializeSingleResource() method to parse the object given the returned XML

attributes

public HashMap<String,String> attributes()
Overrides:
attributes in class RqmObject<TestSuite>

getTestSuiteExecutionRecords

public Set<TestSuiteExecutionRecord> getTestSuiteExecutionRecords()
Returns:
the testSuiteExecutionRecords

setTestSuiteExecutionRecords

public void setTestSuiteExecutionRecords(Set<TestSuiteExecutionRecord> testSuiteExecutionRecords)
Parameters:
testSuiteExecutionRecords - the testSuiteExecutionRecords to set

getResourceName

public String getResourceName()
Specified by:
getResourceName in class RqmObject<TestSuite>


Copyright © 2004-2014. All Rights Reserved.