All Downloads are FREE. Search and download functionalities are using the official Maven repository.

FitNesseRoot.RestFixtureFitTests.PutTests.content.txt Maven / Gradle / Ivy

!3 PUT

!*** Note
This test shows how to pass bespoke headers in the request. In this specific case, the stub echoes back the 'Echo-Header', so that the 
following PUT and GET can match it the response.
***!

|Fit Rest Fixture|http://${jettyHost}:${jettyPort}|
|setBody|name being updateddata being updated|
|setHeader|Echo-Header : echoed|
|PUT | /resources/0 | 200 | Echo-Header : echoed | no-body |
|GET | /resources/0 | 200 | Echo-Header : echoed |!-
 /resource/name[text()='name being updated'] 
/resource/data[text()='data being updated'] -!|




© 2015 - 2024 Weber Informatics LLC | Privacy Policy