browserstack / browserstack-gradle-plugin

Gradle plugin for uploading app and running tests on BrowserStack
16 stars 20 forks source link

gradle plugin for web testing ? #11

Closed mmanach closed 6 years ago

mmanach commented 6 years ago

Hello,

I saw in the readme that this plugin seems to be oriented to Espresso, but is it possible to run classical web tests with browsers ?

Thanks,

kalamcs commented 6 years ago

Can you please elaborate your use-case for us to understand better.

Thanks and regards Kalam

mmanach commented 6 years ago

I mean : I use gradle, so if I want to run my web tests (with firefox, chrome, safari, IE... on different OS) with browserstack, should I use this browserstack-gradle-plugin ? Or it is only dedicated to Mobile / Espresso testing ?

Thanks

kalamcs commented 6 years ago

Are you using a test framework like JUnit/TestNG? If yes, then it is fairly simple to run your selenium tests on Browserstack via regular the regular gradle test command. More info on how to use frameworks for running your selenium tests on Browserstack can be found here: https://www.browserstack.com/automate/java

mmanach commented 6 years ago

We are using Serenity (https://github.com/serenity-bdd/serenity-core), based on JUnit (with JBehave). I saw on your example https://www.browserstack.com/automate/serenity, and custom Driver is implemented, with different profiles with Maven.

We success to run with gradle just by adding some arguments :

kalamcs commented 6 years ago

Happy to know that it worked for you. :)