Examples of IRuntimeFactory


Examples of net.sourceforge.marathon.api.IRuntimeFactory

    protected synchronized void runTest() throws Throwable {
        checkLists.clear();
        screenCaptures.clear();
        try {
            String scriptText = getScriptContents();
            IRuntimeFactory rf = getRuntimeFactory(scriptText);
            boolean shouldRunFixture = false;
            if (runtime == null || !reuseFixture) {
                // This condition is added for Unit Testing purposes.
                if (runtime == null || !runtime.getClass().getName().equals("net.sourceforge.marathon.runtime.RuntimeStub")) {
                    if (runtime != null)
                        runtime.destroy();
                    shouldRunFixture = true;
                    runtime = rf.createRuntime(MarathonMode.OTHER, scriptText, console);
                }
            }
            script = runtime.createScript(scriptText, file.getAbsolutePath(), false, true);
            if (dataVariables != null)
                script.setDataVariables(dataVariables);
View Full Code Here

Examples of net.sourceforge.marathon.api.IRuntimeFactory

        state = pState;
        displayView.setState(state);
    }

    private void createRuntime(String scriptText, IConsole console, MarathonMode mode) {
        IRuntimeFactory rf = getRuntimeFactory(scriptText);
        if (runtime == null || !reuseFixture || ignoreReuse) {
            if (runtime != null) {
                closeApplication(true);
            }
            runtime = rf.createRuntime(mode, scriptText, console);
        }
        assert (runtime != null);
        this.autShutdown = false;
    }
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.