Comment passer jeton d'autorisation dans l'en-tête en être assuré?

Essayons d'automatiser les api de test à l'aide d'rassurez -

@Test
public void Login() {
    Response resp = given().
            body("{\"phone_number\":\"2222222222\",\"\r\n" + 
                    "               + \" \"country_code\": \"+91\",\"\r\n" + 
                    "               + \" \"login_type\": 0}").
            when().
            contentType(ContentType.JSON).
            post("http://url/api/v1/login");

    System.out.println(resp.asString());
}
InformationsquelleAutor Bharath S | 2017-09-17