public abstract class AbstractTest
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractTest.CompareJob |
Modifier | Constructor and Description |
---|---|
protected |
AbstractTest(java.lang.String name) |
protected |
AbstractTest(java.lang.String name,
boolean multiTask,
boolean interactive) |
Modifier and Type | Method and Description |
---|---|
static boolean |
compareImages(int index,
java.lang.String file,
java.lang.String exFile)
Method to compare two binary files.
|
static boolean |
compareResults(java.lang.String file1,
java.lang.String file2)
Method to compare two text files.
|
protected static java.lang.String |
dataDir(java.lang.String regressionPath,
java.lang.String testType) |
java.lang.String |
getFullTestName() |
java.lang.String |
getFunctionName() |
protected java.lang.String |
getLogName() |
protected java.lang.String |
getResultName() |
static void |
removeLines(java.lang.String inLibFile,
java.lang.String outLibFile,
char[] lineKeys)
Method to remove first character from each file line if it matches with any of the given keys
and it writes a new file.
|
static void |
removeLines(java.lang.String inLibFile,
java.lang.String outLibFile,
java.lang.String key)
Method to remove a given string from each file line if the line starts with it.
|
protected static Technology |
setFoundry(Technology tech) |
static Technology |
setFoundry(Technology tech,
java.lang.String foundryName)
Change foundry preference of given technology and return new version for this technology.
|
void |
setGroupName(java.lang.String name) |
java.lang.String |
toString() |
static void |
wipeLibraries()
Method to delete all current libraries so that any previous versions do not affect the current test.
|
protected java.lang.String |
workingDir()
Method to get the real root path from the regression root directory.
|
protected static java.lang.String |
workingDir(java.lang.String regressionPath,
java.lang.String testType) |
protected AbstractTest(java.lang.String name)
protected AbstractTest(java.lang.String name, boolean multiTask, boolean interactive)
protected static java.lang.String workingDir(java.lang.String regressionPath, java.lang.String testType)
protected static java.lang.String dataDir(java.lang.String regressionPath, java.lang.String testType)
public static void wipeLibraries()
public void setGroupName(java.lang.String name)
public java.lang.String getFunctionName()
protected java.lang.String getResultName()
protected java.lang.String getLogName()
public java.lang.String getFullTestName()
protected java.lang.String workingDir()
public java.lang.String toString()
toString
in class java.lang.Object
protected static Technology setFoundry(Technology tech)
public static Technology setFoundry(Technology tech, java.lang.String foundryName)
tech
- technology to change foundryfoundryName
- foundry namepublic static void removeLines(java.lang.String inLibFile, java.lang.String outLibFile, java.lang.String key)
inLibFile
- the original fileoutLibFile
- the modified filekey
- String to removepublic static void removeLines(java.lang.String inLibFile, java.lang.String outLibFile, char[] lineKeys)
inLibFile
- the original fileoutLibFile
- the modified filelineKeys
- Key characterspublic static boolean compareResults(java.lang.String file1, java.lang.String file2)
file1
- the first file.file2
- the second file.public static boolean compareImages(int index, java.lang.String file, java.lang.String exFile)
index
- the index of the image (-1 if it is not relevant).file
- the first file.exFile
- the second file.