scoutui 2.0.5.2.1.pre → 2.0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +6 -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/base/q_har_mgr.rb +63 -0
  9. data/lib/scoutui/base/test_data.rb +0 -6
  10. data/lib/scoutui/commands/click_object.rb +1 -7
  11. data/lib/scoutui/version.rb +1 -1
  12. data/scoutui.gemspec +3 -4
  13. metadata +17 -62
  14. data/bin/scoutui_driver +0 -1
  15. data/examples/benchmark/ex.rb +0 -16
  16. data/examples/capabilities/win10.chrome46.json +0 -6
  17. data/examples/carmax/appmodel/search_results.json +0 -27
  18. data/examples/carmax/commands/commands.yml +0 -63
  19. data/examples/cmdshell/commands/hello.yml +0 -22
  20. data/examples/converters/jsonupdate.rb +0 -31
  21. data/examples/ex2/appmodel/common.json +0 -51
  22. data/examples/ex2/appmodel/page_model.json +0 -106
  23. data/examples/ex2/appmodel/register.model.json +0 -42
  24. data/examples/ex2/commands/commands.basic.appmodel.yml +0 -8
  25. data/examples/ex2/commands/commands.yml +0 -115
  26. data/examples/ex2/commands/ex1.yml +0 -7
  27. data/examples/ex2/commands/ex1c.yml +0 -8
  28. data/examples/ex2/commands/ex1d.yml +0 -22
  29. data/examples/ex2/commands/ex2.hover.yml +0 -43
  30. data/examples/ex2/commands/ex2.yml +0 -24
  31. data/examples/ex2/data.json +0 -6
  32. data/examples/ex2/test-configs/test.config.basic.json +0 -12
  33. data/examples/ex2/test-configs/test.config.json +0 -31
  34. data/examples/ex2/tests/run-test.sh +0 -125
  35. data/examples/ex2/tests/test-basic-appmodel.sh +0 -14
  36. data/examples/ex2/tests/test-example.sh +0 -39
  37. data/examples/ex2/tests/test-example1a.sh +0 -16
  38. data/examples/ex2/tests/test-example1b.sh +0 -13
  39. data/examples/ex2/tests/test-example1c.sh +0 -15
  40. data/examples/ex2/tests/test-example1d.sh +0 -15
  41. data/examples/ex2/tests/test-example2.forms.eyes.sh +0 -40
  42. data/examples/ex2/tests/test-example2.hover.eyes.sh +0 -40
  43. data/examples/ex2/tests/test-example2.hover.sh +0 -26
  44. data/examples/ex2/tests/test-example2.sh +0 -43
  45. data/examples/ex2/tests/test-example3.sauce.sh +0 -77
  46. data/examples/ex2/tests/test-example3.sh +0 -41
  47. data/examples/headless/run.sh +0 -15
  48. data/examples/http/sendreq.rb +0 -29
  49. data/examples/js.rb +0 -48
