Changeset 925


Ignore:
Timestamp:
May 17, 2011, 11:37:14 AM (8 years ago)
Author:
gav
Message:

Make functional test URL's dynamic and relative.

Location:
branches/features/purchaseOrders/test/functional/gnumims/functional
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/features/purchaseOrders/test/functional/gnumims/functional/LoginSpec.groovy

    r912 r925  
    1111@Stepwise
    1212class LoginSpec extends GebReportingSpec {
    13     String getBaseUrl() { "http://localhost:8080/gnumims" }
     13    def appName = grails.util.Metadata.current.'app.name'
     14    String getBaseUrl() { "http://localhost:8080/$appName/" }
    1415    File getReportDir() { new File("target/reports/geb") }
    1516
  • branches/features/purchaseOrders/test/functional/gnumims/functional/pages/HomePage.groovy

    r917 r925  
    33import geb.Page
    44
    5 /**
    6  * Created by IntelliJ IDEA.
    7  * User: John
    8  * Date: 26/04/2011
    9  * Time: 7:17:32 PM
    10  * To change this template use File | Settings | File Templates.
    11  */
    12 class HomePage  extends Page {
    13     static url = "http://localhost:8080/gnumims/appCore/start"
     5class HomePage extends Page {
     6    static url = "appCore/start"
    147
    158    static at = { $("div#menu li.navigation_active").text() == "Home" }
  • branches/features/purchaseOrders/test/functional/gnumims/functional/pages/LoginPage.groovy

    r917 r925  
    33import geb.Page
    44
    5 /**
    6  * Created by IntelliJ IDEA.
    7  * User: John
    8  * Date: 26/04/2011
    9  * Time: 2:03:04 PM
    10  * To change this template use File | Settings | File Templates.
    11  */
    125class LoginPage extends Page {
    13     static url = "http://localhost:8080/gnumims/login/auth"
     6    static url = "login/auth"
    147
    158    static at = {$("h1").text() == "Welcome to gnuMims please log in"}
Note: See TracChangeset for help on using the changeset viewer.