FitNesse. SuiteAcceptanceTests. SuiteWidgetTests.
TestHttpLinkWithVariable [add child]
 Scenario Libraries

 Set Up: .FitNesse.SuiteAcceptanceTests.SuiteWidgetTests.SetUp (edit)

Test that HTTP links are rendered correctly

If a string of the form http://some_url appears in wiki text, it is converted to a link.


Check the variables get rendered in links

script
start Page Builder
line !define HOST {localhost:8081}
line http://${HOST}/page  
page HttpLinkPage

Response Requester.
uri valid?
HttpLinkPage true

Response Examiner.
type pattern matches? value
contents <a href="http://localhost:8081/page">http://localhost:8081/page</a> true