{"id":18995341,"url":"https://github.com/testpointcorp/specflow-vansah","last_synced_at":"2026-04-16T02:30:19.706Z","repository":{"id":231416211,"uuid":"780330039","full_name":"testpointcorp/specflow-vansah","owner":"testpointcorp","description":"This repository will guide you through the process of integrating Specflow tests with Vansah Test Management for Jira to automatically send test case results.","archived":false,"fork":false,"pushed_at":"2024-04-03T22:15:52.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"prod","last_synced_at":"2025-01-01T16:22:28.012Z","etag":null,"topics":["automation","automation-framework","automation-testing","specflow-bdd"],"latest_commit_sha":null,"homepage":"https://vansah.com/connect-integrations/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/testpointcorp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-01T08:38:53.000Z","updated_at":"2024-04-29T10:29:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7a50f22-f1d9-4d74-a4fa-a7f2bbea8649","html_url":"https://github.com/testpointcorp/specflow-vansah","commit_stats":null,"previous_names":["testpointcorp/specflow-vansah"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testpointcorp%2Fspecflow-vansah","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testpointcorp%2Fspecflow-vansah/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testpointcorp%2Fspecflow-vansah/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testpointcorp%2Fspecflow-vansah/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/testpointcorp","download_url":"https://codeload.github.com/testpointcorp/specflow-vansah/tar.gz/refs/heads/prod","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240010366,"owners_count":19733514,"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","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":["automation","automation-framework","automation-testing","specflow-bdd"],"created_at":"2024-11-08T17:30:02.453Z","updated_at":"2026-04-16T02:30:19.657Z","avatar_url":"https://github.com/testpointcorp.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Specflow Integration with Vansah Test Management for Jira\n\nThis tutorial guides you through the process of integrating Specflow tests with Vansah Test Management for Jira to automatically send test case results. \n\nBy following this setup, you can streamline your testing workflow, ensuring that test outcomes are recorded directly in your Jira workspace.\n\n## Prerequisites\n- SpecFlow project setup in Visual Studio.\n- Make sure that [`Vansah`](https://marketplace.atlassian.com/apps/1224250/vansah-test-management-for-jira?tab=overview\u0026hosting=cloud) is installed in your Jira workspace\n- You need to Generate Vansah [`connect`](https://docs.vansah.com/docs-base/generate-a-vansah-api-token-from-jira-cloud/) token to authenticate with Vansah APIs.\n\n## Setup\n- Download Vansah Binding: [Clone/download](https://github.com/testpointcorp/specflow-vansah/tree/prod/VansahBinding) from GitHub.\n\n## Configuration\n- Create/Update [specflow.json](/.NET%20Examples/SpecFlowCalculator/SpecFlowCalculator.Specs/specflow.json) into your Testing Project: Configure to recognize VansahBinding assembly.\n```json\n{\n  \"stepAssemblies\": [\n    {\n      \"assembly\": \"VansahBinding\"\n    }\n  ]\n}\n```\n- Add VansahBinding as Project Reference into your Project [*.csproj](/.NET%20Examples/SpecFlowCalculator/SpecFlowCalculator.Specs/SpecFlowCalculator.Specs.csproj) file\n```xml\n\u003cItemGroup\u003e\n    \u003cProjectReference Include=\"..\\..\\..\\VansahBinding\\VansahBinding.csproj\" /\u003e\n\u003c/ItemGroup\u003e\n```\n- Setting Environment Variables: Store your Vansah API token as an environment variable for security. \n\nFor Windows (use cmd)\n```cmd\nsetx VANSAH_TOKEN \"your_vansah_api_token_here\"\n\n```\nFor macOS\n```bash\necho 'export VANSAH_TOKEN=\"your_vansah_api_token_here\"' \u003e\u003e ~/.bash_profile\n\nsource ~/.bash_profile\n\n```\nFor Linux (Ubuntu, Debian, etc.)\n```bash\necho 'export VANSAH_TOKEN=\"your_vansah_api_token_here\"' \u003e\u003e ~/.bashrc\n\nsource ~/.bashrc\n\n``` \n- Use of Test Run Properties\n  \n Go to your downloaded [VansahSpecflow.cs](/VansahBinding/VansahSpecflow.cs) and uncomment the Sprint, Release and Environment details as per your requirement\n```csharp\n       //Update these Values with your Project Test Run properties\n        private static String _sprintName = \"SM Sprint 1\";\n        private static String _releaseName = \"Release 24\";\n        private static String _environmentName = \"SYS\";\n        /**\n          Other functions\n        */       \n        private void SendTestResultToVansah(String testCaseKey, String result)\n        {\n            //Process 1\n\n            // Uncomment the below values if required; note: do not uncomment if not used.\n            // vansah.SprintName = _sprintName;\n            // vansah.release_Name = _releaseName;\n            // vansah.environment_Name = _environmentName;\n\n            //Next process\n\n        }\n```\n## Writing Features\nUse BDD statements to link scenarios with Vansah:\n```gherkin\nWhen the Test Case key is Test-C8 And the Issue Key is Test-2\nWhen the Test Case key is Test-C9 And the Test Folder ID is b97fe80b-0b6a-11ee-8e52-5658ef8eadd5\n```\n## Usage Examples\nView our Sample feature [file](/.NET%20Examples/SpecFlowCalculator/SpecFlowCalculator.Specs/Features/Calculator.feature)\n```gherkin\nFeature: Calculator\n\n@Add\nScenario: Add two number\n\tGiven the first number is 50\n\tAnd the second number is 70\n\tWhen the two numbers are added\n\tWhen the Test Case key is Test-C8 And the Issue Key is Test-2\n\tThen the result should be 120\n\n@Subtract\nScenario: Subtract two numbers\n\tGiven the first number is 50\n\tAnd the second number is 25\n\tWhen the two numbers are subtracted\n\tWhen the Test Case key is Test-C9 And the Test Folder ID is b97fe80b-0b6a-11ee-8e52-5658ef8eadd5\n\tThen the result should be 25\n```\n## Execution\nRun your tests as usual. Results automatically sync with Vansah.\n\n## Conclusion\nBy following these steps, you can efficiently manage your test cases and results in Vansah Test Management for Jira, improving the visibility and traceability of your testing efforts.\n\nFor more details on Specflow, visit the [Specflow documentation](https://docs.specflow.org/projects/specflow/en/latest/Bindings/Use-Bindings-from-External-Assemblies.html). \n\nFor Vansah specific configurations and API details, please refer to the [Vansah API documentation](https://apidoc.vansah.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestpointcorp%2Fspecflow-vansah","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestpointcorp%2Fspecflow-vansah","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestpointcorp%2Fspecflow-vansah/lists"}