Beispiel #1
0
def grid_status(subject, argv):
    if not HubController.is_running():
        ok("Grid is not running")
        sys.exit(1)
    grid = HubController.get_status()
    ok("GridIP: " + grid['Ip'] + ' Firefox Nodes: ' +
       str(grid['firefox_count']) + ' PhantomJS Nodes: ' +
       str(grid['phantomjs_count']) + ' Chrome Nodes: ' +
       str(grid['chrome_count']))
Beispiel #2
0
def start(subject, argv):
    if HubController.is_running():
        warning("Hub already running")
        sys.exit(1)

    info("Starting up grid...")
    status = HubController.start()
    if not status:
        fail("Hub failed to start")
        sys.exit(1)
    ok("Hub is Ready!")
Beispiel #3
0
def start(subject, argv):
    if HubController.is_running():
        warning("Hub already running")
        sys.exit(1)

    info("Starting up grid...")
    status = HubController.start()
    if not status:
        fail("Hub failed to start")
        sys.exit(1)
    ok("Hub is Ready!")
Beispiel #4
0
def grid_status(subject, argv):
    if not HubController.is_running():
        ok("Grid is not running")
        sys.exit(1)
    grid = HubController.get_status()
    ok(
        "GridIP: "
        + grid["Ip"]
        + " Firefox Nodes: "
        + str(grid["firefox_count"])
        + " PhantomJS Nodes: "
        + str(grid["phantomjs_count"])
        + " Chrome Nodes: "
        + str(grid["chrome_count"])
    )
Beispiel #5
0
def shutdown(subject, argv):
    if not HubController.is_running():
        fail("Hub is not running")
        sys.exit(1)
    info("Shutting down grid...")
    HubController.shutdown()
Beispiel #6
0
def grid_status(subject, argv):
    if not HubController.is_running():
        ok("Grid is not running")
        sys.exit(1)
    grid = HubController.get_status()
    ok("GridIP: " + grid['Ip'] + ' Firefox Nodes: ' + str(grid['firefox_count']) + ' PhantomJS Nodes: ' + str(grid['phantomjs_count']))
Beispiel #7
0
def shutdown(subject, argv):
    if not HubController.is_running():
        fail("Hub is not running")
        sys.exit(1)
    info("Shutting down grid...")
    HubController.shutdown()