AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
C to vb.net1/1/2023 ![]() ![]() POST requests are used by write-based API methods and can be used to add or modify data. The return value is a simple object (an instance of either JObject or JArray) and provides easy access to the API response via indexers (very similar to how you can access values in a Dictionary).Īn exception of type TestRailAPIException may be thrown in case of an error (connection issues, failed authentication, missing API arguments, etc.) and your code should be prepared to handle this. The API binding provides a single method for GET requests named SendGet which expects the name of the TestRail API method (here get_case) including any possible parameters (in this case the ID of the test case). JObject c = (JObject) client.SendGet("get_case/4") For example, the following code shows how to get the properties of a test case using the get_caseAPI method: APIClient client = new APIClient(" client.User = "." ![]() GET requests are used by read-only API methods and can be used to read or query data from TestRail. Note: No API rate limits are built into TestRail Server installations. 300 Requests per instance, per minute for TestRail Cloud Enterprise subscriptions.180 Requests per instance, per minute for TestRail Cloud Professional subscriptions. ![]() Rate limits for TestRail Cloud are as follows: ![]() using as add_results_for_cases instead of add_results_for case), build a time delay into your API calls, or upgrade to TestRail Enterprise Cloud. To avoid rate limits on TestRail Cloud, try using bulk API endpoints (e.g. Such a response also includes a Retry-After header indicating how many seconds to wait before you are allowed to submit the next request. TestRail might also return a 429 Too Many Requests response, which you are expected to handle. Please note that the API is rate-limited on TestRail Cloud to ensure optimal performance for all users and may throttle requests. You should specify the same TestRail address for the API client you also use to access TestRail with your web browser (e.g., or API rate limit ![]()
0 Comments
Read More
Leave a Reply. |