Selenium connection issue
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Selenium connection issue
Hi all,
We are selenide and BitBar in our testing project. Our configuration looks like:
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("platform", "platform");
capabilities.setCapability("osVersion", "version");
capabilities.setCapability("browserName", "browser");
capabilities.setCapability("version", "browser_version");
capabilities.setCapability("resolution", "resolution");
capabilities.setCapability("bitbar_apiKey", "key");
capabilities.setCapability("bitbar_project", "project");
capabilities.setCapability("bitbar_testrun", "tun");
RemoteWebDriver remoteDriver = new RemoteWebDriver(new URL(HUB_URL), capabilities);
WebDriverRunner.setWebDriver(remoteDriver);
Tunnel is starting in BeforeSuite step
String command = ".\SBSecureTunnel.exe --username 'user' --authkey 'key' --ready tunnel-ready.tmp";
Runtime.getRuntime().exec(command);
I can see that tunnel is up (checked in bitbar portal), but browser not started, and project not created in bitbar portal.
Any suggestions? Am I doing something wrong?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please make sure that you also define the protocol in the settings of your testing framework. (That was my fail):
url: 'https://example.com/'
host: 'eu-desktop-hub.bitbar.com'
protocol: 'https'
port: 443
path: '/wd/hub'
connection_timeout: 10
browser: 'firefox'
capabilities:
platform: 'Windows'
osVersion: '11'
bitbar_apiKey: '...'
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey @ronyshkiv ,
Are you still having issues getting your automated tests to work? If so, let me know and I can get someone to help!
Best,
Jaymie Falconi
Product Manager, BitBar
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey @ahb5z4eq
In my case remote driver creation looks like this:
RemoteWebDriver remoteDriver = new RemoteWebDriver(new URL(HUB_URL), capabilities);
WebDriverRunner.setWebDriver(remoteDriver);
where:
String HUB_URL = "https://us-west-desktop-hub.bitbar.com/wd/hub";
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry to hear that @ronyshkib
The best place to start would be to submit a case to our customer care team who are the experts in helping troubleshoot!
https://support.smartbear.com/bitbar/message/
Feel free to drop me a private message with the ticket number so I can follow-up on my side.
JF
