public class PropertiesQTestCredentials extends java.lang.Object implements QTestCredentials
| Constructor and Description |
|---|
PropertiesQTestCredentials(java.io.File file)
Reads the specified file as a Java properties file and extracts the
qTest authentication token.
|
PropertiesQTestCredentials(java.io.InputStream inputStream)
Reads the specified input stream as a stream of Java properties file
content and extracts the qTest authentication token from the properties.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getToken() |
public PropertiesQTestCredentials(java.io.File file)
throws java.io.IOException,
java.lang.IllegalArgumentException
file - The file from which to read the qTest credentials
properties.java.io.FileNotFoundException - If the specified file isn't found.java.io.IOException - If any problems are encountered reading the qTest authentication
token from the specified file.java.lang.IllegalArgumentException - If the specified properties file does not contain the
required token.public PropertiesQTestCredentials(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - The input stream containing the qTest credential properties.java.io.IOException - If any problems occur while reading from the input stream.public java.lang.String getToken()
getToken in interface QTestCredentials