|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jameleon.bean.TestCase
public class TestCase
This class represents a test case. This is currently used only for test case documentation generation A TestCase consists of:
Field Summary | |
---|---|
protected String |
application
The application being tested |
protected String |
author
The person that wrote the test case |
protected Set |
bugs
The bug related to this test case |
protected String |
encoding
The encoding to use in the toXML() method |
protected String |
file
The test case file |
protected String |
functionalPointTested
The functional point tested by the test case |
protected String |
name
The name of the test case |
protected String |
organization
The organization the test case is set to execute against. |
protected List |
sessions
A list of sessions in this test case |
protected String |
summary
A brief description of the test case |
protected String |
testCaseId
The unique id of the test case. |
protected String |
testCaseRequirement
The link to the requirement being tested |
protected String |
testEnvironment
The test evironment this test case is being test against |
protected List |
testLevels
The level(s) of the test case - SMOKE, FUNCTIONAL, REGRESSION, ACCEPTANCE, to list a few |
Constructor Summary | |
---|---|
TestCase()
Default constructor only used to initialize variables |
Method Summary | |
---|---|
void |
addBug(String bug)
|
void |
addSession(Session s)
|
void |
addTestLevel(String testLevel)
|
String |
getApplication()
|
String |
getAuthor()
|
Set |
getBugs()
|
String |
getEncoding()
|
String |
getFile()
|
String |
getFunctionalPointTested()
|
String |
getName()
|
String |
getOrganization()
|
String |
getScriptContents()
|
List |
getSessions()
|
String |
getSummary()
|
String |
getTestCaseId()
|
String |
getTestCaseRequirement()
|
String |
getTestEnvironment()
|
List |
getTestLevels()
|
void |
readFromScript(String script)
Populates this test case object from a test script script |
void |
setApplication(String application)
|
void |
setAuthor(String author)
|
void |
setEncoding(String encoding)
Sets the encoding to use in the toXML() results |
void |
setFile(String file)
|
void |
setFunctionalPointTested(String functionalPointTested)
|
void |
setName(String name)
|
void |
setOrganization(String organization)
|
void |
setSummary(String summary)
|
void |
setTestCaseId(String testCaseId)
|
void |
setTestCaseRequirement(String testCaseRequirement)
|
void |
setTestEnvironment(String testEnvironment)
|
void |
setTestLevels(LinkedList testLevels)
|
String |
toXML()
Implement this method the same way the toString method would be implemented, except
the object's information should be in a valid XML format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String name
protected String summary
protected String author
protected String application
protected Set bugs
protected String functionalPointTested
protected List testLevels
protected String file
protected String encoding
protected String testCaseId
protected String organization
protected String testCaseRequirement
protected String testEnvironment
protected List sessions
Constructor Detail |
---|
public TestCase()
Method Detail |
---|
public void addBug(String bug)
public void addSession(Session s)
public void addTestLevel(String testLevel)
public String getApplication()
public String getAuthor()
public Set getBugs()
public String getEncoding()
public String getFile()
public String getScriptContents()
public String getFunctionalPointTested()
public String getName()
public String getOrganization()
public List getSessions()
public String getSummary()
public String getTestCaseId()
public String getTestCaseRequirement()
public String getTestEnvironment()
public List getTestLevels()
public void readFromScript(String script)
public void setApplication(String application)
public void setAuthor(String author)
public void setEncoding(String encoding)
encoding
- - the encoding to use in the toXML() resultspublic void setFile(String file)
public void setFunctionalPointTested(String functionalPointTested)
public void setName(String name)
public void setOrganization(String organization)
public void setSummary(String summary)
public void setTestCaseId(String testCaseId)
public void setTestCaseRequirement(String testCaseRequirement)
public void setTestEnvironment(String testEnvironment)
public void setTestLevels(LinkedList testLevels)
public String toXML()
XMLable
toString
method would be implemented, except
the object's information should be in a valid XML format.
toXML
in interface XMLable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |