public class FileTemplates
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FileTemplates.IniFileType |
static class |
FileTemplates.MapFileType |
static class |
FileTemplates.TestFileType
The type of the test source class.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TOKEN_SERVER_URL_EQUAL
"server.url=" used in INI configuration file to represent SAFS Data Service URL
|
Constructor and Description |
---|
FileTemplates() |
Modifier and Type | Method and Description |
---|---|
static java.io.InputStream |
log4j2Config()
Create log4j configuration file for selenium usage to avoid some error console messages.
|
static java.io.InputStream |
runAutomationBatch(java.lang.String fullQualifiedTestClassName) |
static java.lang.String[] |
splitClassName(java.lang.String fullQualifiedClassname)
Split full qualified classname into to "package name" and "simple class name".
|
static java.io.InputStream |
springConfig(java.lang.String testBasePackage)
Create spring configuration file for a test project.
Currently this configuration file will do: Automatically scan the test project's base package and package 'org.safs'. |
static java.io.InputStream |
testINI(java.lang.String seleniumloc,
java.lang.String projectName) |
static java.lang.String |
testINIContents(java.lang.String seleniumloc,
java.lang.String projectName) |
static java.lang.String |
toDotFormat(java.lang.String sourceFolder,
java.lang.String classOrPackageInProjectPathFormat) |
static java.lang.String |
toProjectPath(java.lang.String sourceFolder,
java.lang.String classnameOrPackageName) |
public static final java.lang.String TOKEN_SERVER_URL_EQUAL
public static java.lang.String testINIContents(java.lang.String seleniumloc, java.lang.String projectName)
seleniumloc
- String, the SeleniumPlus installation path.projectName
- String, the project's namepublic static java.io.InputStream testINI(java.lang.String seleniumloc, java.lang.String projectName)
seleniumloc
- String, the SeleniumPlus installation path.projectName
- String, the project's namepublic static java.io.InputStream springConfig(java.lang.String testBasePackage)
testBasePackage
- String, the base package of a test project.public static java.io.InputStream log4j2Config()
public static java.io.InputStream runAutomationBatch(java.lang.String fullQualifiedTestClassName)
fullQualifiedTestClassName
- String, the full test case name including the package name.public static java.lang.String toProjectPath(java.lang.String sourceFolder, java.lang.String classnameOrPackageName)
sourceFolder
- String, the name of source folder in a project.classnameOrPackageName
- String, the full qualified classname or package.public static java.lang.String toDotFormat(java.lang.String sourceFolder, java.lang.String classOrPackageInProjectPathFormat)
sourceFolder
- String, the name of source folder in a project.classOrPackageInProjectPathFormat
- String, the path (including source folder) of a class or package.public static java.lang.String[] splitClassName(java.lang.String fullQualifiedClassname)
fullQualifiedClassname
- String, the full qualified classname.Copyright © SAS Institute. All Rights Reserved.