public interface DSL<Data>
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentSpace() |
UserModel |
getCurrentUser()
gets the current test user
|
String |
getDataDictionaryPath() |
String |
getRootPath() |
String |
getSitesPath() |
String |
getUserHomesPath() |
Data |
setCurrentSpace(String currentRepositorySpace)
getSitesPath(), getUserHomesPath(), getDataDictionaryPath(), etc If nothing is
specified, the root folder is used |
Data |
usingAdmin()
Defines the current user to be Admin
|
Data |
usingResource(ContentModel model)
Defines the current file/folder that is under test
|
Data |
usingRoot() |
Data |
usingSite(SiteModel siteModel)
Defines the current test site to be used based on
SiteModel |
Data |
usingSite(String siteId)
Defines the current test site to be used
|
Data |
usingUser(UserModel user)
Defines the current test user that will be used
|
Data |
usingUserHome() |
Data |
usingUserHome(String username)
Defines the current User Home to be used Example: /User Homes/
|
Data usingUser(UserModel user) throws Exception
ExceptionData usingAdmin() throws Exception
ExceptionUserModel getCurrentUser()
String getCurrentSpace() throws TestConfigurationException
TestConfigurationExceptionData setCurrentSpace(String currentRepositorySpace)
getSitesPath(), getUserHomesPath(), getDataDictionaryPath(), etc If nothing is
specified, the root folder is usedData usingResource(ContentModel model) throws Exception
model - ExceptionData usingSite(String siteId) throws Exception
siteId - ExceptionData usingSite(SiteModel siteModel) throws Exception
SiteModelsiteModel - ExceptionData usingUserHome(String username) throws Exception
username - ExceptionData usingUserHome() throws Exception
getCurrentUser()ExceptionString getRootPath() throws TestConfigurationException
TestConfigurationExceptionString getSitesPath() throws TestConfigurationException
TestConfigurationExceptionString getUserHomesPath() throws TestConfigurationException
TestConfigurationExceptionString getDataDictionaryPath() throws TestConfigurationException
TestConfigurationExceptionCopyright © 2005–2019 Alfresco Software. All rights reserved.