unickq/SpecFlow.Selenium.Plugin

Seems browserstack.local is not being picked when set

dmitrikartashov opened this issue · 4 comments

Hi,

If browserstack.local is set to true in appsettings it throws error: [browserstack.local] is set to true but local testing through BrowserStack is not connected. There is a post (Testing on Internal Networks) here https://www.browserstack.com/automate/specflow, which says BrowserstackLocal needs to be installed. However I haven't found any references in your code that initiate it.

Is there a way to test with browserstack.local?

Hi @dmitrikartashov,

browserstack.local is just a capability, which being sending to BrowserStack, it doesn't launch BrowserStack tunnel from the host machine.

So it expects that BrowserStackLocal app is already launched somewhere.

OK, thanks for the info.

You can simply run BrowserStackLocal app in method with [BeforeTestRun] attribute using Process Api

Thanks for pointer. I've added BrowserstackLocal as a nuget package and used it "Local" entity start/stop methods in hooks as you suggested.