An open API service indexing awesome lists of open source software.

https://github.com/ankurgel/selenium-hub-utilities

Utilities to measure performance for selenium tests
https://github.com/ankurgel/selenium-hub-utilities

browserstack browserstack-automate selenium selenium-hub-utilities selenium-tests

Last synced: 3 months ago
JSON representation

Utilities to measure performance for selenium tests

Awesome Lists containing this project

README

        

# Selenium Hub Utilities
> Set of utilities to measure performance of selenium tests.

### Select best hub for [BrowserStack Automate](https://browserstack.com/automate)
Install the [latest release](https://github.com/AnkurGel/selenium-hub-utilities/releases).
#### For Mac
```
BROWSERSTACK_USERNAME=your_user_name BROWSERSTACK_ACCESS_KEY=your_access_key ./selenium-hub-utilities-mac
```
#### For Linux
```
BROWSERSTACK_USERNAME=your_user_name BROWSERSTACK_ACCESS_KEY=your_access_key ./selenium-hub-utilities-linux-x86
```
#### For Windows
```
set BROWSERSTACK_USERNAME=your_user_name && set BROWSERSTACK_ACCESS_KEY=your_access_key && .\selenium-hub-utilities-win32.exe
```
#### From git project
```
BROWSERSTACK_USERNAME=your_user_name BROWSERSTACK_ACCESS_KEY=your_access_key node index.js
```
### Results

> Running test with http://hub-us.browserstack.com. Please wait...
> Time taken by http://hub-us.browserstack.com - 5948 ms
> Running test with https://hub-us.browserstack.com. Please wait...
> Time taken by https://hub-us.browserstack.com - 14325 ms
> Running test with http://hub-us.browserstack.com:4444. Please wait...
> Time taken by http://hub-us.browserstack.com:4444 - 13509 ms
> Running test with http://hub-cloud-us.browserstack.com. Please wait...
> Time taken by http://hub-cloud-us.browserstack.com - 17680 ms
> Running test with https://hub-cloud-us.browserstack.com. Please wait...
> Time taken by https://hub-cloud-us.browserstack.com - 40771 ms

> --------------------------------------------------------------
> ----------------------------REPORT----------------------------
> -- http://hub-us.browserstack.com 5948 ms --
> -- http://hub-us.browserstack.com:4444 13509 ms --
> -- https://hub-us.browserstack.com 14325 ms --
> -- http://hub-cloud-us.browserstack.com 17680 ms --
> -- https://hub-cloud-us.browserstack.com 40771 ms --

> --------------------------------------------------------------
> > You can select the best hub endpoint according to report.

#### Options

* Add `REGION=region_name` to select a particular region. The available regions are:
* us_east
* us_west
* eu_west