scoutui 2.0.5.1.1.pre → 2.0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -2
  3. data/README.md +0 -7
  4. data/examples/ex1/phantom.chrome.json +4 -0
  5. data/examples/ex1/run.sh +85 -0
  6. data/examples/ex1/simple.yml +13 -0
  7. data/examples/ex1/win10.chromebeta.json +6 -0
  8. data/lib/scoutui/appmodel/q_model.rb +5 -0
  9. data/lib/scoutui/base/assertions.rb +49 -11
  10. data/lib/scoutui/base/q_browser.rb +181 -15
  11. data/lib/scoutui/base/q_har_mgr.rb +63 -0
  12. data/lib/scoutui/base/test_data.rb +0 -2
  13. data/lib/scoutui/base/test_scout.rb +2 -1
  14. data/lib/scoutui/base/user_vars.rb +1 -1
  15. data/lib/scoutui/base/visual_test_framework.rb +78 -15
  16. data/lib/scoutui/commands/clauses/do_until.rb +25 -6
  17. data/lib/scoutui/commands/clauses/then_clause.rb +12 -0
  18. data/lib/scoutui/commands/click_object.rb +5 -2
  19. data/lib/scoutui/commands/commands.rb +85 -10
  20. data/lib/scoutui/commands/highlight.rb +72 -21
  21. data/lib/scoutui/commands/mouse_over.rb +4 -2
  22. data/lib/scoutui/commands/pause.rb +9 -2
  23. data/lib/scoutui/commands/strategy.rb +21 -2
  24. data/lib/scoutui/commands/type.rb +40 -5
  25. data/lib/scoutui/eyes/eye_scout.rb +2 -1
  26. data/lib/scoutui/utils/utils.rb +9 -0
  27. data/lib/scoutui/version.rb +1 -1
  28. data/scoutui.gemspec +2 -3
  29. metadata +15 -59
  30. data/bin/scoutui_driver +0 -1
  31. data/examples/benchmark/ex.rb +0 -16
  32. data/examples/capabilities/win10.chrome46.json +0 -6
  33. data/examples/carmax/appmodel/search_results.json +0 -27
  34. data/examples/carmax/commands/commands.yml +0 -63
  35. data/examples/cmdshell/commands/hello.yml +0 -22
  36. data/examples/converters/jsonupdate.rb +0 -31
  37. data/examples/ex2/appmodel/common.json +0 -51
  38. data/examples/ex2/appmodel/page_model.json +0 -106
  39. data/examples/ex2/appmodel/register.model.json +0 -42
  40. data/examples/ex2/commands/commands.basic.appmodel.yml +0 -8
  41. data/examples/ex2/commands/commands.yml +0 -115
  42. data/examples/ex2/commands/ex1.yml +0 -7
  43. data/examples/ex2/commands/ex1c.yml +0 -8
  44. data/examples/ex2/commands/ex1d.yml +0 -22
  45. data/examples/ex2/commands/ex2.hover.yml +0 -43
  46. data/examples/ex2/commands/ex2.yml +0 -24
  47. data/examples/ex2/data.json +0 -6
  48. data/examples/ex2/test-configs/test.config.basic.json +0 -12
  49. data/examples/ex2/test-configs/test.config.json +0 -31
  50. data/examples/ex2/tests/run-test.sh +0 -125
  51. data/examples/ex2/tests/test-basic-appmodel.sh +0 -14
  52. data/examples/ex2/tests/test-example.sh +0 -39
  53. data/examples/ex2/tests/test-example1a.sh +0 -16
  54. data/examples/ex2/tests/test-example1b.sh +0 -13
  55. data/examples/ex2/tests/test-example1c.sh +0 -15
  56. data/examples/ex2/tests/test-example1d.sh +0 -15
  57. data/examples/ex2/tests/test-example2.forms.eyes.sh +0 -40
  58. data/examples/ex2/tests/test-example2.hover.eyes.sh +0 -40
  59. data/examples/ex2/tests/test-example2.hover.sh +0 -26
  60. data/examples/ex2/tests/test-example2.sh +0 -43
  61. data/examples/ex2/tests/test-example3.sauce.sh +0 -77
  62. data/examples/ex2/tests/test-example3.sh +0 -41
  63. data/examples/headless/run.sh +0 -15
  64. data/examples/http/sendreq.rb +0 -29
