I also added a parameter to poll the end of the test in my local fork. Let me know if you're interested in merging that as well.
The process is holding until the execution is finished. The task polls at a regular interval to check the status. Then it downloads the test result file in local test-results directory
Hi,
I rewrote the plugin in Kotlin and optimised some part:
register
instead ofcreate
task. The task won't be created until actually used (see gradle doc)I didn't touch the json/http packages, should probably but rewritten with retrofit/moshi one day for maintanability.
I'm using it in locale and it works fine, feel free to test. If you prefer to keep it in java, just close the PR.
Some notes:
app
andtestSuite
properties are not implicitly saved and passed anymore. The calling function now saves the value and pass it to next functionsproject
capabilities as requested in https://github.com/browserstack/browserstack-gradle-plugin/issues/23I also added a parameter to poll the end of the test in my local fork. Let me know if you're interested in merging that as well. The process is holding until the execution is finished. The task polls at a regular interval to check the status. Then it downloads the test result file in local
test-results
directory