In WebTau documentation on how to test CRUD, examples are using relative urls
def customerPayload = [firstName: "FN", lastName: "LN"]
def id = http.post("/customers", customerPayload) {
return id
}
http.get("/customers/${id}") {
body.should == customerPayload
}
How do I set base url to use?
If you are using Groovy standalone runner you can base url via command line
or have a groovy config file
webtau.cfg.groovyIn case of Java
src/test/resources/webtau.propertiesfileor pass it via system property for test execution
for both Java and Groovy you can also provide base url via environment variable