Why can't you just change the baseUrl for certain test/set of tests? Have a 
separate 'parent' test for each web app which will set the baseUrl. For 
example by setting browser.setBaseUrl(..) or by overriding createConf 
method (only for geb-spock I guess).

-Roman

среда, 17 января 2018 г., 5:14:55 UTC+2 пользователь Samuel Rossinovic 
написал:
>
> Hi. 
> Trying to reuse geb stuff across multiple web apps (different urls). In 
> particular, I'd like to reuse config in GebConfig.groovy.
> My GebConfig currently contains:
> * baseUrl
> * misc configuration (waiting, clear cookies, reportsDir, etc)
> * environments (per-browser), as-well as some utility methods for those 
> envs.
>
> Would be good if I was able to extract everything other than the baseUrl 
> to a common config ancestor, and have separate projects, each with a config 
> that only defines its URL, and inheriting the rest from the common one.
>
> Appreciate some guidance on this...
>
>

-- 
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/543892d6-4ba3-473d-a0db-2704c28a005c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to