{"id":23651868,"url":"https://github.com/microfocus/octane-cucumber-jvm","last_synced_at":"2025-09-01T02:32:11.888Z","repository":{"id":52271631,"uuid":"112312050","full_name":"MicroFocus/octane-cucumber-jvm","owner":"MicroFocus","description":"A plugin to enable upload of cucumber test results into ALM Octane.","archived":false,"fork":false,"pushed_at":"2024-10-13T06:22:14.000Z","size":173,"stargazers_count":5,"open_issues_count":3,"forks_count":8,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-02T07:35:10.245Z","etag":null,"topics":["octane"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MicroFocus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-11-28T09:07:24.000Z","updated_at":"2024-10-09T07:54:25.000Z","dependencies_parsed_at":"2023-12-12T10:49:31.118Z","dependency_job_id":null,"html_url":"https://github.com/MicroFocus/octane-cucumber-jvm","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/MicroFocus/octane-cucumber-jvm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MicroFocus%2Foctane-cucumber-jvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MicroFocus%2Foctane-cucumber-jvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MicroFocus%2Foctane-cucumber-jvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MicroFocus%2Foctane-cucumber-jvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MicroFocus","download_url":"https://codeload.github.com/MicroFocus/octane-cucumber-jvm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MicroFocus%2Foctane-cucumber-jvm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273065038,"owners_count":25039274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["octane"],"created_at":"2024-12-28T16:48:45.671Z","updated_at":"2025-09-01T02:32:11.574Z","avatar_url":"https://github.com/MicroFocus.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e **_NOTE:_** octane-cucumber-jvm supports injecting BDD test results into ALM Octane for Cucumber JVM versions up to 4.8.1.\n\u003e A newer tool is available for injecting BDD test results into ALM Octane. That tool supports multiple BDD frameworks including Cucumber 5.x and later.\n\u003e See [bdd2octane](https://github.com/MicroFocus/bdd2octane)\n\n# octane-cucumber-jvm\nALM Octane cucumber-jvm formatter enables uploading cucumber-jvm tests back into ALM Octane.\n\n## How does it work\n1.\tYou use this plugin in your JUnit Cucumber tests (see instructions below).\n2.\tWhen running the tests, the plugin outputs files with the results.\n3.\tALM Octane plugin for Jenkins reads these files and uploads the results back to ALM Octane (see how to configure ALM Octane Jenkins plugin in the ALM Octane online help).\n4.\tYou can see the results in your Gherkin test in ALM Octane.\n\n## Prerequisites:\n* You are using Java language and the cucumber-jvm library to develop Cucumber tests.\n* You are using Junit Runner to run the cucumber-jvm library as explained [here](https://cucumber.io/docs/cucumber/api/#running-cucumber)\n\nThe JUnit runner uses the JUnit framework to run Cucumber. The default configuration require a single empty class with an annotation:\n```java\n/**********************************\n  before the plugin configuration\n***********************************/\npackage mypackage;\nimport cucumber.api.junit.Cucumber;\nimport org.junit.runner.RunWith;\n\n@RunWith(Cucumber.class)\npublic class RunCukesTest {\n\n}\n```\n\n# How to configure octane-cucumber-jvm in your project:\n\n## For Cucumber 4.2 - 4.8.1\n1. Add a dependency in your pom file:\n```xml\n\u003cdependencies\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.microfocus.adm.almoctane.bdd\u003c/groupId\u003e\n        \u003cartifactId\u003eoctane-cucumber-jvm\u003c/artifactId\u003e\n        \u003cversion\u003e1.0.0\u003c/version\u003e\n    \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\n2. Add the OctaneGherkinFormatter plugin to the CucumberOptions of each test class, and provide a unique result file path:\n```java\npackage feature.manualRunner;\n\nimport cucumber.api.CucumberOptions;\nimport org.junit.runner.RunWith;\n\n@RunWith(Cucumber.class)\n@CucumberOptions(plugin=\"com.hpe.alm.octane.OctaneGherkinFormatter:gherkin-results/ManualRunnerTest_OctaneGherkinResults.xml\",\n    features=\"src/test/resources/feature/manualRunner\")\npublic class ManualRunnerTest{\n\n}\n```\n\n## For cucumber 1.2\n1. Add a dependency in your pom file:\n```xml\n\u003cdependencies\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.hpe.alm.octane\u003c/groupId\u003e\n        \u003cartifactId\u003eoctane-cucumber-jvm\u003c/artifactId\u003e\n        \u003cversion\u003e12.55.7\u003c/version\u003e\n    \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\n2. Import the formatter into the Junit Runner class:\n```java\nimport com.hpe.alm.octane.OctaneCucumber;\n```\n\n3. Change the cucumber.class to OctaneCucumber.class:\n```java\npackage feature.manualRunner;\n\nimport com.hpe.alm.octane.OctaneCucumber;\nimport cucumber.api.CucumberOptions;\nimport org.junit.runner.RunWith;\n\n@RunWith(OctaneCucumber.class)\n@CucumberOptions(features=\"src/test/resources/feature/manualRunner\")\npublic class ManualRunnerTest{\n\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrofocus%2Foctane-cucumber-jvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrofocus%2Foctane-cucumber-jvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrofocus%2Foctane-cucumber-jvm/lists"}