01: package com.canoo.webtest.extension.applet.runner;
02:
03: import org.netbeans.jemmy.Scenario;
04:
05: import java.awt.Frame;
06:
07: /**
08: * Base class for all test scenarii.
09: *
10: * @author Denis N. Antonioli
11: */
12: public abstract class AbstractScenario implements Scenario {
13: /**
14: * The root frame for the jemmy test scenario.
15: */
16: private final Frame fRootFrame;
17: /**
18: * The enclosing AppletRunner step. Use it to get parameter values, ...
19: */
20: private final AppletRunner fAppletRunner;
21:
22: /**
23: * Instantiates a new scenario.
24: *
25: * @param appletRunner The enclosing AppletRunnerStep step.
26: * @param rootFrame The root frame for the jemmy test scenario.
27: */
28: protected AbstractScenario(
29: com.canoo.webtest.extension.applet.runner.AppletRunner appletRunner,
30: Frame rootFrame) {
31: fAppletRunner = appletRunner;
32: fRootFrame = rootFrame;
33: }
34:
35: public Frame getRootFrame() {
36: return fRootFrame;
37: }
38:
39: public AppletRunner getAppletRunner() {
40: return fAppletRunner;
41: }
42: }
|