testopia.API
Class Build
java.lang.Object
testopia.API.Build
public class Build
- extends java.lang.Object
Allows the user to get a buildID from it's name, or it's name from the buildID.
It can also create and update a build
- Author:
- anelson
Constructor Summary |
Build(java.lang.String userName,
java.lang.String password,
java.net.URL url)
|
Method Summary |
int |
getBuildIDByName(java.lang.String buildName)
|
java.lang.String |
getBuildNameByID(int id)
|
int |
makeBuild(java.lang.String name,
int productID,
java.lang.Boolean isactive)
Creates a new build and returns the buildID, 0 is returned if an error occurs |
void |
updateBuild(java.lang.String name,
java.lang.String milestone,
java.lang.Boolean isactive,
java.lang.String description,
int buildID)
Updates builds on testopia with the specified parameters |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Build
public Build(java.lang.String userName,
java.lang.String password,
java.net.URL url)
- Parameters:
userName
- - your testopia/bugzilla usernamepassword
- - the password for your accountlogin
- - the user you want attributes returned forurl
- - the url of the testopia server
makeBuild
public int makeBuild(java.lang.String name,
int productID,
java.lang.Boolean isactive)
- Creates a new build and returns the buildID, 0 is returned if an error occurs
- Parameters:
name
- productID
-
updateBuild
public void updateBuild(java.lang.String name,
java.lang.String milestone,
java.lang.Boolean isactive,
java.lang.String description,
int buildID)
- Updates builds on testopia with the specified parameters
- Parameters:
name
- string - the name of the build. Can be nullmilestone
- string - the milestone. Can be nullisactive
- Boolean - if the build is active. Can be nulldescription
- String - description of the build. Can be nullbuildID
- int - the buildID
getBuildIDByName
public int getBuildIDByName(java.lang.String buildName)
- Parameters:
BuildName
- the name of the build that the ID will be returned for. 0 Will be
returned if the build can't be found
- Returns:
- the ID of the specified product
getBuildNameByID
public java.lang.String getBuildNameByID(int id)
- Parameters:
id
- the ID of the build name that will be returned. Null is returned
if the product can't be found
- Returns:
- the product name that corresponds the specified product ID