testing - response time in restassured -


i have been successful in capturing api response time using restassured .time() method , noticed response time returned in restassured higher same request if sent using postman or soapui. looked everywhere on why restassured taking long didnt find answers, looked on how reduce restassured overhead thinking may cause no success finding up. please suggestions may here find why response time in restassured higher comparing other tools

this restassured call , tried time functions in restassured compare

response response = given().contenttype(mediatype.text_xml).accept(mediatype.text_xml).body(content).log().all() .when().post("https://myurl.com").then().log().all() .extract().response();

    logger.info(response.gettime());     logger.info(response.gettimein(timeunit.seconds));     logger.info(response.time());     logger.info(response.timein(timeunit.milliseconds)); 


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -