|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.symbian.et.test.xmlimport.FrameworkGenerator
| Field Summary | |
static java.lang.String |
ERR_FILE_IGNORED
Warning message if the file is ignored. |
private com.symbian.et.test.driver.DriverFactory |
iDriverFactory
|
private java.io.File |
iImportDir
The Import directory. |
protected static java.util.logging.Logger |
LOGGER
The logger for the Visitor class. |
static java.lang.String |
ORIGINAL_XML_FILE_MARKER
The orignal XML file marker. |
static java.lang.String |
XML_FILE_MARKER
XML File marker. |
| Constructor Summary | |
FrameworkGenerator(java.io.File aImportDir)
|
|
| Method Summary | |
com.symbian.et.test.driver.Task |
buildEmfModel()
Build test framework from its root. |
private com.symbian.et.test.driver.Task |
buildTaskEmfModel(java.lang.String aXmlFilePath,
boolean aIsRoot,
com.symbian.et.test.driver.Task aBaseTask)
|
private com.symbian.et.test.driver.Build |
createBuild(boolean aSync,
boolean aTestBuild,
java.lang.String aURI,
java.lang.String aComponenetName,
java.lang.String aHostPath,
java.lang.String aDevicePath)
Creates a build command. |
private void |
createDepBuild(com.symbian.et.test.driver.ExecuteOnPC aExecuteOnPC,
com.symbian.et.test.driver.Task aTask,
org.jdom.Element aRoot,
boolean aResource,
boolean aLegacyBuildable)
Adds all the build dependencies to the current Task. |
private void |
createExecuteOnPc(com.symbian.et.test.driver.ExecuteOnPC aExecuteOnPC,
com.symbian.et.test.driver.Task aTask,
java.lang.String aCmd)
Adds a Execute on PC command to the current Task. |
private void |
createExecuteOnSymbian(com.symbian.et.test.driver.Task aTask,
java.lang.String aArgument,
com.symbian.et.test.driver.StatCommand aStatCommand)
Adds an Execute On Symbian task to the current Task. |
private void |
createResourceItem(com.symbian.et.test.driver.Task aTask,
java.util.List aResource)
Adds a resource to a Task. |
private void |
createRetrieveFromSymbian(com.symbian.et.test.driver.Task aTask,
java.lang.String aRetrievePath,
java.lang.String aHostPath)
Adds a Retrieve from Symbian task to the current Task. |
private void |
createTransferToSymbian(com.symbian.et.test.driver.Task aTask,
java.lang.String aDevicePath,
java.lang.String aHostPath)
Adds a Transfer To Symbian task to the current Task. |
static void |
dtdResolver(org.jdom.input.SAXBuilder aBuilder)
Resolves the DTD's of the files. |
static java.lang.String |
fixXmlFile(java.lang.String aXMLFilePath)
Fixes incorrect XML files with common known problems. |
private java.lang.String |
getNextFile(java.lang.String aXmlFilePath,
java.lang.String aFileName,
boolean aIsServer)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.io.File iImportDir
private final com.symbian.et.test.driver.DriverFactory iDriverFactory
public static final java.lang.String XML_FILE_MARKER
public static final java.lang.String ORIGINAL_XML_FILE_MARKER
public static final java.lang.String ERR_FILE_IGNORED
protected static final java.util.logging.Logger LOGGER
| Constructor Detail |
public FrameworkGenerator(java.io.File aImportDir)
aImportDir - The import directory of XML files.| Method Detail |
public com.symbian.et.test.driver.Task buildEmfModel()
throws java.io.IOException
java.io.IOException - If the XML root directory is invalid.
private com.symbian.et.test.driver.Task buildTaskEmfModel(java.lang.String aXmlFilePath,
boolean aIsRoot,
com.symbian.et.test.driver.Task aBaseTask)
throws org.jdom.JDOMException,
java.io.IOException
aXmlFilePath - of the XML file associated to the suiteaIsRoot - if this suite is the root of the treeaBaseTask -
org.jdom.JDOMException - If the parsing of the file fails.
java.io.IOException
private java.lang.String getNextFile(java.lang.String aXmlFilePath,
java.lang.String aFileName,
boolean aIsServer)
aXmlFilePath - The path to the next XML file.aFileName - The actual file name for the next XML file.aIsServer - true if the next XML file is a server,
false otherwise.
private void createResourceItem(com.symbian.et.test.driver.Task aTask,
java.util.List aResource)
aTask - The Task to add the resource item to.aResource - The list of resources to add to the Task
private void createTransferToSymbian(com.symbian.et.test.driver.Task aTask,
java.lang.String aDevicePath,
java.lang.String aHostPath)
aTask - The Task to add the task to.aDevicePath - The device path for the transfer to symbian task.aHostPath - The host path for the transfer to symbian task.
private void createRetrieveFromSymbian(com.symbian.et.test.driver.Task aTask,
java.lang.String aRetrievePath,
java.lang.String aHostPath)
aTask - The current task.aRetrievePath - The path of the file to retrieve from.aHostPath - The path of where to copy the file to.
private void createExecuteOnSymbian(com.symbian.et.test.driver.Task aTask,
java.lang.String aArgument,
com.symbian.et.test.driver.StatCommand aStatCommand)
aTask - The current Task.aArgument - The arguments for the command.aStatCommand - The command to run.
private void createDepBuild(com.symbian.et.test.driver.ExecuteOnPC aExecuteOnPC,
com.symbian.et.test.driver.Task aTask,
org.jdom.Element aRoot,
boolean aResource,
boolean aLegacyBuildable)
aExecuteOnPC - aTask - The current Task.aRoot - The root of the build dependenciesaResource - true if the build Task contains resources.aLegacyBuildable - true if the code uses the tag "buildable"
instead of "build".
private com.symbian.et.test.driver.Build createBuild(boolean aSync,
boolean aTestBuild,
java.lang.String aURI,
java.lang.String aComponenetName,
java.lang.String aHostPath,
java.lang.String aDevicePath)
aSync - If the build command should be run syncronous.aTestBuild - true if this is a test build.aURI - The location of the group directory.aComponenetName - The MMP file.aHostPath - aDevicePath - The location of where to put the file on the device.
private void createExecuteOnPc(com.symbian.et.test.driver.ExecuteOnPC aExecuteOnPC,
com.symbian.et.test.driver.Task aTask,
java.lang.String aCmd)
aExecuteOnPC - aTask - The current Task.aCmd - The command to run in the task.public static void dtdResolver(org.jdom.input.SAXBuilder aBuilder)
aBuilder - The SAX builder.
public static java.lang.String fixXmlFile(java.lang.String aXMLFilePath)
throws java.io.IOException
aXMLFilePath - of the XML file to check
java.io.IOException - If there is an I/O errors occurs with the XML files.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||