throws InterruptedException {
final String headless = System.getProperty("java.awt.headless", "false");
if (!headless.equalsIgnoreCase("true") && TestData.isInteractiveTest()) {
try {
Frame frame = new Frame(testName);
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
e.getWindow().dispose();
}
});