Package net.mindengine.galen.suite

Examples of net.mindengine.galen.suite.GalenPageAction


    @Override
    public GalenPageAction build(VarsContext context) {
        try {
            String actionText = context.process(getArguments());
            GalenPageAction pageAction = GalenPageActionReader.readFrom(actionText);
            pageAction.setOriginalCommand(actionText);
            return pageAction;
        }
        catch(SyntaxException e) {
            e.setLine(getLine());
            throw e;
View Full Code Here


public class GalenPageActionReaderTest {

   
    @Test(dataProvider="provideGoodSamples") public void shouldParse_action_successfully(String actionText, GalenPageAction expectedAction) {
        GalenPageAction realAction = GalenPageActionReader.readFrom(actionText);
        assertThat(realAction, is(expectedAction));
    }
View Full Code Here

        String pageDumpPath = Files.createTempDir().getAbsolutePath() + "/pagedump";

        WebDriver driver = new MockedDriver();
        driver.get("/mocks/pages/galen4j-pagedump.json");

        GalenPageAction pageAction = new GalenPageActionDumpPage("Test page", "/specs/galen4j/pagedump.spec", pageDumpPath);

        pageAction.execute(null, new SeleniumBrowser(driver), null, null);



        assertFileExists(pageDumpPath + "/page.json");
        assertFileExists(pageDumpPath + "/page.html");
View Full Code Here

TOP

Related Classes of net.mindengine.galen.suite.GalenPageAction

Copyright © 2018 www.massapicom. 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.