Package | Description |
---|---|
com.sun.javatest |
This package provides facilities for reading, executing
and monitoring tests.
|
com.sun.javatest.util |
This package contains utility classes provided in support of the Javatest test harness.
|
Modifier and Type | Field and Description |
---|---|
protected BackupPolicy |
Script.backupPolicy
A backup policy object that specifies how files should be backed up,
if a file is found to exist when a new one of the same name is to be
written.
|
Modifier and Type | Method and Description |
---|---|
BackupPolicy |
TestRunner.getBackupPolicy()
Get the backup policy to be used when creating the test result files
generated by this test runner.
|
BackupPolicy |
InterviewParameters.getBackupPolicy()
Get the backup policy to be used when saving configuration files.
|
BackupPolicy |
Harness.getBackupPolicy()
Get the backup policy object used by this harness, used to determine
the policy for backing up files before overwriting them.
|
Modifier and Type | Method and Description |
---|---|
Script |
TestSuite.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.
|
void |
Script.initBackupPolicy(BackupPolicy backupPolicy)
Initialize the backup policy to be used when creating a test result
file in which to store the results of running this test.
|
void |
InterviewParameters.setBackupPolicy(BackupPolicy backupPolicy)
Set the backup policy to be used when saving configuration files.
|
void |
Harness.setBackupPolicy(BackupPolicy bp)
Set the backup policy object to be used by this harness,
used to determine the policy for backing up files before
overwriting them.
|
void |
TestResult.writeResults(WorkDirectory workDir,
BackupPolicy backupPolicy)
Writes the TestResult into a version 2 jtr file.
|
Modifier and Type | Method and Description |
---|---|
static BackupPolicy |
BackupPolicy.noBackups()
Get a BackupPolicy object which does no backups for any files.
|
static BackupPolicy |
BackupPolicy.simpleBackups(int n)
Get a BackupPolicy object which does a set number of backups for all files.
|
Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.