testcentricity_web 4.4.3 → 4.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/LICENSE.md +1 -1
- data/README.md +68 -54
- data/lib/testcentricity_web/appium_server.rb +1 -3
- data/lib/testcentricity_web/version.rb +1 -1
- data/lib/testcentricity_web/web_elements/list.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c0d20bb936dba985ea48c3530e3c6230b1325b9d4a6566ed0d65543e8a76f12
|
4
|
+
data.tar.gz: 4301b1706050e1ede1de4c561eddd1fe27da5459890fe28b8a285cbb6d7e631d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 209f0cee6d68f976a46f6978038450f6168c43ef4d10bf4797eb24a737f38c48265e8489c8cf13b449b028a3978801265b1ad3bf38c67a5acec082a54224e3ee
|
7
|
+
data.tar.gz: 81a44b0962710c3c3a57f0fcbcca72b444e2e21bdb0067b7e944e181dc57036a86bc3de5d9b0358d1f2aa8c6bbd35a5cbf0094c5e2feb719ad49187b27977369
|
data/CHANGELOG.md
CHANGED
data/LICENSE.md
CHANGED
data/README.md
CHANGED
@@ -38,6 +38,19 @@ An example project that demonstrates the implementation of a page object model f
|
|
38
38
|
can be found [here](https://github.com/TestCentricity/tc_web_sample).
|
39
39
|
|
40
40
|
|
41
|
+
### Which gem should I use?
|
42
|
+
|
43
|
+
* The TestCentricity **Web** gem only supports testing of web interfaces via desktop and mobile web browsers
|
44
|
+
* The TestCentricity **Mobile** gem only supports testing of native iOS and/or Android mobile apps
|
45
|
+
* The TestCentricity gem supports testing of native mobile apps and/or web interfaces via desktop and mobile web browsers.
|
46
|
+
|
47
|
+
| Tested platforms | TestCentricity Web | TestCentricity Mobile | TestCentricity |
|
48
|
+
|----------------------------------------------------|--------------------|-----------------------|----------------|
|
49
|
+
| Desktop/mobile web browsers only | Yes | No | No |
|
50
|
+
| Native mobile iOS and/or Android apps only | No | Yes | No |
|
51
|
+
| Native mobile apps and desktop/mobile web browsers | No | No | Yes |
|
52
|
+
|
53
|
+
|
41
54
|
## Installation
|
42
55
|
|
43
56
|
TestCentricity Web version 4.4 and above requires Ruby version 3.0.0 or later. To install the TestCentricity Web gem, add
|
@@ -1588,7 +1601,7 @@ When using the `options` hash, the following options and capabilities must be sp
|
|
1588
1601
|
}
|
1589
1602
|
WebDriverConnect.initialize_web_driver(options)
|
1590
1603
|
```
|
1591
|
-
ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
1604
|
+
> ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
1592
1605
|
`:local_<browserName>` - e.g. `:local_chrome` or `:local_edge_headless`.
|
1593
1606
|
|
1594
1607
|
Below is an example of an `options` hash for specifying a connection to a locally hosted Firefox desktop web browser. The
|
@@ -1661,7 +1674,7 @@ You can run your tests against mobile device browsers that are emulated within a
|
|
1661
1674
|
browser on macOS or Windows. The specified mobile browser's user agent, CSS screen dimensions, and default screen orientation
|
1662
1675
|
will be automatically set within the local Chrome browser instance. You may also specify the emulated device's screen orientation.
|
1663
1676
|
|
1664
|
-
⚠️ For best results when testing against mobile web browsers, you should run your tests against iOS and Android simulators
|
1677
|
+
> ⚠️ For best results when testing against mobile web browsers, you should run your tests against iOS and Android simulators
|
1665
1678
|
or physical devices, either hosted locally or via a remotely cloud hosted service.
|
1666
1679
|
|
1667
1680
|
For locally hosted emulated mobile web browsers, the `WEB_BROWSER` Environment Variable must be set to one of the values
|
@@ -1748,7 +1761,7 @@ To change the emulated device's screen orientation from the default setting, set
|
|
1748
1761
|
}
|
1749
1762
|
WebDriverConnect.initialize_web_driver(options)
|
1750
1763
|
|
1751
|
-
ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
1764
|
+
> ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
1752
1765
|
`:local_<browserName>` - e.g. `:local_ipad_pro_12_9` or `:local_pixel_6`.
|
1753
1766
|
|
1754
1767
|
Below is an example of an `options` hash for specifying a connection to a locally hosted emulated mobile Safari web browser
|
@@ -1845,10 +1858,10 @@ When using the `options` hash, the following options and capabilities must be sp
|
|
1845
1858
|
}
|
1846
1859
|
WebDriverConnect.initialize_web_driver(options)
|
1847
1860
|
```
|
1848
|
-
|
1861
|
+
>ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
1849
1862
|
`:remote_<browserName>` - e.g. `:remote_chrome` or `:remote_edge_headless`.
|
1850
|
-
|
1851
|
-
ℹ️ If an `endpoint:` is not specified in the `options`hash, then the default remote endpoint URL of `http://localhost:4444/wd/hub`
|
1863
|
+
>
|
1864
|
+
> ℹ️ If an `endpoint:` is not specified in the `options`hash, then the default remote endpoint URL of `http://localhost:4444/wd/hub`
|
1852
1865
|
will be used.
|
1853
1866
|
|
1854
1867
|
Below is an example of an `options` hash for specifying a connection to a grid hosted Chrome desktop web browser. The
|
@@ -1939,10 +1952,10 @@ When using the `options` hash, the following options and capabilities must be sp
|
|
1939
1952
|
}
|
1940
1953
|
WebDriverConnect.initialize_web_driver(options)
|
1941
1954
|
```
|
1942
|
-
ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
1955
|
+
> ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
1943
1956
|
`appium_safari`.
|
1944
|
-
|
1945
|
-
ℹ️ If an `endpoint:` is not specified in the `options` hash, then the default remote endpoint URL of `http://localhost:4723/wd/hub`
|
1957
|
+
>
|
1958
|
+
> ℹ️ If an `endpoint:` is not specified in the `options` hash, then the default remote endpoint URL of `http://localhost:4723/wd/hub`
|
1946
1959
|
will be used.
|
1947
1960
|
|
1948
1961
|
Below is an example of an `options` hash for specifying a connection to a locally hosted mobile Safari web browser running
|
@@ -1969,7 +1982,8 @@ orientation to portrait mode.
|
|
1969
1982
|
|
1970
1983
|
You can run your mobile web tests against the mobile Chrome or Android browser on emulated Android devices using Appium and
|
1971
1984
|
Android Studio on macOS. You must install Android Studio, the desired Android version-specific virtual device emulators, and
|
1972
|
-
Appium. Refer to [this page](https://appium.io/docs/en/2.2/quickstart/uiauto2-driver/) for information on configuring Appium to work with the Android SDK.
|
1985
|
+
Appium. Refer to [this page](https://appium.io/docs/en/2.2/quickstart/uiauto2-driver/) for information on configuring Appium to work with the Android SDK. Refer to [this page](https://github.com/appium/appium-uiautomator2-driver)
|
1986
|
+
for information regarding specifying Appium capabilities that are specific to the UiAutomator2 driver.
|
1973
1987
|
|
1974
1988
|
The Appium server must be running prior to invoking Cucumber to run your features/scenarios. Refer to [**section 8.6.3 (Starting and Stopping Appium Server)**](#starting-and-stopping-appium-server) below.
|
1975
1989
|
|
@@ -2025,10 +2039,10 @@ When using the `options` hash, the following options and capabilities must be sp
|
|
2025
2039
|
}
|
2026
2040
|
WebDriverConnect.initialize_web_driver(options)
|
2027
2041
|
```
|
2028
|
-
ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2042
|
+
> ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2029
2043
|
`appium_chrome`.
|
2030
|
-
|
2031
|
-
ℹ️ If an `endpoint:` is not specified in the `options` hash, then the default remote endpoint URL of `http://localhost:4723/wd/hub`
|
2044
|
+
>
|
2045
|
+
> ℹ️ If an `endpoint:` is not specified in the `options` hash, then the default remote endpoint URL of `http://localhost:4723/wd/hub`
|
2032
2046
|
will be used.
|
2033
2047
|
|
2034
2048
|
Below is an example of an `options` hash for specifying a connection to a locally hosted mobile Chrome web browser running
|
@@ -2120,9 +2134,9 @@ method upon completion of your test suite to stop the Local instance. Place the
|
|
2120
2134
|
|
2121
2135
|
#### Remote Desktop Browsers on the BrowserStack Service
|
2122
2136
|
|
2123
|
-
For remotely hosted desktop web browsers on the BrowserStack service, refer to the [Browserstack-specific capabilities chart page](https://www.browserstack.com/automate/capabilities
|
2137
|
+
For remotely hosted desktop web browsers on the BrowserStack service, refer to the [Browserstack-specific capabilities chart page](https://www.browserstack.com/docs/automate/capabilities)
|
2124
2138
|
for information regarding the options and capabilities available for the various supported desktop operating systems and
|
2125
|
-
web browsers.
|
2139
|
+
web browsers. Select the **Legacy** Integration method tab and the **W3C Protocol** tab on the capabilities page.
|
2126
2140
|
|
2127
2141
|
##### BrowserStack Desktop Browser using Environment Variables
|
2128
2142
|
|
@@ -2172,12 +2186,12 @@ When using the `options` hash, the following options and capabilities must be sp
|
|
2172
2186
|
}
|
2173
2187
|
WebDriverConnect.initialize_web_driver(options)
|
2174
2188
|
```
|
2175
|
-
ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2189
|
+
> ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2176
2190
|
`:browserstack_<browserName>` - e.g. `:browserstack_chrome` or `:browserstack_safari`.
|
2177
|
-
|
2178
|
-
ℹ️ If an `endpoint:` is not specified in the `options` hash, then the default remote endpoint URL will be set to the following:
|
2179
|
-
|
2180
|
-
`https://#{ENV['BS_USERNAME']}:#{ENV['BS_AUTHKEY']}@hub-cloud.browserstack.com/wd/hub`
|
2191
|
+
>
|
2192
|
+
> ℹ️ If an `endpoint:` is not specified in the `options` hash, then the default remote endpoint URL will be set to the following:
|
2193
|
+
>
|
2194
|
+
> `https://#{ENV['BS_USERNAME']}:#{ENV['BS_AUTHKEY']}@hub-cloud.browserstack.com/wd/hub`
|
2181
2195
|
|
2182
2196
|
This default endpoint requires that the `BS_USERNAME` Environment Variable is set to your BrowserStack account user name and
|
2183
2197
|
the `BS_AUTHKEY` Environment Variable is set to your BrowserStack access key.
|
@@ -2216,9 +2230,9 @@ test configuration options.
|
|
2216
2230
|
|
2217
2231
|
#### Remote Mobile Browsers on the BrowserStack Service
|
2218
2232
|
|
2219
|
-
For remotely hosted mobile web browsers on the BrowserStack service, refer to the [Browserstack-specific capabilities chart page](https://www.browserstack.com/automate/capabilities
|
2233
|
+
For remotely hosted mobile web browsers on the BrowserStack service, refer to the [Browserstack-specific capabilities chart page](https://www.browserstack.com/docs/automate/capabilities)
|
2220
2234
|
for information regarding the options and capabilities available for the various supported mobile operating systems, devices,
|
2221
|
-
and web browsers.
|
2235
|
+
and web browsers. Select the **Legacy** Integration method tab and the **W3C Protocol** tab on the capabilities page.
|
2222
2236
|
|
2223
2237
|
##### BrowserStack Mobile Browser using Environment Variables
|
2224
2238
|
|
@@ -2269,12 +2283,12 @@ When using the `options` hash, the following options and capabilities must be sp
|
|
2269
2283
|
}
|
2270
2284
|
WebDriverConnect.initialize_web_driver(options)
|
2271
2285
|
```
|
2272
|
-
ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2286
|
+
> ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2273
2287
|
`:browserstack_<browserName>` - e.g. `:browserstack_chrome` or `:browserstack_safari`.
|
2274
|
-
|
2275
|
-
ℹ️ If an `endpoint:` is not specified in the `options` hash, then the default remote endpoint URL will be set to the following:
|
2276
|
-
|
2277
|
-
`https://#{ENV['BS_USERNAME']}:#{ENV['BS_AUTHKEY']}@hub-cloud.browserstack.com/wd/hub`
|
2288
|
+
>
|
2289
|
+
> ℹ️ If an `endpoint:` is not specified in the `options` hash, then the default remote endpoint URL will be set to the following:
|
2290
|
+
>
|
2291
|
+
> `https://#{ENV['BS_USERNAME']}:#{ENV['BS_AUTHKEY']}@hub-cloud.browserstack.com/wd/hub`
|
2278
2292
|
|
2279
2293
|
This default endpoint requires that the `BS_USERNAME` Environment Variable is set to your BrowserStack account user name and
|
2280
2294
|
the `BS_AUTHKEY` Environment Variable is set to your BrowserStack access key.
|
@@ -2358,12 +2372,12 @@ When using the `options` hash, the following options and capabilities must be sp
|
|
2358
2372
|
}
|
2359
2373
|
WebDriverConnect.initialize_web_driver(options)
|
2360
2374
|
```
|
2361
|
-
ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2375
|
+
> ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2362
2376
|
`:saucelabs_<browserName>` - e.g. `:saucelabs_chrome` or `:saucelabs_safari`.
|
2363
|
-
|
2364
|
-
ℹ️ If an `endpoint:` is not specified in the `options` hash, then the default remote endpoint URL will be set to the following:
|
2365
|
-
|
2366
|
-
`https://#{ENV['SL_USERNAME']}:#{ENV['SL_AUTHKEY']}@ondemand.#{ENV['SL_DATA_CENTER']}.saucelabs.com:443/wd/hub`
|
2377
|
+
>
|
2378
|
+
> ℹ️ If an `endpoint:` is not specified in the `options` hash, then the default remote endpoint URL will be set to the following:
|
2379
|
+
>
|
2380
|
+
> `https://#{ENV['SL_USERNAME']}:#{ENV['SL_AUTHKEY']}@ondemand.#{ENV['SL_DATA_CENTER']}.saucelabs.com:443/wd/hub`
|
2367
2381
|
|
2368
2382
|
This default endpoint requires that the `SL_USERNAME` Environment Variable is set to your Sauce Labs account user name, the
|
2369
2383
|
`SL_AUTHKEY` Environment Variable is set to your Sauce Labs access key, and the `SL_DATA_CENTER` Environment Variable is
|
@@ -2451,12 +2465,12 @@ When using the `options` hash, the following options and capabilities must be sp
|
|
2451
2465
|
}
|
2452
2466
|
WebDriverConnect.initialize_web_driver(options)
|
2453
2467
|
```
|
2454
|
-
ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2468
|
+
> ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2455
2469
|
`:saucelabs_<browserName>` - e.g. `:saucelabs_chrome` or `:saucelabs_safari`.
|
2456
|
-
|
2457
|
-
ℹ️ If an `endpoint:` is not specified in the `options` hash, then the default remote endpoint URL will be set to the following:
|
2458
|
-
|
2459
|
-
`https://#{ENV['SL_USERNAME']}:#{ENV['SL_AUTHKEY']}@ondemand.#{ENV['SL_DATA_CENTER']}.saucelabs.com:443/wd/hub`
|
2470
|
+
>
|
2471
|
+
> ℹ️ If an `endpoint:` is not specified in the `options` hash, then the default remote endpoint URL will be set to the following:
|
2472
|
+
>
|
2473
|
+
> `https://#{ENV['SL_USERNAME']}:#{ENV['SL_AUTHKEY']}@ondemand.#{ENV['SL_DATA_CENTER']}.saucelabs.com:443/wd/hub`
|
2460
2474
|
|
2461
2475
|
This default endpoint requires that the `SL_USERNAME` Environment Variable is set to your Sauce Labs account user name, the
|
2462
2476
|
`SL_AUTHKEY` Environment Variable is set to your Sauce Labs access key, and the `SL_DATA_CENTER` Environment Variable is
|
@@ -2532,12 +2546,12 @@ When using the `options` hash, the following options and capabilities must be sp
|
|
2532
2546
|
}
|
2533
2547
|
WebDriverConnect.initialize_web_driver(options)
|
2534
2548
|
```
|
2535
|
-
ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2549
|
+
> ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2536
2550
|
`:testingbot_<browserName>` - e.g. `:testingbot_chrome` or `:testingbot_microsoftedge`.
|
2537
|
-
|
2538
|
-
ℹ️ If an `endpoint:` is not specified in the `options` hash, then the default remote endpoint URL will be set to the following:
|
2539
|
-
|
2540
|
-
`https://#{ENV['TB_USERNAME']}:#{ENV['TB_AUTHKEY']}@hub.testingbot.com/wd/hub`
|
2551
|
+
>
|
2552
|
+
> ℹ️ If an `endpoint:` is not specified in the `options` hash, then the default remote endpoint URL will be set to the following:
|
2553
|
+
>
|
2554
|
+
> `https://#{ENV['TB_USERNAME']}:#{ENV['TB_AUTHKEY']}@hub.testingbot.com/wd/hub`
|
2541
2555
|
|
2542
2556
|
This default endpoint requires that the `TB_USERNAME` Environment Variable is set to your TestingBot account user name and
|
2543
2557
|
the `TB_AUTHKEY` Environment Variable is set to your TestingBot access key.
|
@@ -2616,12 +2630,12 @@ When using the `options` hash, the following options and capabilities must be sp
|
|
2616
2630
|
}
|
2617
2631
|
WebDriverConnect.initialize_web_driver(options)
|
2618
2632
|
```
|
2619
|
-
ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2633
|
+
> ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2620
2634
|
`:testingbot_<browserName>` - e.g. `:testingbot_chrome` or `:testingbot_safari`.
|
2621
|
-
|
2622
|
-
ℹ️ If an `endpoint:` is not specified in the `options` hash, then the default remote endpoint URL will be set to the following:
|
2623
|
-
|
2624
|
-
`https://#{ENV['TB_USERNAME']}:#{ENV['TB_AUTHKEY']}@hub.testingbot.com/wd/hub`
|
2635
|
+
>
|
2636
|
+
> ℹ️ If an `endpoint:` is not specified in the `options` hash, then the default remote endpoint URL will be set to the following:
|
2637
|
+
>
|
2638
|
+
> `https://#{ENV['TB_USERNAME']}:#{ENV['TB_AUTHKEY']}@hub.testingbot.com/wd/hub`
|
2625
2639
|
|
2626
2640
|
This default endpoint requires that the `TB_USERNAME` Environment Variable is set to your TestingBot account user name and
|
2627
2641
|
the `TB_AUTHKEY` Environment Variable is set to your TestingBot access key.
|
@@ -2698,12 +2712,12 @@ When using the `options` hash, the following options and capabilities must be sp
|
|
2698
2712
|
}
|
2699
2713
|
WebDriverConnect.initialize_web_driver(options)
|
2700
2714
|
```
|
2701
|
-
ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2715
|
+
> ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2702
2716
|
`:lambdatest_<browserName>` - e.g. `:lambdatest_chrome` or `:lambdatest_safari`.
|
2703
|
-
|
2717
|
+
>
|
2704
2718
|
ℹ️ If an `endpoint:` is not specified in the `options` hash, then the default remote endpoint URL will be set to the following:
|
2705
|
-
|
2706
|
-
`https://#{ENV['LT_USERNAME']}:#{ENV['LT_AUTHKEY']}@hub.lambdatest.com/wd/hub`
|
2719
|
+
>
|
2720
|
+
> `https://#{ENV['LT_USERNAME']}:#{ENV['LT_AUTHKEY']}@hub.lambdatest.com/wd/hub`
|
2707
2721
|
|
2708
2722
|
This default endpoint requires that the `LT_USERNAME` Environment Variable is set to your LambdaTest account user name and
|
2709
2723
|
the `LT_AUTHKEY` Environment Variable is set to your LambdaTest access key.
|
@@ -2760,7 +2774,7 @@ All other required capabilities specified by the hosting service configuration d
|
|
2760
2774
|
}
|
2761
2775
|
WebDriverConnect.initialize_web_driver(options)
|
2762
2776
|
|
2763
|
-
ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2777
|
+
> ℹ️ If an optional user defined `driver_name:` is not specified in the `options` hash, the default driver name will be set to
|
2764
2778
|
`:custom_<browserName>` - e.g. `:custom_chrome` or `:custom_safari`.
|
2765
2779
|
|
2766
2780
|
Prior to calling the `TestCentricity::WebDriverConnect.initialize_web_driver` method, you must set `Environ.platform` to
|
@@ -2842,7 +2856,7 @@ these in in your`cucumber.yml` file). Before you can use the BrowserStack, Sauce
|
|
2842
2856
|
you will need to replace the *INSERT USER NAME HERE* and *INSERT PASSWORD HERE* placeholder text with your user account
|
2843
2857
|
and authorization code for the cloud service(s) that you intend to connect with.
|
2844
2858
|
|
2845
|
-
⚠️ Cloud service credentials should not be stored as text in your `cucumber.yml` file where it can be exposed by anyone
|
2859
|
+
> ⚠️ Cloud service credentials should not be stored as text in your `cucumber.yml` file where it can be exposed by anyone
|
2846
2860
|
with access to your version control system.
|
2847
2861
|
|
2848
2862
|
|
@@ -3126,7 +3140,7 @@ area sub-folders as needed. Likewise, `PageSection` class definitions should be
|
|
3126
3140
|
---
|
3127
3141
|
## Copyright and License
|
3128
3142
|
|
3129
|
-
TestCentricity™ Framework is Copyright (c) 2014-
|
3143
|
+
TestCentricity™ Framework is Copyright (c) 2014-2024, Tony Mrozinski.
|
3130
3144
|
All rights reserved.
|
3131
3145
|
|
3132
3146
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
|
@@ -18,12 +18,10 @@ module TestCentricity
|
|
18
18
|
def start
|
19
19
|
# terminate any currently running Appium Server
|
20
20
|
if running?
|
21
|
-
# :nocov:
|
22
21
|
system('killall -9 node')
|
23
22
|
puts 'Terminating existing Appium Server'
|
24
23
|
sleep(5)
|
25
24
|
puts 'Appium Server is being restarted'
|
26
|
-
# :nocov:
|
27
25
|
else
|
28
26
|
puts 'Appium Server is starting'
|
29
27
|
end
|
@@ -40,7 +38,7 @@ module TestCentricity
|
|
40
38
|
# Check to see if Appium Server is running
|
41
39
|
#
|
42
40
|
def running?
|
43
|
-
response =
|
41
|
+
response = false
|
44
42
|
begin
|
45
43
|
response = Net::HTTP.get_response(URI('http://0.0.0.0:4723/wd/hub/sessions'))
|
46
44
|
rescue
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testcentricity_web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.4.
|
4
|
+
version: 4.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- A.J. Mrozinski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|