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 WorkDirectoryScript.workDirThe work directory for the test run.Methods in com.sun.javatest that return WorkDirectoryModifier and TypeMethodDescriptionstatic WorkDirectoryConvert an existing directory into a work directory.static WorkDirectoryCreate 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 WorkDirectoryOpen an existing work directory, using the default test suite associated with it.static WorkDirectoryOpen 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.voidTestSuite.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.ObservedFileTestSuite.getObservedFile(WorkDirectory wd) static FileTemplateUtilities.getTemplateFile(WorkDirectory wd) Get the path to the template associated with the work dir.static StringTemplateUtilities.getTemplatePath(WorkDirectory wd) Get the path to the template associated with the work dir.voidScript.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 InterviewParametersInterviewParameters.open(File file, WorkDirectory workDir) Create an InterviewParameters by populating the interview for a specified work directory with responses from a given file.static LastRunInfoLastRunInfo.readInfo(WorkDirectory wd) Given a work directory, attempt to create an instance using the information found in it.voidTestResult.reloadFromWorkDir(WorkDirectory workDir) Reconstruct the results of a previously run test.static voidTemplateUtilities.setTemplateFile(WorkDirectory wd, File t, boolean changeable) Associate a template file with a work directory.voidBasicParameters.setWorkDirectory(WorkDirectory wd) Set the work directory for the test run.abstract voidInterviewParameters.setWorkDirectory(WorkDirectory workDir) Set the work directory to be used for this test run.voidLastRunFilter.setWorkDirectory(WorkDirectory wd) Can be called at any time to change the context of this filter.voidParameters.setWorkDirectory(WorkDirectory wd) Set the work directory for which these parameters apply.voidTestResultTable.setWorkDirectory(WorkDirectory wd) Set the work directory associated with this object.static voidLastRunInfo.writeInfo(WorkDirectory workdir, long start, long stop, String config, List<String> testURLs) Given a work directory, write the given run information in it.voidTestResult.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 WorkDirectoryWorkDirChooseTool.chooseWD(JComponent parent, File dir, TestSuite ts, int mode) static WorkDirectoryWorkDirChooseTool.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 ExecToolExecToolManager.addNewExecTool(TestSuite ts, WorkDirectory wd, InterviewParameters ip, String errorKey) protected voidBasicSession.applyWorkDir(WorkDirectory wd) Associates session with the work dir.protected voidBasicSessionControl.applyWorkDir(WorkDirectory wd) Applies value of the selected work directory.static com.sun.javatest.exec.LogViewerAccessWrapper.createLogViewer(WorkDirectory workDir, UIFactory uif, JComponent parent) voidExecToolManager.finishQSW(TestSuite ts, WorkDirectory wd, InterviewParameters ip, boolean showConfigEditorFlag, boolean runTestsFlag) QSW_Listener interface methodvoidQSW_Listener.finishQSW(TestSuite ts, WorkDirectory wd, InterviewParameters ip, boolean showConfigEditorFlag, boolean runTestsFlag) Invoked when user decided to open new TestSuitevoidBasicSession.loadInterviewFromFile(WorkDirectory wd, File cfgFile) Loads interview from file.voidSessionExt.loadInterviewFromFile(WorkDirectory wd, File jti) Loads interview from a given file and associates it with a given working directory.protected voidContextManager.openTree(WorkDirectory wd) voidBasicSessionControl.restoreConfigFromWD(WorkDirectory wd) Tries to restore latest available configuration for the session.protected voidContextManager.setWorkDir(WorkDirectory w) Deprecated.use #setWorkDirectory(WorkDirectory) insteadvoidExecModel.setWorkDir(WorkDirectory wd, boolean addToFileHistory) voidExecTool.setWorkDir(WorkDirectory wd, boolean addToFileHistory) voidWorkDirChooseTool.ExecModelStub.setWorkDir(WorkDirectory wd, boolean addToFileHistory) protected voidContextManager.setWorkDirectory(WorkDirectory w) ExecToolManager.showWorkDirectory(WorkDirectory wd) Deprecated.voidExecTool.update(WorkDirectory wd) Invoked when manager orders to use new wd.voidExecTool.update(WorkDirectory wd, boolean updateConfig) Invoked when manager orders to use new wd.protected voidContextManager.updatedWorkDirectory(WorkDirectory wd) Invoked when the value of the work directory has been modified.protected voidBasicSession.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 TypeMethodDescriptionvoidBasicInterviewParameters.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 FileHistoryFileHistory.getFileHistory(WorkDirectory wd, String name) Get a shared FileHistory object for a specified file and work directory.voidWorkDirChooser.setSelectedWorkDirectory(WorkDirectory wd) Set the work directory selected by the user.voidCommandContext.setWorkDirectory(WorkDirectory wd) Set the work directory to be associated with this object.