net.praqma.jenkins.rqm.model
Class TestCase

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

public class TestCase
extends RqmObject<TestCase>

Author:
Praqma
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.praqma.jenkins.rqm.model.RqmObject
rqmObjectResourceUrl
 
Constructor Summary
TestCase()
           
TestCase(String rqmObjectResourceUrl)
           
TestCase(String rqmObjectResourceUrl, String testCaseTitle)
           
 
Method Summary
 HashMap<String,String> attributes()
           
 List<TestCase> createOrUpdate(RqmParameterList parameters)
          Override this method if you wish to push data from RQM (PUT && POST)
 boolean equals(Object obj)
           
 String getDescriptor()
           
 String getResourceName()
           
 List<TestScript> getScripts()
           
 String getTestCaseTitle()
           
 TestCase initializeSingleResource(String xml)
          Expects an internal resource id.
 List<TestCase> read(RqmParameterList parameters)
          Override this method if you wish to read data from RQM (Primarily GET)
 void setScripts(List<TestScript> scripts)
           
 void setTestCaseTitle(String testCaseTitle)
           
 String toString()
           
 
Methods inherited from class net.praqma.jenkins.rqm.model.RqmObject
createObject, 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

TestCase

public TestCase()

TestCase

public TestCase(String rqmObjectResourceUrl)

TestCase

public TestCase(String rqmObjectResourceUrl,
                String testCaseTitle)
Method Detail

getScripts

public List<TestScript> getScripts()
Returns:
the scripts

setScripts

public void setScripts(List<TestScript> scripts)
Parameters:
scripts - the scripts to set

getTestCaseTitle

public String getTestCaseTitle()
Returns:
the testCaseTitle

setTestCaseTitle

public void setTestCaseTitle(String testCaseTitle)
Parameters:
testCaseTitle - the testCaseTitle to set

read

public List<TestCase> 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<TestCase>
Returns:
a 'constructed' rqm object. Read populates the object given an array of parameters
Throws:
IOException

attributes

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

createOrUpdate

public List<TestCase> 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<TestCase>
Returns:
Create or updates the object given an array of parameters. Use the initializeSingleResource() method to parse the object given the returned XML

initializeSingleResource

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

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

toString

public String toString()
Overrides:
toString in class Object

getDescriptor

public String getDescriptor()

equals

public boolean equals(Object obj)
Overrides:
equals in class RqmObject<TestCase>

getResourceName

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


Copyright © 2004-2014. All Rights Reserved.