getProjectList
Retrieves a list of available projects that a user can log in to. The user must have SOAP security permissions and can only access areas they are licensed for. A SOAP error envelope is returned if the operation fails.
Note: Areas users can have access to and license types were renamed in Helix ALM 2017.1. To preserve backward compatibility, the SDK uses 'TestTrack Pro' for issue management, 'TestTrack RM' for requirements management, and 'TestTrack TCM' for test case management.
Parameters
Parameter | Type | Description |
---|---|---|
username | string | Username used to log in. |
password | string | Password used to log in. |
Return value
Value | Type |
---|---|
pProjList | CProject[] |
Example
string projectName = "Sample Project";
CProject[] projects = ttsdk.getProjectList("username", "password");
CProject proj = new CProject();
foreach (CProject p in projects)
{
if (p.database.name.Equals(projectName))
{
proj = p;
break;
}
}
// Excluding options the user does not need access to is recommended.
// In this case, the SOAP application does not need requirements management access, so it does not ask for it.
CProjectDataOption[] projOp = new CProjectDataOption[2];
projOp[0] = new CProjectDataOption();
projOp[0].name = "TestTrack Pro";
projOp[1] = new CProjectDataOption();
projOp[1].name = "TestTrack TCM";
proj.options = projOp;
cookie = ttsdk.ProjectLogon(proj, "username", "password");