Package com.softwaremill.common.test.web.selenium

Examples of com.softwaremill.common.test.web.selenium.ServerProperties


    @DataProvider
    public Object[][] getServerProperties() {
        return new Object[][]{
                {
                        new ServerProperties(SERVER_HOME).asVersion(5),
                        SERVER_HOME + "/bin/run.sh -c default -Djboss.service.binding.set=ports-02"
                },
                {
                        new ServerProperties(SERVER_HOME).asVersion(5).secured(true).username("scott").password("tiger").configuration("myconf").portset(0),
                        SERVER_HOME + "/bin/run.sh -c myconf"
                },
                {
                        new ServerProperties(SERVER_HOME).asVersion(6).additionalSystemProperties("-Dmyprop=val"),
                        SERVER_HOME + "/bin/run.sh -c default -Djboss.service.binding.set=ports-02 -Dmyprop=val"
                },
                {
                        new ServerProperties(SERVER_HOME).asVersion(7).portset(0),
                        SERVER_HOME + "/bin/standalone.sh"
                },
                {
                        new ServerProperties(SERVER_HOME).asVersion(7).portset(2),
                        SERVER_HOME + "/bin/standalone.sh  -Djboss.socket.binding.port-offset=200"
                },
                {
                        new ServerProperties(SERVER_HOME).asVersion(7).configuration("mystandalone.xml").portset(0),
                        SERVER_HOME + "/bin/standalone.sh -c mystandalone.xml"
                },
        };
    }
View Full Code Here


  @DataProvider
    public Object[][] getServerPropertiesShutdown() {
        return new Object[][]{
                {
                        new ServerProperties(SERVER_HOME).asVersion(5),
                        SERVER_HOME + "/bin/shutdown.sh --server=localhost:1299 -S"
                },
                {
                        new ServerProperties(SERVER_HOME).asVersion(5).secured(true).username("scott").password("tiger").configuration("myconf").portset(0),
                        SERVER_HOME + "/bin/shutdown.sh --server=localhost:1099 -S -u scott -p tiger"
                },
                {
                        new ServerProperties(SERVER_HOME).asVersion(6).additionalSystemProperties("-Dmyprop=val"),
                        SERVER_HOME + "/bin/shutdown.sh --host=localhost --port=1290 -S"
                },
                {
                        new ServerProperties(SERVER_HOME).asVersion(7).portset(0),
                        SERVER_HOME + "/bin/jboss-cli.sh --connect command=:shutdown"
                },
                {
                        new ServerProperties(SERVER_HOME).asVersion(7).portset(2),
                        SERVER_HOME + "/bin/jboss-cli.sh --connect command=:shutdown --controller=localhost:10199"
                },
                {
                        new ServerProperties(SERVER_HOME).asVersion(7).portset(0).secured(true).username("scott").password("tiger"),
                        SERVER_HOME + "/bin/jboss-cli.sh --connect command=:shutdown --user=scott --password=tiger"
                },
        };
    }
View Full Code Here

TOP

Related Classes of com.softwaremill.common.test.web.selenium.ServerProperties

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.