Inside of the browserStack {} configuration block provided by the Browser
Stack Geb plugin there is a task {} block (see point 7 at
http://www.gebish.org/manual/current/#geb-browserstack-plugin). This block
configures all test tasks added by the plugin - it delegates to instances
of tasks of type Test, which have systemProperty() method, see
https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/testing/Test.html#systemProperty(java.lang.String,%20java.lang.Object)
.

On Wed, Nov 1, 2017 at 2:29 PM, Balaji KM <[email protected]> wrote:

> Hi,
>
> Currently I am running geb automation pack using custom gradle tasks.
>
> gradle taskName -Dgeb.env=uat
>
> Inside the tasks, I set the following variable to read the properties.
>
> systemProperty "geb.env", env
>
>
> Now I am trying to run browserStack tests  and I am calling the task
> "allBrowserStackTests"..
>
> How can I pass the system properties to browserstack task ?..
>
> I am using Geb 2.0.0.
>
>
> Regards,
> Balaji
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Geb User Mailing List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/geb-user/c9ea522a-a72c-48ac-b6ec-66d6dd790faf%40googlegroups.com
> <https://groups.google.com/d/msgid/geb-user/c9ea522a-a72c-48ac-b6ec-66d6dd790faf%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/CA%2B52dQSZGUsyCe7mtpgnYskGVX1gCmj9oMb06-Xjt64SAGvOvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to