-
Notifications
You must be signed in to change notification settings - Fork 32
Function Http
Chris Hunt edited this page May 23, 2016
·
1 revision
Test a Web Service.
Test that a Web Service is reachable and optionally returns specific content.
[Parameter(
Mandatory = $true,
Position = 2,
ParameterSetName = 'Set 1')]
[Parameter(
Mandatory = $true,
Position = 3,
ParameterSetName = 'Set 1')]
[Parameter(
Mandatory = $true,
Position = 4,
ParameterSetName = 'Set 1')]
Assertions: Be, BeExactly, Match, MatchExactly
Http http://localhost StatusCode { Should Be 200 }
Http http://localhost RawContent { Should Match 'X-Powered-By: ASP.NET' }
Http http://localhost RawContent { Should Not Match 'X-Powered-By: Cobal' }
Getting Started
Contributing
Functions