automatekitbox / testrail-api-integration

testrail integration
MIT License
1 stars 4 forks source link

not working well when using WebdriverIO v7-cucumber #4

Open noviantonugroho4 opened 2 years ago

noviantonugroho4 commented 2 years ago

i'm try using wdio v7 + cucumber using npm testrail-integration v 0.2.5

then data on the test case (testrail) change result only become comment

Screen Shot 2022-10-04 at 10 39 44
automatekitbox commented 2 years ago

Please provide code snippet, looks like wrong status is updating

noviantonugroho4 commented 2 years ago

code on below i'm put at wdio.config

`const {CucumberRailClient} = require ("testrail-integration");

const runid = 1; const version = "Build 1.3.4"

const options = { username: "x", password: "x", url: "https://x.testrail.io" }; const testrail = new CucumberRailClient(options);

afterScenario: async (scenario) => {

    try {
     await testrail.updateTestRailResults(scenario, runid, version);
   } catch (err) {
     console.log("Error testrail " + err);
   }
 },`
automatekitbox commented 1 year ago

hope you are mapping right caseid Single case tagging:- @C123 Scenario Outline:

@c123 Scenario:

There is no dependency on WebdriverIO version.

Check console log what request being sent and response

automatekitbox commented 1 year ago

Probably issue with cucumber version , I am planning to upgrade cucumber version and other dependencies as well. will release new version soon, it is in progress