def setupSpec() {


пятница, 2 февраля 2018 г., 19:09:57 UTC+2 пользователь 
> I need to change the base url for every tests. Like I am running tests for 
> Uk, Us and so on. So for Uk tests the base url is and 
> for us I need to set the base url run time. How to do 
> that with Geb - spoke?
> Thanks.
> On Sunday, September 3, 2017 at 3:31:35 PM UTC+1, Chi Cuong Le wrote:
>> I think the idea is great. I'm facing exactly the issue as I'm trying to 
>> implement continuous delivery. There are few GUI tests using geb, and they 
>> will run on different test environment. And I think a smoke test against 
>> PRODUCTION environment is also useful.
>> I found a workaround for this issue:
>> in GebConfig.groovy, we can put our logic directly where baseUrl is 
>> defined. example:
>> baseUrl = System.getenv().containsKey('CI')?"
>> http://testenvironmentforCI:9090/appContext":";
>> http://testenvironmentforCI:9090/appContext";
>> On Monday, 15 June 2015 17:35:28 UTC+2, dean.delponte wrote:
>>> I'm utilizing the example project at 
>>> to run Cucumber with 
>>> Geb.
>>> The baseUrl changes depending on if I'm testing code that's in 
>>> development, staging or production.
>>> What's the recommended way for changing the baseUrl at runtime?
>>> Can a parameter simply be passed in via the command line?
>>> Thanks! 
>>> - Dean

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 post to this group, send email to
To view this discussion on the web visit
For more options, visit

Reply via email to