educlos / testrail Goto Github PK
View Code? Open in Web Editor NEWTestRail api in Go
License: MIT License
TestRail api in Go
License: MIT License
Would be good to have an ability to print log message using custom logger
custom_test_description needs to be added in add case which is mandatory field
The pagination functionality is now in TestRail production API.
For instance, get_plan API used to return in older TestRail:
{
"plans": [
{
"id": 505717,
...
Now in TestRail production (on cloud),
{
"offset": 0,
"limit": 250,
"size": 250,
"_links": {
"next": "/api/v2/get_plans/4&limit=250&offset=250",
"prev": null
},
"plans": [
{
"id": 505717,
...
How do you prefer to handle this change? We could introduce a class of ReceivableTestPlans
that is similar to SendableTestPlans
that the library already has.
Inability to provide custom httpClient or headers significantly limits usability of the library.
Since TestRail 6.7, they introduced pagination in their APIs. This will impact this package as it is expecting to get all the info from TestRail in single API call before processing.
The full list of bulk API endpoints that include this change are below:
get_cases
get_runs
get_results
get_tests
get_results_for_case
get_results_for_run
get_plans
get_projects
get_sections
get_milestones
get_history_for_case
get_attachments_for_case
get_attachments_for_run
get_attachments_for_plan
These bulk endpoints will no longer return an array of all entities, but will instead return an object with additional pagination fields and an array of up to 250 entities. We will need to update the package according to the new response structure to support new version.
Announcing reference: https://blog.gurock.com/announcing-testrail-6-7/
Hi,
could you please to add example how to access entity's custom fields.
For example, how to access "custom_build" and "custom_exec_id" from this "test result":
{
"id": 21668106,
"test_id": 59751564,
"status_id": 4,
"created_by": 66,
"created_on": 1484043459,
"assignedto_id": null,
"comment": "Test will be executed in new run.",
"version": null,
"elapsed": "1s",
"defects": null,
"custom_build": "170110",
"custom_exec_id": "11018-20170110171742"
}
type RequestFilterForCases struct {
CreatedAfter string json:"created_after"
CreatedBefore string json:"created_before"
CreatedBy []int json:"created_by"
MilestoneID []int json:"milestone_id"
PriorityID []int json:"priority_id"
TypeID []int json:"type_id"
UpdatedAfter string json:"updated_after"
UpdatedBefore string json:"updated_before"
UpdatedBy []int json:"updated_by"
Refs string json:"refs"
CustomTestRunConfig []int json:"custom_testrun_configs"
}
get_cases/18&suite_id=4762&custom_testrun_configs=3
The result doesot hold the filtered value. @educlos Could you please help me with this.
This line references what appears to be an old URL for this repo "github.com/Etienne42/testrail": https://github.com/educlos/testrail/blob/master/testrail-generate/main.go#L6
The causes gb to download essentially the same repo twice:
$ gb vendor fetch https://github.com/educlos/testrail
fetching recursive dependency github.com/Etienne42/testrail
I am trying to use UpdateCase and GetCase, how to pass state(dropdown) in SendableCase and Case struct.
Hi,
I am trying to automate the add case, how to pass Template id in sendable case
Regards,
Yamuna
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.