testopia.API
Class Product
java.lang.Object
testopia.API.Product
public class Product
- extends java.lang.Object
Allows the user to get a productID from it's name, or it's name from the productID. It's also able to return a
product's milestones'.
- Author:
- anelson
|
Constructor Summary |
Product(java.lang.String userName,
java.lang.String password,
java.net.URL url)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Product
public Product(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
getProductIDByName
public int getProductIDByName(java.lang.String productName)
- Parameters:
productName - the name of the product, that the ID will be returned for. 0 Will be
returned if the product can't be found
- Returns:
- the ID of the specified product
getProductNameByID
public java.lang.String getProductNameByID(int id)
- Parameters:
id - the ID of the product 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
getMilestones
public java.lang.Object[] getMilestones(int id)