|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttestopia.API.TestPlan
public class TestPlan
Creates a test plan object, that allows the user to create, change and get test plan values
Constructor Summary | |
---|---|
TestPlan(java.lang.String userName,
java.lang.String password,
java.net.URL url,
java.lang.Integer planID)
|
Method Summary | |
---|---|
java.util.HashMap<java.lang.String,java.lang.Object> |
getAttributes()
Gets the attributes of the test plan, planID must not be null |
java.lang.Object[] |
getBuilds()
|
java.util.HashMap<java.lang.String,java.lang.Object> |
getCategories()
|
java.lang.Object[] |
getComponents()
|
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 testplans that match the inputed values |
java.lang.Object[] |
getTestCases()
|
java.lang.Object[] |
getTestRuns()
|
int |
makeTestPlan(java.lang.String authorID,
java.lang.String productID,
java.lang.String defaultProductVersion,
java.lang.String typeID,
java.lang.String name)
|
void |
setAuthorID(int authorID)
|
void |
setCreationDate(java.lang.String creationDate)
|
void |
setDefaultProductVersion(java.lang.String defaultProductVersion)
|
void |
setIsActive(boolean isActive)
|
void |
setName(java.lang.String name)
|
void |
setProductID(int productID)
|
void |
setTypeID(int typeID)
|
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 TestPlan(java.lang.String userName, java.lang.String password, java.net.URL url, java.lang.Integer planID)
userName
- your bugzilla/testopia userNamepassword
- your passwordurl
- the url of the testopia serverplanID
- - Integer the planID, you may enter null here if you are creating a test planMethod Detail |
---|
public int makeTestPlan(java.lang.String authorID, java.lang.String productID, java.lang.String defaultProductVersion, java.lang.String typeID, java.lang.String name)
authorID
- the bugzilla/testopia ID of the authorproductID
- the bugzilla/testopia ID of the productdefaultProductVersion
- typeID
- name
- the name of the test plan
public void update() throws java.lang.Exception
java.lang.Exception
- if planID is null
(you made the TestPlan with a null planID and have not created a new test plan)public void setAuthorID(int authorID)
authorID
- int - the bugzilla authorID that the TestPlan will be changed topublic void setDefaultProductVersion(java.lang.String defaultProductVersion)
defaultProductVersion
- String - the default product version the test plan will be changed topublic void setCreationDate(java.lang.String creationDate)
creationDate
- String - the creation date the test plan will be changed to (Format: yyyy-mm-dd hh:mm:ss)public void setIsActive(boolean isActive)
isActive
- boolean - change if the test plan is active or notpublic void setName(java.lang.String name)
name
- String - the new name of the test planpublic void setProductID(int productID)
productID
- int - the new product ID of the test planpublic void setTypeID(int typeID)
typeID
- int - the new type of the test planpublic java.util.HashMap<java.lang.String,java.lang.Object> getAttributes() throws java.lang.Exception
java.lang.Exception
public java.util.HashMap<java.lang.String,java.lang.Object> getCategories() throws java.lang.Exception
java.lang.Exception
public java.lang.Object[] getBuilds() throws java.lang.Exception
java.lang.Exception
public java.lang.Object[] getComponents() 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 "plan_id", 5 then plan_id 5 will be returned. Any combination
of testplan attributes can be entered and the result will be all matches that fit
the inputed values
public java.lang.Object[] getTestCases() throws java.lang.Exception
java.lang.Exception
public java.lang.Object[] getTestRuns() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |