#!/usr/bin/env bash ## # Pre-req - Sauce Connect is running ## setup() { HOST="https://www.carmax.com" CAPS="--capabilities ../../common/capabilities/win10.chrome50.json" CAPS="--capabilities ../../common/capabilities/win10.ff46.json" CAPS= USER_ID="terrybrown@commasavvy.com" PASSWORD="password1" TESTCFG=../testconfig/test.config.json TITLE="CARMAX" VIEWPORT="1024x768" MODEL="../appmodel/main.nav.json,../appmodel/search_results.json" EYES="--eyes --app ${TITLE} --title ${TITLE} --match layout2" # EYES= SAUCE="--sauce --sauce_name ${TITLE}" SAUCE="--browser chrome" CMD="../commands/commands.yml" CMD="../commands/basic_search.yml" CMD="../commands/home.commands.yml" } setup mkdir -p /tmp/vt ruby $SCOUTUI_BIN \ --config ${TESTCFG} \ --user "expense.admin@scoutui.com" --password password1 \ ${EYES} \ --diff /tmp/vt \ --viewport ${VIEWPORT} \ ${SAUCE} \ ${CAPS} \ --host ${HOST} \ --pages ${MODEL} \ --debug \ --dut "${CMD}"