net.praqma.jenkins.rqm.model
Class TestPlan

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

public class TestPlan
extends RqmObject<TestPlan>

Author:
Praqma A test plan can contain both testCases and test suites.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.praqma.jenkins.rqm.model.RqmObject
rqmObjectResourceUrl
 
Constructor Summary
TestPlan()
           
TestPlan(String testPlanName)
           
 
Method Summary
 HashMap<String,String> attributes()
           
 String getFeedUrlForTestPlans(String host, int port, String context, String project)
          Method that returns a basic list of feed data.
 org.apache.commons.httpclient.NameValuePair[] getParametersForFeedUrlForTestPlans()
           
 String getResourceName()
           
 Set<TestCase> getTestCases()
           
 String getTestPlanTitle()
           
 Set<TestSuite> getTestSuites()
           
 TestPlan initializeSingleResource(String xml)
          We initalize the list of test suites by their assocated TestPlanName Two cases: Case 1: TestCase directly in plan Case 2: TestCase
 List<TestPlan> read(RqmParameterList parameters)
          Basic 'Read' operation (GET) for a test plan
 void setTestCases(HashSet<TestCase> testCases)
           
 void setTestPlanTitle(String testPlanTitle)
           
 void setTestSuites(Set<TestSuite> testSuites)
           
 String toString()
           
 
Methods inherited from class net.praqma.jenkins.rqm.model.RqmObject
createObject, createOrUpdate, 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

TestPlan

public TestPlan()

TestPlan

public TestPlan(String testPlanName)
Method Detail

attributes

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

initializeSingleResource

public TestPlan initializeSingleResource(String xml)
                                  throws RQMObjectParseException
We initalize the list of test suites by their assocated TestPlanName Two cases: Case 1: TestCase directly in plan Case 2: TestCase

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

getFeedUrlForTestPlans

public String getFeedUrlForTestPlans(String host,
                                     int port,
                                     String context,
                                     String project)
                              throws UnsupportedEncodingException
Method that returns a basic list of feed data. We include everything for a given test plan.

Parameters:
host -
port -
context -
project -
Returns:
Throws:
UnsupportedEncodingException

getParametersForFeedUrlForTestPlans

public org.apache.commons.httpclient.NameValuePair[] getParametersForFeedUrlForTestPlans()

toString

public String toString()
Overrides:
toString in class Object

getTestCases

public Set<TestCase> getTestCases()
Returns:
the testCases

setTestCases

public void setTestCases(HashSet<TestCase> testCases)
Parameters:
testCases - the testCases to set

getTestSuites

public Set<TestSuite> getTestSuites()
Returns:
the testSuites

setTestSuites

public void setTestSuites(Set<TestSuite> testSuites)
Parameters:
testSuites - the testSuites to set

getTestPlanTitle

public String getTestPlanTitle()
Returns:
the testPlanTitle

setTestPlanTitle

public void setTestPlanTitle(String testPlanTitle)
Parameters:
testPlanTitle - the testPlanTitle to set

read

public List<TestPlan> read(RqmParameterList parameters)
                    throws IOException
Basic 'Read' operation (GET) for a test plan

Overrides:
read in class RqmObject<TestPlan>
Parameters:
parameters -
Returns:
Throws:
IOException

getResourceName

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


Copyright © 2004-2014. All Rights Reserved.