Méthode | Description | |
---|---|---|
ALMClient ( string url, string username, string password, string domain, string project ) : System |
Construct with the url (just the https://something.saas.hp.com bit)
|
|
ALMClient ( string url, string username, string password, string domain, string project, string version ) : System |
Construct with the url (just the https://something.saas.hp.com bit)
|
|
Dispose ( ) : void | ||
GetDefects ( ) : List |
Get the list of defects
|
|
IsAuthenticated ( ) : bool |
Checks whether the user is currently authenticated
|
|
Login ( ) : bool |
Call this before calling other methods - will throw an ALMClientException on failure
|
|
Logout ( ) : bool |
Logs the user out of the session
|
|
UpdateDefect ( string id, |
Update an ALM item
|
Méthode | Description | |
---|---|---|
AddAuthTokensAsNecessary ( RestSharp request ) : RestSharp.IRestRequest |
Adds the authentication tokens to the request if the parameters don't include them
|
|
AddDefect ( IRestRequest req ) : void |
Add the defect segment
|
|
AddDefectAndId ( string id, |
Add the defect and defect Id
|
|
AddDomainAndProject ( |
Add the domain and project to the request
|
|
CleanRequest ( IRestRequest &request ) : void |
Cleans the request before processing in an attempt to minimize errors
|
|
ConvertToFieldXml ( string>.Dictionary |
Converts the dictionary into an xml string
|
|
Execute ( IRestRequest request, string message ) : IRestResponse |
Executes a query against HP ALM The session is updated before each query and doesn't need to be managed elsewhere (except for Login/Logout) |
|
FindCookie ( RestSharp client, string cookieName, Action |
Enumerates the client's cookie container looking for the cookie requested and calls the action when the cookie is found
|
|
FindTotal ( System.Xml.Linq.XDocument doc ) : int |
Find the total count
|
|
GetExistingSessionMethod ( ) : RestSharp.Method |
Determines the current session state and returns the correct action to continue working the same session
|
|
ManageServerSessions ( Func |
Manages the session credentials
|
|
ReadDefects ( List |
Get the list of defects
|
|
SetTokenFromCookies ( IRestClient clientToRead ) : void |
Sets the internal tokens for reuse
|
|
ThrowExceptionIfNecessary ( IRestResponse response, string location ) : void |
Throws an exception with a standard message when HideCustomExceptions is false
|
|
ThrowExceptionIfNecessary ( IRestResponse response, string location, string customMessage ) : void |
Throws an exception with a standard message when HideCustomExceptions is false
|
|
Update ( string id, |
Update the item
|
|
VerifyLoggedInAuthenticatedAndExtendSession ( ) : bool |
Logs in and updates the server sessions which is required before executing queries.
|
public ALMClient ( string url, string username, string password, string domain, string project ) : System | ||
url | string | Base url for ALM |
username | string | username for login |
password | string | password |
domain | string | The domain to log into |
project | string | The project to log into |
Résultat | System |
public ALMClient ( string url, string username, string password, string domain, string project, string version ) : System | ||
url | string | Base url for ALM |
username | string | username for login |
password | string | password |
domain | string | The domain to log into |
project | string | The project to log into |
version | string | The ALM version to use |
Résultat | System |
public UpdateDefect ( string id, |
||
id | string | Id of the item |
changes | An item containing all the fields to change | |
Résultat | bool |