Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting hit by API Rate Limit Exceeded Exceptions unexpectedly #55

Open
MercilessWinna opened this issue Sep 30, 2020 · 0 comments
Open

Comments

@MercilessWinna
Copy link

MercilessWinna commented Sep 30, 2020

Here's the process ..

The following sits inside a @BeforeClass ..

TestRail testRail = TestRail.builder("endpoint", "username", "password").build();
Run newTestRun = testRail.runs().add(24, new Run().setSuiteId(9694).setName("Automated Regression Suite")).execute();
List<Test> tests = Collections.unmodifiableList(testRail.tests().list(newTestRun.getId()).execute());
List<ResultField> customResultFields = Collections.unmodifiableList(testRail.resultFields().list().execute());

and the following sits inside the after hook ..
testRail.results().add(testID, new Result().setStatusId(testRailTestResult), customResultFields).execute();

Occasionally I'm getting the exception thrown by the line in the after hook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant