-
Notifications
You must be signed in to change notification settings - Fork 31
Description
Framework - Webdriverio - Cucumber - Typescript
Reporter - Wdio-cucumber-Json-reporter
CI - Jenkins
Integration tools - Zephyr
package.json

The issue we are encountering pertains to the generated JSON files from our test executions. Our objective is to upload the JSON results into the Zephyr tool from Jenkins using either the Zephyr plugin or the Zephyr API. Unfortunately, in both scenarios, we encounter a JSON parse error.
To address this challenge, we have thoroughly examined the Cucumber JSON files generated under the framework against the official JSON schema provided by Cucumber (https://github.com/cucumber/cucumber-json-schema/blob/main/schema.json). Regrettably, the JSON files do not align with the Cucumber JSON schema. Consequently, the Zephyr API, which validates the uploaded JSON files against the same schema, triggers a JSON parse error.
Now, the question arises: How can we ensure that the generated JSON files conform to the Cucumber JSON Schema? Is there a possibility to customize the JSON files to meet the required specifications? Additionally, we are puzzled as to why the WebDriverIO-Cucumber-generated JSON files fail to match the JSON schema (https://github.com/cucumber/cucumber-json-schema/blob/main/schema.json).
We are seeking guidance on aligning the JSON files with the Cucumber JSON schema and understanding whether there is flexibility to customize the JSON files. Furthermore, we would appreciate insights into why the JSON files generated by WebDriverIO-Cucumber do not adhere to the specified JSON schema (https://github.com/cucumber/cucumber-json-schema/blob/main/schema.json).
schema.json

