Skip to content

Instantly share code, notes, and snippets.

@henesgokdag
Created March 6, 2021 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henesgokdag/e201cbec52a932fbb26adf0c9345aa3a to your computer and use it in GitHub Desktop.
Save henesgokdag/e201cbec52a932fbb26adf0c9345aa3a to your computer and use it in GitHub Desktop.
getAllCharactersByName
public List<Character> getAllCharactersByName(String name){
List<Character> characterList = setupRequestSpecification()
.param("name",name)
.when()
.get("/character")
.then()
.statusCode(200)
.extract()
.body().jsonPath().getList("results", Character.class);
return characterList;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment