Uses of Class
com.sun.javatest.WorkDirectory
-
Packages that use WorkDirectory Package Description com.sun.javatest This package provides facilities for reading, executing and monitoring tests.com.sun.javatest.exec The Test Manager Tool provides a GUI for opening, browsing, configuring, and running tests and test suites, and for browsing the results.com.sun.javatest.interview 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.com.sun.javatest.tool 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 WorkDirectory Modifier and Type Field Description protected WorkDirectoryScript. workDirThe work directory for the test run.Methods in com.sun.javatest that return WorkDirectory Modifier and Type Method Description static WorkDirectoryWorkDirectory. convert(java.io.File dir, TestSuite ts)Convert an existing directory into a work directory.static WorkDirectoryWorkDirectory. create(java.io.File dir, TestSuite ts)Create a new work directory with a given name, and for a given test suite.WorkDirectoryTestResultTable. getWorkDir()Deprecated.Use getWorkDirectoryWorkDirectoryBasicParameters. getWorkDirectory()WorkDirectoryParameters. getWorkDirectory()Get the work directory in which to store the results of the test run.WorkDirectoryTestResultTable. getWorkDirectory()Get the work directory associated with this object.WorkDirectoryTestRunner. getWorkDirectory()Get the work directory to be used to store the test results generated by this test runner.static WorkDirectoryWorkDirectory. open(java.io.File dir)Open an existing work directory, using the default test suite associated with it.static WorkDirectoryWorkDirectory. open(java.io.File dir, TestSuite testSuite)Open an existing work directory, using an explicit test suite.Methods in com.sun.javatest with parameters of type WorkDirectory Modifier and Type Method Description java.util.logging.LoggerTestSuite. createLog(WorkDirectory wd, java.lang.String b, java.lang.String key)Creates general purpose logger with given key and ResourceBundleName registered for given WorkDirectory.ScriptTestSuite. createScript(TestDescription td, java.lang.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 WorkDirectoryjava.util.logging.LoggerTestSuite. getLog(WorkDirectory wd, java.lang.String key)Returns general purpose logger with given key registered for given WorkDirectory.java.util.logging.LoggerTestSuite. 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 java.io.FileTemplateUtilities. getTemplateFile(WorkDirectory wd)Get the path to the template associated with the work dir.static java.lang.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(java.io.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, java.io.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, java.lang.String config, java.util.List<java.lang.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 WorkDirectory Constructor Description LastRunFilter(WorkDirectory wd)TestResult(TestDescription td, WorkDirectory workDir)Reconstruct the results of a previously run test.TestResult(WorkDirectory workDir, java.lang.String workRelativePath)Reconstruct the results of a previously run test.TestResultCache(WorkDirectory workDir, TestResultCache.Observer observer)Primary constructor for a cache.TestResultTable(WorkDirectory wd)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 WorkDirectory Modifier and Type Field Description WorkDirectoryBasicSession.E_NewWD. wdMethods in com.sun.javatest.exec that return WorkDirectory Modifier and Type Method Description static WorkDirectoryWorkDirChooseTool. chooseWD(javax.swing.JComponent parent, java.io.File dir, TestSuite ts, int mode)static WorkDirectoryWorkDirChooseTool. chooseWD(javax.swing.JComponent parent, java.io.File dir, TestSuite ts, int mode, boolean noTemplate)WorkDirectoryBasicSession. getWorkDirectory()Work directory assigned to the session.WorkDirectoryContextManager. getWorkDirectory()Get the active work directory.WorkDirectoryExecModel. getWorkDirectory()WorkDirectoryExecTool. getWorkDirectory()WorkDirectorySessionExt. getWorkDirectory()Returns work directory assigned to the session.WorkDirectoryWorkDirChooseTool.ExecModelStub. getWorkDirectory()WorkDirectoryWorkDirChooseTool. getWorkDirectory()Methods in com.sun.javatest.exec with parameters of type WorkDirectory Modifier and Type Method Description protected ExecToolExecToolManager. addNewExecTool(TestSuite ts, WorkDirectory wd, InterviewParameters ip, java.lang.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, javax.swing.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, java.io.File cfgFile)Loads interview from file.voidSessionExt. loadInterviewFromFile(WorkDirectory wd, java.io.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)ExecToolExecToolManager. 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 WorkDirectory Modifier and Type Method Description WorkDirectoryBasicInterviewParameters. getWorkDirectory()Methods in com.sun.javatest.interview with parameters of type WorkDirectory Modifier and Type Method Description voidBasicInterviewParameters. 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 WorkDirectory Modifier and Type Method Description WorkDirectory[]Tool. getLoadedWorkDirectories()Get a list of any work directories that are being used by this tool.WorkDirectoryWorkDirChooser. getSelectedWorkDirectory()Get the work directory that was most recently selected by the user.WorkDirectoryCommandContext. getWorkDirectory()Get the work directory associated with this object.WorkDirectorySelectedWorkDirApprover. getWorkDirectory()Methods in com.sun.javatest.tool with parameters of type WorkDirectory Modifier and Type Method Description static FileHistoryFileHistory. getFileHistory(WorkDirectory wd, java.lang.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.
-