Package net.mindengine.galen.suite.actions

Examples of net.mindengine.galen.suite.actions.GalenPageActionProperties


        TestSession.register(null);
       
        System.getProperties().remove("page.title");
        System.getProperties().remove("page.download.caption");
        System.getProperties().remove("login.link") ;
        GalenPageActionProperties action = new GalenPageActionProperties();
        action.setFiles(Arrays.asList(findResource("/properties/homepage-en.properties"), findResource("/properties/loginpage-en.properties")));
       
       
        action.execute(new TestReport(), NO_BROWSER, new GalenPageTest(), NO_LISTENER);
       
        assertThat("System property page.title should be", TestSession.current().getProperties().get("page.title"), Matchers.is("Home page"));
        assertThat("System property page.download.caption should be", TestSession.current().getProperties().get("page.download.caption"), Matchers.is("Take it!"));
        assertThat("System property login.link should be", TestSession.current().getProperties().get("login.link"), Matchers.is("Sign in"));
       
View Full Code Here


    }
   
    @Test(expectedExceptions=FileNotFoundException.class,
            expectedExceptionsMessageRegExp="File does not exist: some-unexistent-file.properties")
    public void shouldGiveError_whenFile_isNotFound() throws Exception {
        GalenPageActionProperties action = new GalenPageActionProperties();
        action.setFiles(Arrays.asList("some-unexistent-file.properties"));
        action.execute(new TestReport(), NO_BROWSER, new GalenPageTest(), NO_LISTENER);
    }
View Full Code Here

TOP

Related Classes of net.mindengine.galen.suite.actions.GalenPageActionProperties

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.