#!/usr/bin/env bash ## # Pre-req - Sauce Connect is running ## setup() { HOST="http://the-internet.herokuapp.com/tinymce" CAPS="--capabilities ../../common/capabilities/win10.chrome50.json" CAPS="--capabilities ../capabilities/win10.ff46.json" # CAPS= # CAPS="--sauce:browser chrome --sauce:platform \"Windows 10\" --sauce:version 46.0 --sauce:resolution 1024x768" 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" # CMD="../commands/cud.yml" } run1() { EYES= EYES="--eyes --app ${TITLE}.1280 --title ${TITLE} --match layout2" VIEWPORT="--viewport 1024x670" # VIEWPORT="--viewport 1024x722" VIEWPORT= # --sauce:platform "Windows 10" --sauce:build SmokeEx --sauce:name Smokes --sauce:browsername "MicrosoftEdge" --sauce:browser "MS Edge 13.10586" --sauce:version "13.10586" --sauce:resolution "1280x1024" \ ruby $SCOUTUI_BIN \ --config ${TESTCFG} \ --user "expense.admin@scoutui.com" --password password1 --role qa \ --diff /tmp/vt \ --pages ../appmodel/model.json \ --eyes:run false \ --eyes:viewport 1024x670 \ --eyes:app "CarMaxTestApp" \ --eyes:title "CarMaxTitle" \ --sauce:run false \ --sauce:platform "Windows 10" \ --sauce:build SmokeEx \ --sauce:name Smokes \ --sauce:browser "chrome" \ --sauce:version "beta" \ --sauce:resolution "1280x1024" \ --host ${HOST} \ --failfast true \ --debug \ --dut "${CMD}" } run2() { CAPS="--capabilities ../capabilities/win10.ff46.json" ruby $SCOUTUI_BIN \ --config ${TESTCFG} \ --user "expense.admin@scoutui.com" --password password1 \ ${EYES} \ --diff /tmp/vt \ --viewport ${VIEWPORT} \ ${SAUCE} \ ${CAPS} \ --sauce:platform PETER.0 \ --host ${HOST} \ --pages ${MODEL} \ --debug \ --dut "${CMD}" } setup run1