Package abbot.script

Examples of abbot.script.ForkedStepRunner.run()


        fs.addStepListener(new StepListener() {
            public void stateChanged(StepEvent event) {
                events.add(event);
            }
        });
        fs.run(script);
        assertEquals("Wrong number of events", 2, events.size());
        assertEquals("Wrong step source, event 0",
                     script, ((StepEvent)events.get(0)).getStep());
        assertEquals("Wrong step id, event 0",
                     StepEvent.STEP_START,
View Full Code Here


            + "<assert method=\"assertFrameShowing\" args=\"no such window\"/>"
            + "</AWTTestScript>";
        ForkedStepRunner fs = new ForkedStepRunner();
        Script script = loadScript(src);
        try {
            fs.run(script);
            fail("The failure was not propagated");
        }
        catch(ForkedFailure ff) {
            assertEquals("Error not set in runner",
                         ff, fs.getError(script));
View Full Code Here

            + "<launch class=\"nonsense class\" method=\"main\" args=\"[]\"/>"
            + "</AWTTestScript>";
        ForkedStepRunner fs = new ForkedStepRunner();
        Script script = loadScript(src);
        try {
            fs.run(script);
            fail("No error propagated");
        }
        catch(ForkedError fe) {
            assertEquals("Error not set in runner",
                         fe, fs.getError(script));
View Full Code Here

        script2.setFile(s2);
        script2.save();
        ForkedStepRunner fs = new ForkedStepRunner();
        Script script = loadScript(src);
        script.setFile(new File(dir, getName()));
        fs.run(script);
        assertEquals("No errors expected", null, fs.getError(script));
    }

    private Script loadScript(String src) throws Throwable {
        StringReader reader = new StringReader(src);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.