qase-tms / qase-javascript

Qase TMS JavaScript SDK
https://developers.qase.io
49 stars 43 forks source link

[qase-wdio] Way with using a separate config file doesn't work #661

Open Lara2409 opened 2 months ago

Lara2409 commented 2 months ago

When I use way with environment variables, I see Automated run in Test Runs section and everything is ok. But when I add separate config file qase.config.json in root directory and want to use this way:

{
  "mode": "testops",  
  "testops": {
    "api": {
      "token": "api_key"
    },
    "project": "project_code",
    "run": {
      "complete": true
    }
  }
}

there is no any runs in Test Runs section. Log example in Jenkins:

14:09:55  [0-0] TestResultType {
14:09:55  [0-0]   id: '22dfe6d7......',
14:09:55  [0-0]   title: 'General overview of the elements on the page',
14:09:55  [0-0]   signature: '',
14:09:55  [0-0]   run_id: null,
14:09:55  [0-0]   testops_id: [ 213 ],
14:09:55  [0-0]   execution: TestExecution {
14:09:55  [0-0]     status: 'passed',
14:09:55  [0-0]     start_time: 1724324990.202,
14:09:55  [0-0]     end_time: null,
14:09:55  [0-0]     duration: 5,
14:09:55  [0-0]     stacktrace: null,
14:09:55  [0-0]     thread: '0-0'
14:09:55  [0-0]   },
14:09:55  [0-0]   fields: {},
14:09:55  [0-0]   attachments: [],
14:09:55  [0-0]   steps: [
14:09:55  [0-0]     {
14:09:55  [0-0]       id: 'b057287b.......',
14:09:55  [0-0]       step_type: 'text',
14:09:55  [0-0]       data: [Object],
14:09:55  [0-0]       parent_id: '22dfe6d7.....',
14:09:55  [0-0]       execution: [Object],
14:09:55  [0-0]       steps: [Array],
14:09:55  [0-0]       attachments: []
14:09:55  [0-0]     }
14:09:55  [0-0]   ],
14:09:55  [0-0]   params: {},
14:09:55  [0-0]   author: null,
14:09:55  [0-0]   relations: { suite: { data: [Array] } },
14:09:55  [0-0]   muted: false,
14:09:55  [0-0]   message: null
14:09:55  [0-0] }
gibiw commented 2 months ago

@Lara2409 Thank you for contacting us. This is strange behavior. This problem is not reproduced by us. Can you create a small test project where this problem is reproduced and send it to us?

image