Search code examples
mavenbrowserstackserenity-bdd

Local browserstack serenity testing


I am trying to run a serenity test locally via browserstack. I have downloaded the following test repo: https://github.com/browserstack/serenity-browserstack

replaced my browserstack credentials and run the following command mvn clean verify -P local.

I am using the browserstack chrome extension on my mac but whenever i use the command nothing happens, there is no activity on the remote browser screen.

And when looking in browserstack Automate tab i see that a test has been run but the local is false...

what am i doing wrong?


Solution

  • To enable local testing BS Automate needs this capability as well as their BrowserStackLocal binary should be up and running before the test executes.

    I see that their code starts the BrowserStackLocal binary programmatically (replacement of chrome extension) before test begins.

    Do verify that the 'browserstack.local' capability is correctly set to 'True'. This should enable the local testing and use the binary connection which is being spawned by above code.

    P.S : Chrome's BS local extension wont be used by BS Automate, it is used only by BS Live.