Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Now that your own private Selenium Grid is running, you have to tell Botium Box about the installed browsers and connect to the Selenium Grid.

Device

...

Sets - Browsers and Smartphones

The resources folder of the Botium Box distribution has some files named after the supported Selenium endpoint providers:

...

. Those files list the available browser configurations (capabilities) for each endpoint provider:

  • INTEGRATED.json for the integrated PhantomJS virtual bundled headless chrome browser

  • LOCALSELENIUM.json for the Selenium Grid connector

Those files list the available browser configurations (capabilities) for each endpoint provider

...

Device cloud providers usually provide an online list with available browser configurations and queried by Botium Box automatically. For example, for Saucelabs, you don’t have to configure the list manually. If you want to add your own device configuration to this list, you can list your custom device selectors in a file named after the device provider and place it in the resources folder:

  • SAUCELABS

  • SAUCELABS_RDC

  • TESTOBJECTS

  • EXPERITEST

  • PERFECTOLAB_DEVICES

  • PERFECTOLAB_DESKTOP

This approach makes sense if you don’t want to select a specific device but rather one device of a device family - for example, if you want to test against any Android 8.0 device emulator on Saucelabs, you can add a file named SAUCELABS.json to the resources folder, and use this device selector in your Device Set configuration (see below):

Code Block
[
    {
        "name": "Any Android 8.0 Smartphone Emulator",
        "value": {
            "type": "MOBILEAPP",
            "capabilities": {
                "appium:platformName": "Android",
                "appium:platformVersion": "8.0"
            }
        }
    }
]

Open the LOCALSELENIUM.json and add the browser capabilities we are running in our Selenium Grid:

Code Block
[
    {
        "name": "Google Chrome",
        "value": {
            "type": "DESKTOP",
            "capabilities": {
                "browserName": "chrome"
            }
        }
    },
    {
        "name": "Mozilla Firefox",
        "value": {
            "type": "DESKTOP",
            "capabilities": {
                "browserName": "firefox"
            }
        }
    },
    {
        "name": "Android Smartphone Emulator",
        "value": {
            "type": "MOBILEAPP",
            "capabilities": {
                "appium:platformName": "Android"
            }
        }
    }
]
Info

Botium Box is caching the device lists for some time, so if your changes are not reflected in the UI you either wait for an hour, or you restart Botium Box server.

The structure is self-explaining:

...