Skip to content

When i run second test i get below response body #1

Description

@okeshreddy

@test
public void makingRestAssuredLogsToLogFileWithFilter() {
String getUrl = "http://dummy.restapiexample.com/api/v1/employees";
Response response = given().filter(new RestAssuredRequestFilter()).when().get(getUrl).then()
.extract().response();
}

[RemoteTestNG] detected TestNG version 7.4.0
12:19:55.917 [main] ERROR com.restassuredloggerexample.RestAssuredRequestFilter - GET http://dummy.restapiexample.com/api/v1/employees => 429 HTTP/1.1 429 Too Many Requests

<title>Too Many Requests</title> <style> html, body { background-color: #fff; color: #636b6f; font-family: 'Nunito', sans-serif; font-weight: 100; height: 100vh; margin: 0; }
        .full-height {
            height: 100vh;
        }

        .flex-center {
            align-items: center;
            display: flex;
            justify-content: center;
        }

        .position-ref {
            position: relative;
        }

        .code {
            border-right: 2px solid;
            font-size: 26px;
            padding: 0 15px 0 15px;
            text-align: center;
        }

        .message {
            font-size: 18px;
            text-align: center;
        }
    </style>
429
Too Many Requests
PASSED: makingRestAssuredLogsToLogFileWithFilter

===============================================
Default test
Tests run: 1, Failures: 0, Skips: 0

===============================================
Default suite
Total tests run: 1, Passes: 1, Failures: 0, Skips: 0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions