Groovy web console

subscribe to the feed Subscribe
to this
site

Pepino switch

Published 1 month ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def testRunner = "pepino_legacy";
def command = "";
def url = "http://blah blah"
def testjs = "config.js"

switch (testRunner) {
    case "pepino":
    case "pepino+acis":
        command = "cells-pepino+acis -u ${url} -c config/${testjs} "
        break;
    case "pepino_legacy":
    default:
        command = "cells-legacy app:e2e -u ${url} -c ${testjs} "
        break;
}

print command;