|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttestopia.API.TestopiaTestCase
public class TestopiaTestCase
Constructor Summary | |
---|---|
TestopiaTestCase(java.lang.String userName,
java.lang.String password,
java.net.URL url,
java.lang.Integer caseID)
|
Method Summary | |
---|---|
void |
addComponent(int componentID)
Adds a component to the testCase |
java.util.HashMap<java.lang.String,java.lang.Object> |
getAttributes()
Gets the attributes of the test case, caseID must not be null |
int |
getBuildIDByName(java.lang.String categoryName)
|
java.lang.Object[] |
getComponents()
Gets the components as an array of hashMaps or null if an error occurs |
static java.lang.Object[] |
getList(java.lang.String userName,
java.lang.String password,
java.net.URL url,
java.util.HashMap<java.lang.String,java.lang.Object> values)
Returns hashmap(s) of testcases that match the inputed values |
int |
makeTestCase(int authorID,
int caseStatusID,
int categoryID,
boolean isAutomated,
int planID,
java.lang.String summary,
java.lang.Integer priorityID)
|
void |
removeComponent(int componentID)
Removes a component to the testCase |
void |
setAlias(java.lang.String alias)
|
void |
setArguments(java.lang.String arguments)
|
void |
setCanview(boolean canview)
|
void |
setCaseStatusID(java.lang.String caseStatusID)
|
void |
setCategoryID(int categoryID)
|
void |
setDefaultTesterID(int defaultTesterID)
|
void |
setIsAutomated(boolean isAutomated)
|
void |
setPriorityID(int priorityID)
|
void |
setRequirement(java.lang.String requirement)
|
void |
setScript(java.lang.String script)
|
void |
setSummary(java.lang.String summary)
|
void |
update()
Updates are not called when the .set is used. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestopiaTestCase(java.lang.String userName, java.lang.String password, java.net.URL url, java.lang.Integer caseID)
userName
- your bugzilla/testopia userNamepassword
- your passwordurl
- the url of the testopia servercaseID
- - Integer the caseID, you may enter null here if you are creating a test caseMethod Detail |
---|
public void setAlias(java.lang.String alias)
alias
- String - the new Aliaspublic void setArguments(java.lang.String arguments)
arguments
- String - the new argumentspublic void setCanview(boolean canview)
canview
- public void setCaseStatusID(java.lang.String caseStatusID)
caseStatusID
- String - the new case Status IDpublic void setCategoryID(int categoryID)
categoryID
- int - the new categorIDpublic void setDefaultTesterID(int defaultTesterID)
defaultTesterID
- int - the new defaultTesterIDpublic void setIsAutomated(boolean isAutomated)
isAutomated
- boolean - true if it's to be set automated,
false otherwisepublic void setPriorityID(int priorityID)
priorityID
- - int the new priorityIDpublic void setRequirement(java.lang.String requirement)
requirement
- String - the new requirementpublic void setScript(java.lang.String script)
script
- String - the new scriptpublic void setSummary(java.lang.String summary)
summary
- String - the new summarypublic void addComponent(int componentID) throws java.lang.Exception
componentID
- the ID of the component that will be added to the
testCase
java.lang.Exception
public void removeComponent(int componentID) throws java.lang.Exception
componentID
- the ID of the component that will be removed from the
testCase
java.lang.Exception
public java.lang.Object[] getComponents() throws java.lang.Exception
java.lang.Exception
public void update() throws java.lang.Exception
java.lang.Exception
- if planID is null
(you made the TestCase with a null caseID and have not created a new test plan)public int makeTestCase(int authorID, int caseStatusID, int categoryID, boolean isAutomated, int planID, java.lang.String summary, java.lang.Integer priorityID)
authorID
- the bugzilla/testopia ID of the authorcaseStatusID
- categoryID
- isAutomated
- planID
- the ID of the plan the testCase will be added tosummary
- string - the summary of the testCase. Null allowedpriorityID
- Integer - the priority of the testCase (0-5). Null allowed
public java.util.HashMap<java.lang.String,java.lang.Object> getAttributes() throws java.lang.Exception
java.lang.Exception
public static java.lang.Object[] getList(java.lang.String userName, java.lang.String password, java.net.URL url, java.util.HashMap<java.lang.String,java.lang.Object> values)
userName
- your bugzilla/testopia userNamepassword
- your passwordurl
- the url of the testopia servervalues
- a HashMap with the parameters that will be searched for
if you supply the pair "case_id", 5 then case_id 5 will be returned. Any combination
of testcase attributes can be entered and the result will be all the matches that fit
the inputed values
public int getBuildIDByName(java.lang.String categoryName)
categoryName
- the name of the category that the ID will be returned for. This will search within the
test plans that this test case belongs to and return the first category with a matching name. 0 Will be
returned if the category can't be found
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |