Answers for "structure of method chaining"

0

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
Posted by: Guest on January-13-2021
0

Method Chaining

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?
Posted by: Guest on June-14-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language