@@ -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
@@ -1,43 +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
40
-
41
- PM="../appmodel/page_model.json,../appmodel/common.json"
42
-
43
- ./run-test.sh -b chrome -i -d ../commands/ex2.yml -P "${PM}" -t ../test-configs/test.config.json -v
@@ -1,77 +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
- export 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=Carmax_Ex3
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
-
32
-
33
- sauce_eyes() {
34
-
35
-
36
-
37
-
38
- ./run-test.sh -b chrome -d ../commands/commands.yml \
39
- -P ../appmodel/page_model.json \
40
- -t ../test-configs/test.config.json \
41
- -v \
42
- -A STP_Example \
43
- -T VH \
44
- -O /tmp/vt \
45
- -e \
46
- -m content \
47
- -s \
48
- -S $TITLE \
49
- -c ../../capabilities/win10.chrome46.json
50
- }
51
-
52
-
53
- sauce() {
54
-
55
- ./run-test.sh -b chrome -d ../commands/commands.yml \
56
- -P ../appmodel/page_model.json \
57
- -t ../test-configs/test.config.json \
58
- -v \
59
- -s \
60
- -w 5 \
61
- -S $TITLE \
62
- -c ../../capabilities/win10.chrome46.json
63
- }
64
-
65
-
66
- local() {
67
-
68
- ./run-test.sh -b chrome -d ../commands/commands.yml \
69
- -P ../appmodel/page_model.json \
70
- -t ../test-configs/test.config.json \
71
- -v \
72
- -w 5 \
73
- -c ../../capabilities/win10.chrome46.json
74
-
75
- }
76
-
77
- sauce
@@ -1,41 +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
- export 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
40
-
41
- ./run-test.sh -b chrome -d ../commands/commands.yml -P ../appmodel/page_model.json -t ../test-configs/test.config.json -w 5 -v
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- HOST="http://www.van-halen.com"
4
-
5
- TESTCFG=test.config.json
6
- CMD=commands.yml
7
-
8
-
9
- ruby $SCOUTUI_BIN --config ${TESTCFG} \
10
- --browser phantomjs \
11
- --seleniumserver http://localhost:8001 \
12
- --host "${HOST}" \
13
- --dut ${CMD} --debug
14
-
15
-
@@ -1,29 +0,0 @@
1
- require 'net/http'
2
- require 'uri'
3
- require 'json'
4
-
5
- #uri = URI.parse("http://localhost:3000/users")
6
- #uri = URI.parse("http://10.24.70.173/cgi-bin/wspd_cgi.sh/WService=tmcurrent/workshop")
7
- uri = URI.parse("http://10.24.70.173/cgi-bin/wspd_cgi.sh/WService=tmcurrent/webtools/edtscrpt.w")
8
-
9
- header = { 'Content-Type': ':application/x-www-form-urlencoded',
10
- 'User-Agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36'
11
- }
12
-
13
-
14
- user = {user: {
15
- name: 'Bob',
16
- email: 'bob@example.com'
17
- }
18
- }
19
-
20
- # Create the HTTP objects
21
- http = Net::HTTP.new(uri.host, uri.port)
22
-
23
- request = Net::HTTP::Post.new(uri.request_uri, header)
24
- request.body ='language=SpeedScript&CODE=SELECT+DISTINCT+location%2C+travdate%2C+line-type+FROM+travel.itinry+where+ssn%3D+%2755532%27and+line-type%3D+%27t%27+and++travdate+%3C%3D+12%2F19%2F2016+order+by+travdate+desc&Run=Run+Script&SampleCode=Simple+DO+Loop'
25
-
26
- # Send the request
27
- response = http.request(request)
28
-
29
- puts response.body.to_s
data/examples/js.rb DELETED
@@ -1,48 +0,0 @@
1
-
2
- require 'selenium-webdriver'
3
-
4
-
5
-
6
- b=Selenium::WebDriver.for :firefox
7
-
8
-
9
- b.navigate.to 'http://www.concursolutions.com'
10
-
11
-
12
- STDIN.gets
13
-
14
- highlight='hlt = function(c) { c.style.border="solid 2px rgb(255, 16, 16)"; }; return hlt(arguments[0]);'
15
- js='hit = function(elt) { var keyEvent = new KeyboardEvent("keydown", {key : "D", char : "D", shiftKey: true}); elt.dispatchEvent(keyEvent); }; return hit(arguments[0]);'
16
-
17
- element=b.find_element(:css => '#selectLang')
18
-
19
- b.execute_script(highlight, element)
20
-
21
- element.click
22
-
23
- g='hlt=function simulateKeyEvent(character) {
24
- var evt = document.createEvent("KeyboardEvent");
25
- (evt.initKeyEvent || evt.initKeyboardEvent.call)("keypress", true, true, window,
26
- 0, 0, 0, 0,
27
- 0, character.charCodeAt(0))
28
- var canceled = !body.dispatchEvent(evt);
29
- if(canceled) {
30
- // A handler called preventDefault
31
- alert("canceled");
32
- } else {
33
- // None of the handlers called preventDefault
34
- alert("not canceled");
35
- }
36
- }; return hlt(arguments[0]);'
37
-
38
-
39
-
40
-
41
- opts=element.find_elements(:xpath, '//option')
42
- opts.each do |o|
43
- puts "=> #{o.text}"
44
- end
45
-
46
-
47
- b.close
48
- b.quit