This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Geb testing

Jozo Stan
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have an application developed in ggts with grails/groovy and there are users with different roles. I want to test if a user can access some parts of the application by directly inserting link into address bar. So, where is my problem? When I test my application on localhost, everything is OK. But when I want to test through http://myapp then it isn't OK. The application is the same.

Here is my code:



config.grails.serverURL should be http://myapp.

When I start the test, it opens http://myapp/login, the user logs in and the home page opens. But then it stays on home page. It should go to http://myapp/shop/catalog/show/123 because I want to test if a user can access a product by directly inserting a link into address bar.

Please help, I don't have any more ideas.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic