cbthelper 0.0.0 → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0d344eb5bed1594c52cb3a3f793c643af8866e3a1cba768c5c6a52445326f64
4
- data.tar.gz: 8c8d0263e924b9b4602c79138289b0d54ab2d7e597e7282ec0ac03b83478172e
3
+ metadata.gz: 33a28d1f8081b7d2de7fc2347e6d8fc8472c4a08a5d4997957fb92aea2447f82
4
+ data.tar.gz: 06a04084cbb16a75d2a4e3426c6ac1df6be3d61204df358efea15f116fd0a847
5
5
  SHA512:
6
- metadata.gz: b98849177569e7c854e0aef42859dedd875fe836b8b561d03891c34ae18df47601012faec9e2f52d39e05f751815494c9c50b785bdbb3cc10fd0d3406be248ea
7
- data.tar.gz: b3fa1206472fb7c7be48533e5cd8c8fd9e2f189d5628d36680b1f689c37981b7668a106d8bb6723cfff498fda2865d76b7e61ad45b1efff4c5ba9b01d3767bee
6
+ metadata.gz: b5f762286455d16f2bc033b8afd72078f3457e7530c1da279a8b3d7462b99dd34bdc21f756beb014b82dd51532ab95b2f57727ba32091edff539234071dab614
7
+ data.tar.gz: 36fac5fcf315bb22daec45b2a42d5468e3db1cef4847d878732b5c2036409ca540c3513fd4cd4cefff4f08dbda9853ad78eb2da8b9f73d17ed5e88c3239160d0
data/lib/cbthelper.rb CHANGED
@@ -36,7 +36,7 @@ def getTestHistory(options)
36
36
  Returns a ruby hash with the test history, filtering based on the options given.
37
37
  :param options: a ruby hash created by the TestHistoryBuilder
38
38
  =end
39
- return JSON.parse(RestClient.get("https://#{$USERNAME}:#{$AUTHKEY}@crossbrowsertesting.com/api/v3/selenium/"))
39
+ return JSON.parse(RestClient.get("https://#{$USERNAME}:#{$AUTHKEY}@crossbrowsertesting.com/api/v3/selenium/", params: options))
40
40
  end
41
41
 
42
42
  def getTestFromId(sessid)
@@ -11,7 +11,6 @@ class CapsBuilder
11
11
  @capsData = JSON.parse(RestClient.get("https://crossbrowsertesting.com/api/v3/selenium/browsers"))
12
12
  @platform = nil
13
13
  @browser = nil
14
- @browserVersion = nil
15
14
  @width = nil
16
15
  @height = nil
17
16
  @name = nil
@@ -30,7 +29,7 @@ class CapsBuilder
30
29
  self
31
30
  end
32
31
 
33
- def withBrowser(browser)
32
+ def withBrowserApiName(browser)
34
33
  =begin
35
34
  Sets the browser the user wants to use. The string will be compared against the 'name' and 'api_name' properties returned from the selenium api.
36
35
  :param browser: as string specifying the browser (eg. Edge 17, Chrome 55x64)
@@ -39,12 +38,6 @@ class CapsBuilder
39
38
  self
40
39
  end
41
40
 
42
- def withBrowserVersion(version)
43
- # Sets the browser verson
44
- @browserVersion = version
45
- self
46
- end
47
-
48
41
  def withResolution(width, height)
49
42
  # Sets the screen size for the test
50
43
  @width = width
@@ -118,13 +111,8 @@ class CapsBuilder
118
111
  caps['platform'] = @platform
119
112
  end
120
113
  if @browser
121
- caps['browser'] = @browser
114
+ caps['browser_api_name'] = @browser
122
115
  end
123
-
124
- if @browserVersion
125
- caps['browser_version'] = @browserVersion
126
- end
127
-
128
116
  if @width and @height
129
117
  caps['screenResolution'] = @width.to_s + 'x' + @height.to_s
130
118
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cbthelper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daphne Magsby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-17 00:00:00.000000000 Z
11
+ date: 2018-09-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: cbthelper wraps CrossBrowserTesting's (https://crossbrowsertesting.com/apidocs/v3/selenium.html)
14
14
  into an easy to use library.