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 www.myurl-uk.com and for 
us www.myurl-us.com. I need to set the base url run time. How to do that 
with Geb - spoke?


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 
>> https://github.com/geb/geb-example-cucumber-jvm 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 geb-user+unsubscr...@googlegroups.com.
To post to this group, send email to geb-user@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to