org.aludratest.hpalm.infrastructure
Class HpAlmSession
java.lang.Object
org.aludratest.hpalm.infrastructure.HpAlmSession
public class HpAlmSession
- extends Object
|
Method Summary |
static HpAlmSession |
create(String serverUrl,
String domain,
String project,
String userName,
String password)
|
Entity |
createAttachment(Entity entity,
String fileName,
InputStream attachmentData)
|
Entity |
createEntity(Entity entity)
|
void |
deleteEntity(Entity entity)
|
void |
deleteEntity(String entityType,
long id)
|
TimeZone |
determineServerTimeZone()
|
void |
extendTimeout()
|
EntityCollection |
getAssetRelations(Entity entity)
|
Entity |
getEntity(String entityName,
long id)
|
String |
getFieldsXml(String entityType,
boolean required)
|
ServerTime |
getServerTime()
|
Entity |
getTest(long id)
|
Entity |
getTestFolder(long id)
|
EntityCollection |
getTestFolders()
|
EntityCollection |
getTestRuns()
|
EntityCollection |
getTests()
|
Entity |
getTestSet(long id)
|
Entity |
getTestSetFolder(long id)
|
EntityCollection |
getTestSetFolders()
|
EntityCollection |
getTestSets()
|
void |
logout()
|
EntityCollection |
queryEntities(String entityName,
String query)
|
Entity |
updateEntity(long id,
Entity updateValues)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
create
public static HpAlmSession create(String serverUrl,
String domain,
String project,
String userName,
String password)
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
extendTimeout
public void extendTimeout()
throws IOException
- Throws:
IOException
logout
public void logout()
throws IOException
- Throws:
IOException
getFieldsXml
public String getFieldsXml(String entityType,
boolean required)
throws IOException
- Throws:
IOException
getServerTime
public ServerTime getServerTime()
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
determineServerTimeZone
public TimeZone determineServerTimeZone()
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
createEntity
public Entity createEntity(Entity entity)
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
updateEntity
public Entity updateEntity(long id,
Entity updateValues)
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
deleteEntity
public void deleteEntity(String entityType,
long id)
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
deleteEntity
public void deleteEntity(Entity entity)
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
createAttachment
public Entity createAttachment(Entity entity,
String fileName,
InputStream attachmentData)
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
getTestRuns
public EntityCollection getTestRuns()
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
getTests
public EntityCollection getTests()
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
getTestSets
public EntityCollection getTestSets()
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
getTestFolders
public EntityCollection getTestFolders()
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
getTestSetFolders
public EntityCollection getTestSetFolders()
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
getTest
public Entity getTest(long id)
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
getTestSet
public Entity getTestSet(long id)
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
getTestFolder
public Entity getTestFolder(long id)
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
getTestSetFolder
public Entity getTestSetFolder(long id)
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
queryEntities
public EntityCollection queryEntities(String entityName,
String query)
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
getAssetRelations
public EntityCollection getAssetRelations(Entity entity)
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
getEntity
public Entity getEntity(String entityName,
long id)
throws IOException,
HpAlmException
- Throws:
IOException
HpAlmException
Copyright © 2015 aludratest.org. All rights reserved.