structure of method chaining
given() .... --> RequestSpecification
.header accept() contentType()
.queryParam
.pathParam
.body
.log
.auth..
when() --->> RequestSender
.get() ------>> Response Object
.post()
.put()
.delete()
then() -----> ValidatableResponse
This is where assertion happen
.statusCode
.header accept() contentType()
.body( matchers goes here)
.log
4.56
9
String methods can be combined in a process called method chaining.
Given word = 'JavaScript';, word.toUpperCase() returns JAVASCRIPT.
What would word.slice(4).toUpperCase() return?
Thank you!
9
0
Are there any code examples left?
New code examples in category Javascript