@@ -1,42 +0,0 @@
1
- {
2
-
3
- "register": {
4
-
5
- "error_msgs": {
6
-
7
- "email": {
8
- "reqid": "REQ:Email - is required",
9
- "locator": "//*[@class='field-validation-error' and text()='Email is required.']",
10
- "visible_when": "text(page(register).get(form).get(email))="
11
-
12
- }
13
- },
14
-
15
- "form": {
16
- "firstname": {
17
- "locator": "//input[@id='FirstName']",
18
- "visible_when": "always"
19
- },
20
-
21
- "lastname": {
22
- "locator": "//input[@id='LastName']",
23
- "visible_when": "always"
24
- },
25
-
26
- "email": {
27
- "locator": "//input[@id='EmailAddress']",
28
- "visible_when": "always"
29
- },
30
-
31
- "register_btn": {
32
- "locator": "//input[@id='next']",
33
- "visible_when": "visible(page(register).get(form).get(firstname))",
34
- "action_object": true
35
- }
36
-
37
- }
38
-
39
- }
40
-
41
-
42
- }
@@ -1,8 +0,0 @@
1
- page:
2
- skip: false
3
- name: Home
4
- description: Navigate to a specified URL and wait until the expected elements are present
5
- url: http://www.carmax.com
6
- expected:
7
- wait: page(main_nav).get(search_input)
8
- wait2: page(main_nav).get(search_btn)
@@ -1,115 +0,0 @@
1
- page:
2
- reqid: Beta Page Loaded
3
- execute_when: url(beta.carmax.com)
4
- action: stop
5
- ---
6
- page:
7
- reqid: Initial Load
8
- url: http://www.carmax.com
9
- expected:
10
-
11
- ---
12
- page:
13
- reqid: Survey
14
- description: Survey popup answered by Yes
15
- execute_when: visible(//area[@alt='no'])
16
- action: click(//area[@alt='no'])
17
- ---
18
- page:
19
- name: Home
20
- description: Navigate to a specified URL and wait until the expected elements are present
21
- url: http://www.carmax.com
22
- expected:
23
- wait: page(home).get(cars4sale)
24
- wait2: page(home).get(whyCarMax)
25
- wait3: page(find_cars_by).get(make)
26
- assertions: [
27
- assert1: {
28
- "locator": "page(find_cars_by).get(make)",
29
- "visible_when": "always",
30
- "reqid": "REQ-HOME"
31
- },
32
- assert2: {
33
- "locator": "page(home).get(whyCarMax)",
34
- "visible_when": "always"
35
- },
36
- assert3: {
37
- "locator": "page(home)",
38
- "reqid": "REQ-HOME2"
39
- }
40
- ]
41
- ---
42
- page:
43
- name: Click on Make
44
- action: click(page(find_cars_by).get(make))
45
- expected:
46
- wait: //div[contains(@class, 'open')]//a[text()='Porsche']
47
- ---
48
- page:
49
- name: Select Porsche
50
- action: click(//div[contains(@class, 'open')]//a[text()='${MyMake}'])
51
- expected:
52
- wait: //*[@id='Model']//*[text()='${MyMake}']
53
- assertions: [
54
- assert1: {
55
- "locator": "page(find_cars_by).get(price_list)",
56
-
57
- }
58
- ]
59
- ---
60
- page:
61
- name: Select the within Mileage List
62
- action: click(//div[@id='selectedDistanceDesc'])
63
- expected:
64
- wait: //*[@id='distance']//a[text()='any distance']
65
- ---
66
- page:
67
- name: Select Any Distance
68
- action: click(//*[@id='distance']//a[text()='any distance'])
69
- ---
70
- page:
71
- name: Enter Zipcode
72
- action: type!(//*[@id='zip'], 94030)
73
- ---
74
- page:
75
- name: Update Distance
76
- action: click(//*[@id='distanceSubmit'])
77
- expected:
78
- wait: //*[@id='distance']//a[text()='any distance']
79
- wait2: //*[@id='zip' and @value='94030']
80
- ---
81
- page:
82
- action: pause
83
- skip: true
84
- ---
85
- page:
86
- name: Mouseover View Tickets
87
- action: mouseover(page(home).get(whyCarMax))
88
- snapit: true
89
- ---
90
- page:
91
- name: Click - specified by Alias
92
- action: click(${WhyCarMax})
93
- snapit: true
94
- ---
95
- page:
96
- skip: true
97
- action: pause
98
- ---
99
- page:
100
- skip: false
101
- name: Click on Input
102
- action: click(page(main_nav).get(search_input))
103
- snapit: true
104
- ---
105
- page:
106
- action: type(page(main_nav).get(search_input), ${Search_Me})
107
- ---
108
- page:
109
- action: pause
110
- skip: true
111
- ---
112
- page:
113
- action: click(page(main_nav).get(search_btn))
114
- expected:
115
- wait: //input[@id='zip']
@@ -1,7 +0,0 @@
1
- page:
2
- reqid: MainPg-001
3
- name: Home
4
- description: Navigate to a specified URL and wait until the expected elements are present
5
- url: http://www.carmax.com
6
- expected:
7
- wait: //*[@id='searchx']
@@ -1,8 +0,0 @@
1
- page:
2
- skip: false
3
- reqid: MainPg-001
4
- name: Home
5
- description: Navigate to a specified URL and wait until the expected elements are present
6
- url: http://www.carmax.com
7
- expected:
8
- wait: //*[@id='searchx']
@@ -1,22 +0,0 @@
1
- page:
2
- reqid: MainPg-001
3
- name: Home
4
- description: Navigate to a specified URL and wait until the expected elements are present
5
- url: http://www.carmax.com
6
- expected:
7
- wait: //*[@id='search']
8
- ---
9
- page:
10
- reqid: BETA_Loaded
11
- description: Beta website is loaded.
12
- execute_when: url(beta)
13
- ---
14
- page:
15
- reqid: Survey
16
- description: Survey popup answered by Yes
17
- execute_when: visible(//area[@alt='no'])
18
- action: click(//area[@alt='no'])
19
- ---
20
- page:
21
- action: pause
22
- skip: false
@@ -1,43 +0,0 @@
1
- page:
2
- name: Home
3
- description: Navigate to a specified URL and wait until the expected elements are present
4
- url: http://www.carmax.com
5
- assertions: [
6
- assert1: {
7
- "locator": "page(find_cars_by).get(make)",
8
- "visible_when": "never",
9
- "reqid": "REQ-MAKE"
10
- }
11
- ]
12
- ---
13
- page:
14
- name: Hover-Research
15
- action: mouseover(page(basic_nav).get(research))
16
- snapit: true
17
- ---
18
- page:
19
- action: pause
20
- skipit: true
21
- ---
22
- page:
23
- name: Hover-Sell Your Car
24
- snapit: true
25
- action: mouseover(page(basic_nav).get(sell_us_your_car))
26
- ---
27
- page:
28
- name: Hover-Find Your Car
29
- action: mouseover(page(basic_nav).get(find_cars_for_sale))
30
- snapit: true
31
- ---
32
- page:
33
- name: Click Register
34
- snapit: true
35
- action: click(page(home).get(register))
36
- ---
37
- page:
38
- reqid: Rover
39
- action: verifyelement(page(register_pg))
40
- ---
41
- page:
42
- action: pause
43
- skip: false
@@ -1,24 +0,0 @@
1
- page:
2
- skip: false
3
- name: Home
4
- description: Navigate to a specified URL and wait until the expected elements are present
5
- url: http://www.carmax.com
6
- expected:
7
- wait: page(home).get(cars4sale)
8
- wait2: page(home).get(whyCarMax)
9
- wait3: page(find_cars_by).get(make)
10
- assertions: [
11
- assert1: {
12
- "locator": "page(find_cars_by).get(make)",
13
- "visible_when": "never",
14
- "reqid": "REQ-MAKE"
15
- },
16
- assert2: {
17
- "locator": "page(home)",
18
- "reqid": "REQ-HOME"
19
- }
20
- ]
21
- ---
22
- page:
23
- action: pause
24
- skip: false
@@ -1,6 +0,0 @@
1
- {
2
-
3
- "make": "porsche"
4
-
5
-
6
- }
@@ -1,12 +0,0 @@
1
- {
2
- "Project": "Example",
3
- "Version": "1.00",
4
- "Description": "Example - CarMax",
5
-
6
- "browser": "chrome",
7
-
8
- "host": "http://www.carmax.com",
9
-
10
- "dut": ""
11
- }
12
-
@@ -1,31 +0,0 @@
1
- {
2
- "Project": "Example",
3
- "Version": "1.00",
4
- "Description": "Example - CarMax",
5
-
6
- "browser": "chrome",
7
-
8
- "eyes": {
9
- "title": "Example - CarMax",
10
- "viewport": "1024x718",
11
- "app": "10-16"
12
- },
13
-
14
- "host": "http://www.carmax.com",
15
- "dut": "../commands/home.command.yml",
16
- "dut2": "../commands/commands.yml",
17
-
18
-
19
- "user_vars": {
20
- "Search_Me": "BMW M3",
21
- "View_Tickets_Link": "page(main_nav).get(ViewTicketsLink)",
22
- "WhyCarMax": "page(home).get(whyCarMax)",
23
-
24
- "firstname": "Elvis",
25
-
26
- "MyMake": "Porsche",
27
- "make_aut": "file(porsche.json)"
28
- }
29
-
30
- }
31
-
@@ -1,125 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
-
4
-
5
- #VIEXPORT="--viewport 800x600"
6
-
7
- while getopts ":a:b:c:d:eh:il:m:p:r:st:u:A:P:O:S:T:V:vw:" opt; do
8
- case $opt in
9
- a)
10
- echo "-a was triggered, Parameter: $OPTARG" >&2
11
- ;;
12
- b)
13
- BROWSER="--browser $OPTARG"
14
-
15
- if [[ $BROWSER=="chrome" ]];
16
- then
17
- rc=`/usr/local/bin/which chromedriver`
18
- if [ $? -ne 0 ]
19
- then
20
- echo "-- Error: unable to find chromedriver. --"
21
- exit 2
22
- fi
23
-
24
- fi
25
- ;;
26
- c)
27
- CAPS="--capabilities $OPTARG"
28
- ;;
29
- d)
30
- DUT="--dut $OPTARG"
31
- ;;
32
- e)
33
- EYES="--eyes"
34
- ;;
35
- h)
36
- HOST="--host \"$OPTARG\""
37
- ;;
38
- i)
39
- INC_EXP="--include_expectations"
40
- ;;
41
- l)
42
- LEVEL="--loglevel $OPTARG"
43
- ;;
44
- m)
45
- MATCH_LEVEL="--match $OPTARG"
46
- ;;
47
- p)
48
- PASSWORD="--password $OPTARG"
49
- ;;
50
- r)
51
- ROLE="--role $OPTARG"
52
- ;;
53
- s)
54
- SAUCE="--sauce"
55
- ;;
56
- S)
57
- SAUCE_NAME="--sauce_name $OPTARG"
58
- ;;
59
- t)
60
- TEST_CFG="$OPTARG"
61
- ;;
62
- u)
63
- USERID="--user $OPTARG"
64
- ;;
65
- v)
66
- VERBOSE="--debug"
67
- ;;
68
- w)
69
- DEFAULT_WAIT="--wait $OPTARG"
70
- ;;
71
- A)
72
- APP="--app $OPTARG"
73
- ;;
74
- O)
75
- mkdir -p $OPTARGET 2>/dev/null
76
- DIFF_DIR="--diffs $OPTARG"
77
- ;;
78
- P)
79
- PAGE_MODEL="--pages $OPTARG"
80
- ;;
81
- T)
82
- TITLE="--title $OPTARG"
83
- ;;
84
- V)
85
- VIEWPORT="--viewport $OPTARG"
86
- ;;
87
- \?)
88
- echo "Invalid option: -$OPTARG" >&2
89
- exit 1
90
- ;;
91
- :)
92
- echo "Option -$OPTARG requires an argument." >&2
93
- exit 1
94
- ;;
95
- esac
96
- done
97
-
98
- echo "BROWSER: ${BROWSER}"
99
- echo "EYES : ${EYES}"
100
- echo "HOST : ${HOST}"
101
- echo "VERBOSE: ${VERBOSE}"
102
- echo "MATCH: ${MATCH_LEVEL}"
103
- echo "SAUCE: ${SAUCE}"
104
- echo "CAPS: ${CAPS}"
105
- echo "DUT: ${DUT}"
106
- echo "TITLE: ${TITLE}"
107
- echo "APP: ${APP}"
108
- echo "VIEWPORT: ${VIEWPORT}"
109
-
110
-
111
- # --dut ../commands/login.fail.yml
112
- #TITLE="--title DEMO-XYZ"
113
- #APP="--app LOC.ALL-HANDS"
114
- #PAGE_MODEL="--pages ../appmodels/page_model.cge.json,../appmodels/page_model.traveler.json,../appmodels/page_model.common_bar.json"
115
-
116
- if [[ -f $TEST_CFG ]]; then
117
-
118
- CMD="ruby $SCOUTUI_BIN --config ${TEST_CFG} ${INC_EXP} ${DIFF_DIR} ${LEVEL} ${USERID} ${PASSWORD} ${DUT} ${VIEWPORT} ${ROLE} ${EYES} ${SAUCE} ${SAUCE_NAME} $TITLE ${APP} ${CAPS} ${MATCH_LEVEL} ${BROWSER} ${HOST} ${PAGE_MODEL} ${DEFAULT_WAIT} ${VERBOSE}"
119
-
120
- echo $CMD
121
- eval $CMD
122
- else
123
- echo "Error: unable to access ${TEST_CFG}."
124
- exit 1
125
- fi
@@ -1,14 +0,0 @@
1
- #/bin/bash
2
- ##
3
- # Description
4
- # Main test script.
5
- ##
6
- export SCOUTUI_BIN=../../../bin/scoutui_driver.rb
7
-
8
-
9
- # Specify the test configuration file
10
- TEST_CFG="../test-configs/test.config.basic.json"
11
- APP_MODEL="../appmodel/page_model.json"
12
-
13
-
14
- ./run-test.sh -b chrome -d ../commands/commands.basic.appmodel.yml -P $APP_MODEL -t $TEST_CFG -v
@@ -1,39 +0,0 @@
1
- #/bin/bash
2
- ##
3
- # Description
4
- # This test script overrides the provided title and appname (if provided in the test config. file)
5
- #
6
- # Set the APPLITOOLS_API_KEY environment variable with your key.
7
- #
8
- # export APPLITOOLS_API_KEY="__YOUR_KEY_HERE__"
9
- ##
10
- SCOUTUI_BIN=../../../bin/scoutui_driver.rb
11
- # Specify browser under test (chrome, firefox, ie, safari)
12
- BUT=firefox
13
-
14
- # Specify the title and appName needed by Applitools
15
- ## NOTE: If the test configuration file specifies the title and app, it is superseded by the
16
- ## command line options.
17
- TITLE=DEMO-CarMax
18
- APP=Oct2015
19
-
20
- # Specify the test configuration file
21
- TEST_CFG="../test-configs/test.config.json"
22
-
23
- ##
24
- # content
25
- # strict
26
- # exact
27
- # layyout
28
- ##
29
- MATCH_TYPE="layout"
30
-
31
- EYES=--eyes
32
- EYES=
33
-
34
-
35
- # The following command line parameters will override provided title and appName (if provided in test config file)
36
- $SCOUTUI_BIN --config $TEST_CFG --browser $BUT $EYES --app $APP --title $TITLE --match $MATCH_TYPE --pagemodel ../appmodel/page_model.json --debug
37
-
38
- # The following
39
- # $SCOUTUI_BIN --config $TEST_CFG --eyes --match $MATCH_TYPE --browser $BUT
@@ -1,16 +0,0 @@
1
- #/bin/bash
2
- ##
3
- # Description
4
- # Load a page and wait for expected elements, however these are
5
- # explicit 'waits' - included in assertions.
6
- #
7
- # The parameter '-i' will include the 'waits' on expected elements
8
- # as assertions (e.g. will be used for pass/fail criteria). The "-i" is used.
9
- ##
10
- export SCOUTUI_BIN=../../../bin/scoutui_driver.rb
11
-
12
-
13
- # Specify the test configuration file
14
- TEST_CFG="../test-configs/test.config.basic.json"
15
-
16
- ./run-test.sh -b chrome -d ../commands/ex1.yml -t $TEST_CFG -v -i
@@ -1,13 +0,0 @@
1
- #/bin/bash
2
- ##
3
- # Description
4
- # Load a page and wait for expected elements, however these are
5
- # explicit 'waits' - WITHOUT assertions (e.g. the "-i" is omitted).
6
- ##
7
- export SCOUTUI_BIN=../../../bin/scoutui_driver.rb
8
-
9
-
10
- # Specify the test configuration file
11
- TEST_CFG="../test-configs/test.config.basic.json"
12
-
13
- ./run-test.sh -b chrome -d ../commands/ex1.yml -t $TEST_CFG -v
@@ -1,15 +0,0 @@
1
- #/bin/bash
2
- ##
3
- # Description
4
- # Load a page and wait for expected elements, however these are
5
- # explicit 'waits' - included in assertions.
6
- #
7
- # Set a default timeout (wait) in seconds when searching/finding for elements.
8
- ##
9
- export SCOUTUI_BIN=../../../bin/scoutui_driver.rb
10
-
11
-
12
- # Specify the test configuration file
13
- TEST_CFG="../test-configs/test.config.basic.json"
14
-
15
- ./run-test.sh -b chrome -d ../commands/ex1c.yml -t $TEST_CFG -v -w 5 -i
@@ -1,15 +0,0 @@
1
- #/bin/bash
2
- ##
3
- # Description
4
- # Load a page and wait for expected elements, however these are
5
- # explicit 'waits' - included in assertions.
6
- #
7
- # Set a default timeout (wait) in seconds when searching/finding for elements.
8
- ##
9
- export SCOUTUI_BIN=../../../bin/scoutui_driver.rb
10
-
11
-
12
- # Specify the test configuration file
13
- TEST_CFG="../test-configs/test.config.basic.json"
14
-
15
- ./run-test.sh -b chrome -d ../commands/ex1d.yml -t $TEST_CFG -v -w 5
@@ -1,40 +0,0 @@
1
- #!/usr/bin/env bash
2
- #/bin/bash
3
- ##
4
- # Description
5
- ##
6
-
7
- export SCOUTUI_BIN=../../../bin/scoutui_driver.rb
8
- # Specify browser under test (chrome, firefox, ie, safari)
9
- BUT=firefox
10
-
11
- # Specify the title and appName needed by Applitools
12
- ## NOTE: If the test configuration file specifies the title and app, it is superseded by the
13
- ## command line options.
14
- TITLE=DEMO-CarMax
15
- APP=STPCon-Springx
16
-
17
- # Specify the test configuration file
18
- TEST_CFG="../test-configs/test.config.json"
19
-
20
- ##
21
- # content
22
- # strict
23
- # exact
24
- # layyout
25
- ##
26
- MATCH_TYPE="layout"
27
-
28
-
29
- PM="../appmodel/page_model.json,../appmodel/common.json,../appmodel/register.model.json"
30
-
31
-
32
- eyes() {
33
- ./run-test.sh -b chrome -i -d ../commands/ex2.hover.yml -P "${PM}" -t ../test-configs/test.config.json -v \
34
- -e -m content -T CarMax_Hover -A Ex1 -O /tmp/vt \
35
- -d ../commands/ex.forms.yml
36
- }
37
-
38
-
39
- ./run-test.sh -b firefox -i -d ../commands/ex2.hover.yml -P "${PM}" -t ../test-configs/test.config.json -v \
40
- -d ../commands/ex.forms.yml
@@ -1,40 +0,0 @@
1
- #/bin/bash
2
- ##
3
- # Description
4
- # This test script overrides the provided title and appname (if provided in the test config. file)
5
- #
6
- # Set the APPLITOOLS_API_KEY environment variable with your key.
7
- #
8
- # export APPLITOOLS_API_KEY="__YOUR_KEY_HERE__"
9
- ##
10
-
11
- export SCOUTUI_BIN=../../../bin/scoutui_driver.rb
12
- # Specify browser under test (chrome, firefox, ie, safari)
13
- BUT=firefox
14
-
15
- # Specify the title and appName needed by Applitools
16
- ## NOTE: If the test configuration file specifies the title and app, it is superseded by the
17
- ## command line options.
18
- TITLE=DEMO-CarMax
19
- APP=STPCon-Springx
20
-
21
- # Specify the test configuration file
22
- TEST_CFG="../test-configs/test.config.json"
23
-
24
- ##
25
- # content
26
- # strict
27
- # exact
28
- # layyout
29
- ##
30
- MATCH_TYPE="layout"
31
-
32
-
33
-
34
-
35
-
36
- PM="../appmodel/page_model.json,../appmodel/common.json"
37
-
38
-
39
- ./run-test.sh -b chrome -i -d ../commands/ex2.hover.yml -P "${PM}" -t ../test-configs/test.config.json -v \
40
- -e -m content -T CarMax_Hover -A Ex1 -O /tmp/vt
@@ -1,26 +0,0 @@
1
- #/bin/bash
2
- ##
3
- # Description
4
- # This test script overrides the provided title and appname (if provided in the test config. file)
5
- #
6
- # Set the APPLITOOLS_API_KEY environment variable with your key.
7
- #
8
- # export APPLITOOLS_API_KEY="__YOUR_KEY_HERE__"
9
- ##
10
-
11
- export SCOUTUI_BIN=../../../bin/scoutui_driver.rb
12
- # Specify browser under test (chrome, firefox, ie, safari)
13
- BUT=firefox
14
-
15
- # Specify the title and appName needed by Applitools
16
- ## NOTE: If the test configuration file specifies the title and app, it is superseded by the
17
- ## command line options.
18
- TITLE=DEMO-CarMax
19
- APP=Oct2015
20
-
21
- # Specify the test configuration file
22
- TEST_CFG="../test-configs/test.config.json"
23
-
24
- PM="../appmodel/page_model.json,../appmodel/common.json"
25
-
26
- ./run-test.sh -b chrome -i -d ../commands/ex2.hover.yml -P "${PM}" -t ../test-configs/test.config.json -v