TestPlan GotoURL
Document

GotoURL

by Group Public on Thursday February 12 2009 @ 10:45:27 (1/1 Points)

API ↪Reference ✑ Reply ✓ Stick It ✗ Ditch It ⚐ Tag It

GotoURL can be used to navigate to either an absolute or relative location.

# Absolute form
GotoURL http://some.com/location

# Relative form
GotoURL /location

Relative and Web.BaseURL

If the location specified for GotoURL is a relative URL it will simply be appended to what is specified in the context item Web.BaseURL and then will be treated as an absolute URL.

Note that if the Web.BaseURL ends with a slash / it will be retained even if the relative URL also starts with a slash. For this reason you are best to drop the final slash from Web.BaseURL and start all relative paths with a slash.

However note that in most web servers a double slash // will simply be treated as a single slash, so you may never notice the problem.

Protocol/Scheme

The URL is expected to start with http or https, in which case a browser client will be used to execute the GotoURL command.

There is still a change to be made in TestPlan such that non-HTTP schemes resolve to their correct backend. Currently they all get forced into a browser request, but this should not be relied upon, as it will change.
© 2008-2010 edA-qa mort-ora-y
Using Persephone and TestPlan
Tag: