Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 650 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 650 Bytes

Rest Client Rate Limit Example

This example demonstrates the use of response headers to determine the rate limiting period using Sauce Labs REST API. It has the required header to opt into rate limiting.

Endpoint: https://saucelabs.com/rest/v1/{username}/activity Retry delay: 30 seconds. Max Retry count: 120 Default attempts using RestExecutor: 10 For more info: Sauce Labs Documentation

Setup:

export SAUCE_USERNAME=<sauce_user_name>

export SAUCE_ACCESS_KEY=<sauce_access_key>

Run:

mvn exec:java

Notes:

Requires Java8