Uses of Class
com.sun.javatest.WorkDirectory
Packages that use WorkDirectory
Package
Description
This package provides facilities for reading, executing
and monitoring tests.
The Test Manager Tool provides a GUI for opening, browsing, configuring,
and running tests and test suites, and for browsing the results.
This package provides a configuration interview for legacy test
suites which do not provide their own interview, and also provides
sub-interviews which may be used to build a custom interview with
standard questions for the standard sections.
The JT Harness Tool API provides the command-line and GUI
infrastructure for the main JT Harness test harness.
-
Uses of WorkDirectory in com.sun.javatest
Fields in com.sun.javatest declared as WorkDirectoryModifier and TypeFieldDescriptionprotected WorkDirectory
Script.workDir
The work directory for the test run.Methods in com.sun.javatest that return WorkDirectoryModifier and TypeMethodDescriptionstatic WorkDirectory
Convert an existing directory into a work directory.static WorkDirectory
Create a new work directory with a given name, and for a given test suite.TestResultTable.getWorkDir()
Deprecated.Use getWorkDirectoryBasicParameters.getWorkDirectory()
Parameters.getWorkDirectory()
Get the work directory in which to store the results of the test run.TestResultTable.getWorkDirectory()
Get the work directory associated with this object.TestRunner.getWorkDirectory()
Get the work directory to be used to store the test results generated by this test runner.static WorkDirectory
Open an existing work directory, using the default test suite associated with it.static WorkDirectory
Open an existing work directory, using an explicit test suite.Methods in com.sun.javatest with parameters of type WorkDirectoryModifier and TypeMethodDescriptionTestSuite.createLog
(WorkDirectory wd, String b, String key) Creates general purpose logger with given key and ResourceBundleName registered for given WorkDirectory.TestSuite.createScript
(TestDescription td, String[] exclTestCases, TestEnvironment scriptEnv, WorkDirectory workDir, BackupPolicy backupPolicy) Create and initialize a Script that can be used to run a test.void
TestSuite.eraseLog
(WorkDirectory wd) Cleans the log file in given WorkDirectoryTestSuite.getLog
(WorkDirectory wd, String key) Returns general purpose logger with given key registered for given WorkDirectory.TestSuite.getNotificationLog
(WorkDirectory wd) Returns notification logger associated with given working directory or common logger if null was specifiedcom.sun.javatest.logging.ObservedFile
TestSuite.getObservedFile
(WorkDirectory wd) static File
TemplateUtilities.getTemplateFile
(WorkDirectory wd) Get the path to the template associated with the work dir.static String
TemplateUtilities.getTemplatePath
(WorkDirectory wd) Get the path to the template associated with the work dir.void
Script.initWorkDir
(WorkDirectory workDir) Initialize the work directory to be used to store the results obtained when running the test, and to store any temporary files that may be required by the test.static InterviewParameters
InterviewParameters.open
(File file, WorkDirectory workDir) Create an InterviewParameters by populating the interview for a specified work directory with responses from a given file.static LastRunInfo
LastRunInfo.readInfo
(WorkDirectory wd) Given a work directory, attempt to create an instance using the information found in it.void
TestResult.reloadFromWorkDir
(WorkDirectory workDir) Reconstruct the results of a previously run test.static void
TemplateUtilities.setTemplateFile
(WorkDirectory wd, File t, boolean changeable) Associate a template file with a work directory.void
BasicParameters.setWorkDirectory
(WorkDirectory wd) Set the work directory for the test run.abstract void
InterviewParameters.setWorkDirectory
(WorkDirectory workDir) Set the work directory to be used for this test run.void
LastRunFilter.setWorkDirectory
(WorkDirectory wd) Can be called at any time to change the context of this filter.void
Parameters.setWorkDirectory
(WorkDirectory wd) Set the work directory for which these parameters apply.void
TestResultTable.setWorkDirectory
(WorkDirectory wd) Set the work directory associated with this object.static void
LastRunInfo.writeInfo
(WorkDirectory workdir, long start, long stop, String config, List<String> testURLs) Given a work directory, write the given run information in it.void
TestResult.writeResults
(WorkDirectory workDir, BackupPolicy backupPolicy) Writes the TestResult into a version 2 jtr file.Constructors in com.sun.javatest with parameters of type WorkDirectoryModifierConstructorDescriptionTestResult
(TestDescription td, WorkDirectory workDir) Reconstruct the results of a previously run test.TestResult
(WorkDirectory workDir, String workRelativePath) Reconstruct the results of a previously run test.TestResultCache
(WorkDirectory workDir, TestResultCache.Observer observer) Primary constructor for a cache.Create a table for the tests in a work directory and its associated test suite and test finder.TestResultTable
(WorkDirectory wd, TestFinder tf) Create a table for the tests in a work directory and its associated test suite, overriding the test suite's default test finder. -
Uses of WorkDirectory in com.sun.javatest.exec
Fields in com.sun.javatest.exec declared as WorkDirectoryMethods in com.sun.javatest.exec that return WorkDirectoryModifier and TypeMethodDescriptionstatic WorkDirectory
WorkDirChooseTool.chooseWD
(JComponent parent, File dir, TestSuite ts, int mode) static WorkDirectory
WorkDirChooseTool.chooseWD
(JComponent parent, File dir, TestSuite ts, int mode, boolean noTemplate) BasicSession.getWorkDirectory()
Work directory assigned to the session.ContextManager.getWorkDirectory()
Get the active work directory.ExecModel.getWorkDirectory()
ExecTool.getWorkDirectory()
SessionExt.getWorkDirectory()
Returns work directory assigned to the session.WorkDirChooseTool.ExecModelStub.getWorkDirectory()
WorkDirChooseTool.getWorkDirectory()
Methods in com.sun.javatest.exec with parameters of type WorkDirectoryModifier and TypeMethodDescriptionprotected ExecTool
ExecToolManager.addNewExecTool
(TestSuite ts, WorkDirectory wd, InterviewParameters ip, String errorKey) protected void
BasicSession.applyWorkDir
(WorkDirectory wd) Associates session with the work dir.protected void
BasicSessionControl.applyWorkDir
(WorkDirectory wd) Applies value of the selected work directory.static com.sun.javatest.exec.LogViewer
AccessWrapper.createLogViewer
(WorkDirectory workDir, UIFactory uif, JComponent parent) void
ExecToolManager.finishQSW
(TestSuite ts, WorkDirectory wd, InterviewParameters ip, boolean showConfigEditorFlag, boolean runTestsFlag) QSW_Listener interface methodvoid
QSW_Listener.finishQSW
(TestSuite ts, WorkDirectory wd, InterviewParameters ip, boolean showConfigEditorFlag, boolean runTestsFlag) Invoked when user decided to open new TestSuitevoid
BasicSession.loadInterviewFromFile
(WorkDirectory wd, File cfgFile) Loads interview from file.void
SessionExt.loadInterviewFromFile
(WorkDirectory wd, File jti) Loads interview from a given file and associates it with a given working directory.protected void
ContextManager.openTree
(WorkDirectory wd) void
BasicSessionControl.restoreConfigFromWD
(WorkDirectory wd) Tries to restore latest available configuration for the session.protected void
ContextManager.setWorkDir
(WorkDirectory w) Deprecated.use #setWorkDirectory(WorkDirectory) insteadvoid
ExecModel.setWorkDir
(WorkDirectory wd, boolean addToFileHistory) void
ExecTool.setWorkDir
(WorkDirectory wd, boolean addToFileHistory) void
WorkDirChooseTool.ExecModelStub.setWorkDir
(WorkDirectory wd, boolean addToFileHistory) protected void
ContextManager.setWorkDirectory
(WorkDirectory w) ExecToolManager.showWorkDirectory
(WorkDirectory wd) Deprecated.void
ExecTool.update
(WorkDirectory wd) Invoked when manager orders to use new wd.void
ExecTool.update
(WorkDirectory wd, boolean updateConfig) Invoked when manager orders to use new wd.protected void
ContextManager.updatedWorkDirectory
(WorkDirectory wd) Invoked when the value of the work directory has been modified.protected void
BasicSession.updateWorkDir
(WorkDirectory wd, boolean doRestoreConfig) Sets the work dir to the new specified value, inovkes applyWorkDir() method, notifies observers of the work dir change. -
Uses of WorkDirectory in com.sun.javatest.interview
Methods in com.sun.javatest.interview that return WorkDirectoryMethods in com.sun.javatest.interview with parameters of type WorkDirectoryModifier and TypeMethodDescriptionvoid
BasicInterviewParameters.setWorkDirectory
(WorkDirectory wd) Set the work directory for the test run. -
Uses of WorkDirectory in com.sun.javatest.tool
Methods in com.sun.javatest.tool that return WorkDirectoryModifier and TypeMethodDescriptionTool.getLoadedWorkDirectories()
Get a list of any work directories that are being used by this tool.WorkDirChooser.getSelectedWorkDirectory()
Get the work directory that was most recently selected by the user.CommandContext.getWorkDirectory()
Get the work directory associated with this object.SelectedWorkDirApprover.getWorkDirectory()
Methods in com.sun.javatest.tool with parameters of type WorkDirectoryModifier and TypeMethodDescriptionstatic FileHistory
FileHistory.getFileHistory
(WorkDirectory wd, String name) Get a shared FileHistory object for a specified file and work directory.void
WorkDirChooser.setSelectedWorkDirectory
(WorkDirectory wd) Set the work directory selected by the user.void
CommandContext.setWorkDirectory
(WorkDirectory wd) Set the work directory to be associated with this object.