public class BasePrms extends Object
To add test- or package-specific parameters, create a subclass with a public field for each parameter and a static initializer, like so:
package sampletest;
import hydra.BasePrms;
public class SamplePrms extends BasePrms {
public static Long sample1;
public static Long sample2;
static {
BasePrms.setValues( SamplePrms.class );
}
}
At runtime, the values of config settings can be accessed through
the ConfigHashtable available from TestConfig.getParameters().
ConfigHashtable.stringAt(Long)| Modifier and Type | Field and Description |
|---|---|
protected static String |
DASH |
static String |
DEFAULT |
static String |
NONE |
| Constructor and Description |
|---|
BasePrms() |
| Modifier and Type | Method and Description |
|---|---|
static void |
dumpKeys() |
static Long |
keyForName(String name) |
static String |
nameForKey(Long key) |
protected static void |
setValues(Class cls) |
static ConfigHashtable |
tab() |
static ConfigHashtable |
tasktab() |
public static final String NONE
public static final String DEFAULT
protected static String DASH
protected static void setValues(Class cls)
public static void dumpKeys()
public static ConfigHashtable tab()
public static ConfigHashtable tasktab()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.