Subscribe Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security. Subscribe

Api/v2/add_results_for_cases/undefined

Hi, i am first time using testrail trying to evaluate for my company,
i am trying to figure it why its undefined

{

errno: ‘ECONNREFUSED’,
code: ‘ECONNREFUSED’,
syscall: ‘connect’,
address: ‘127.0.0.1’,
port: 443,
config: {
adapter: [Function: httpAdapter],
transformRequest: { ‘0’: [Function: transformRequest] },
transformResponse: { ‘0’: [Function: transformResponse] },
timeout: 0,
xsrfCookieName: ‘XSRF-TOKEN’,
xsrfHeaderName: ‘X-XSRF-TOKEN’,
maxContentLength: -1,
validateStatus: [Function: validateStatus],
headers: {
Accept: ‘application/json, text/plain, /’,
‘Content-Type’: ‘application/json’,
‘User-Agent’: ‘axios/0.18.1’,
‘Content-Length’: 79
},
method: ‘post’,
url: ‘https:// https://test.testrail.io/index.php?/api/v2/add_results_for_cases/undefined’,
auth: {
username: ‘test@mail.com’,
password: ‘foo’
},
data: ‘{“results”:[{“case_id”:182,“status_id”:1,“comment”:“Execution time: 38171ms”}]}’
},

i fixed the issue, i used ’ ’ in test ,i supposed to use ``

Hello @nik,

Thanks for the post and follow up answer. If you need any further assistance you can always reach out to use at contact@gurock.com!