Package dev.galasa.core.manager
Interface ICoreManager
public interface ICoreManager
The Core Manager provides Tests with access to some of the most common
features within the Galasa Framework
To gain access to the Core Manager, include the following in the test class:-
@CoreManager public ICoreManager coreManager;
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetCredentials
(@NotNull String credentialsId) Retrieve Credentials@NotNull String
Returns the Run Name of the Test Run, unique during the length of this Test RungetUsernamePassword
(@NotNull String credentialsId) Retrieve Username and Password Credentials onlyvoid
registerConfidentialText
(String confidentialString, String comment)
-
Method Details
-
getRunName
Returns the Run Name of the Test Run, unique during the length of this Test Run- Returns:
- Unique Test Run name
-
getCredentials
Retrieve Credentials- Parameters:
credentialsId
-- Returns:
- A credentials object or null if id not found
- Throws:
CoreManagerException
- If there is a problem accessing the credentials store
-
getUsernamePassword
ICredentialsUsernamePassword getUsernamePassword(@NotNull @NotNull String credentialsId) throws CoreManagerException Retrieve Username and Password Credentials only- Parameters:
credentialsId
-- Returns:
- A credentials object or null if id not found
- Throws:
CoreManagerException
- If there is a problem accessing the credentials store or if the credential is not of type ICredentialsUsernamePassword
-
registerConfidentialText
-