{"id":18995353,"url":"https://github.com/testpointcorp/vansahseleniumcsharpdotnetdemo","last_synced_at":"2025-08-08T18:31:56.238Z","repository":{"id":166303273,"uuid":"563549231","full_name":"testpointcorp/vansahSeleniumCSharpDotNetDemo","owner":"testpointcorp","description":"a sample project using C# and Selenium with the Vansah Binder to demonstrate how you can use the same within your project. ","archived":false,"fork":false,"pushed_at":"2023-07-04T07:13:08.000Z","size":23995,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-01T16:22:33.880Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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":"2022-11-08T21:01:21.000Z","updated_at":"2022-11-10T23:00:52.000Z","dependencies_parsed_at":"2024-11-08T17:32:48.356Z","dependency_job_id":"4748379e-899d-4eb9-9570-0774d956a87f","html_url":"https://github.com/testpointcorp/vansahSeleniumCSharpDotNetDemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testpointcorp%2FvansahSeleniumCSharpDotNetDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testpointcorp%2FvansahSeleniumCSharpDotNetDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testpointcorp%2FvansahSeleniumCSharpDotNetDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testpointcorp%2FvansahSeleniumCSharpDotNetDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/testpointcorp","download_url":"https://codeload.github.com/testpointcorp/vansahSeleniumCSharpDotNetDemo/tar.gz/refs/heads/main","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":[],"created_at":"2024-11-08T17:30:04.251Z","updated_at":"2025-02-21T11:53:41.420Z","avatar_url":"https://github.com/testpointcorp.png","language":"C#","readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/95007067/245728119-98d2b310-a43c-4d17-8a67-cc47d8ff9b3a.png\" /\u003e\n\u003c/div\u003e\n\n\u003ch1 align=\"center\" style=\"background-color:cornflowerblue !important;\n    color: white !important;\"\u003e\n  Sample Framework in C# Using Selenium and Vansah Binder for Jira\n\u003c/h1\u003e\n\n\nVansah's API enables the integration of Vansah with a range of tools, automation, and development frameworks, including third-party applications. We provide a sample project that demonstrates the utilization of Vansah Binder in conjunction with C# .NET framework and Selenium to showcase how you can incorporate it into your own project. A simple test to load https://selenium.vansah.io and send results to your Jira instance when using Vansah TM app.\n\n##  Tools and Languages\n-\tC# Language\n-\tJira cloud workspace with [Vansah Test Management For Jira](https://marketplace.atlassian.com/apps/1224250/vansah-test-management-for-jira) installed\n\n\n## Prerequisite\n\n* [Generate Vansah Connect Token ](https://docs.vansah.com/docs-base/generate-a-vansah-api-token-from-jira/)\n* [Atleast 1 Test Case linked to a Jira Issue to run](https://docs.vansah.com/docs-base/linking-test-cases-to-a-jira-issue/)\n* [Download Vansah API-Binding for C# from Github](https://github.com/testpointcorp/vansahSeleniumCSharpDotNetDemo)\n* [Selenium dependency should be installed ](https://github.com/testpointcorp/Vansah-CSharp-Binder/wiki/How-to-Install-Selenium-Dependency-in-Visual-Studio%3F)\n\n## Usage/Examples\n\n### Step 1\n\nInclude [VansahNode.cs](https://github.com/testpointcorp/vansahSeleniumCSharpDotNetDemo/blob/main/VansahNode.cs) into your Project directory\n\n![image](https://user-images.githubusercontent.com/95007067/245723781-a90ce9e1-9dd4-4623-93d5-228210fa1489.png)\n\n### Step 2\n\nConfigure VansahNode.cs file and paste your vansah connect token here \n[Generate Vansah Connect Token ](https://docs.vansah.com/docs-base/generate-a-vansah-api-token-from-jira/)\n\n\n![image](https://user-images.githubusercontent.com/95007067/245725004-0ed5e90b-6930-4b9e-8fa0-e7077305b933.png)\n\n\n### Step 3\nProvide your Jira Issue Key, Test Case Key and the result as per the below snippet\n\n👋 Note : \n\nThe Test Case must be [Linked](https://docs.vansah.com/docs-base/linking-test-cases-to-a-jira-issue/) to an Asset such as Jira Issue Key or TestFolder Identifier for which you want to send the Test Results. \n\n```c#\n[Test]\n        public void TestCase1()\n        {   \n          VansahNode execute = new VansahNode();\n\n            //Provide your Jira Issue Key\n            execute.SetJira_Issue_Key(\"Test-1\");\n                   \n            try\n            {\n                Assert.Pass();\n\n                //Provide Your Test Case Key and Result \n                //n/a, failed, passed, untested\n                execute.AddQuickTestFromJiraIssue(\"Test-C1\", \"passed\");\n            }\n            catch (Exception ex)\n            {\n                //Provide Your Test Case Key and Result \n                //n/a, failed, passed, untested\n                execute.AddQuickTestFromJiraIssue(\"Test-C1\", \"failed\");\n\n            }\n        }\n ```\n### Step 4\nRun your Tests\n\n![image](https://user-images.githubusercontent.com/95007067/245725721-556bd502-1704-444d-ba03-422607e5c6fa.png)\n\n![image](https://user-images.githubusercontent.com/95007067/245726916-ebdff6b0-2a6a-410a-935a-a9c44ef7f9be.png)\n\n\n\n### Step 5\nCheck your Jira instance for the issue related to the run\n\n![image](https://user-images.githubusercontent.com/95007067/248912620-19f28df0-d48a-4779-883b-d721638dfb12.png)\n\n## Available Functions\n\n#### Add Quick Test\n\n```c#\nAddQuickTestFromJiraIssue(string testCase, string result);\nAddQuickTestFromTestFolders(string testCase, string result);  \n```\n| Description                     |\n:-------------------------------- |\n|To create a test run without logging the results to each of the test steps|\n\n#### Add Tests\n\n```c#\n//To Create a Test Run Identifier\nAddTestRunFromJiraIssue(string testCase);\nAddTestRunFromTestFolder(string testCase); \n\n//Add Test Log to each step\nAddTestLog(string result, string comment, int testStepRow, bool sendScreenShot, IWebDriver driver);\n\n//To Update the Test Log\nUpdateTestLog(string result, string comment, bool sendScreenShot, IWebDriver driver);\n\n//To Remove the Current Test Log\nRemoveTestLog();\n\n//To Remove the Current Test Run\nRemoveTestRun();\n\n```\n| Description                     |\n:-------------------------------- |\n|Follow Above functions to add Test results to each of your Test Steps of the Test Case|\n\n#### Add Test Properties\n\n```c#\n//To Set the TestFolder as an Asset\nSetTestFolders_Id(string testFolders_Id);\n\n//To Set the Jira Issue as an Asset\nSetJira_Issue_Key(string jira_Issue_Key);\n\n//To Set the Sprint in the Test Run Properties\nSetSprint_Name(string sprint_Name);\n\n//To Set the Version/Release in the Test Run Properties\nSetRelease_Name(string release_Name);\n\n//To Set the Environment in the Test Run Properties\nSetEnvironment_Name(string environment_Name);\n\n```\n| Description                     |\n:-------------------------------- |\n|Above functions are use to declare the Asset and Test Properties|\n\n## Support\nIf you have any questions, suggestions, or other requests, please don't hesitate to contact us through our support channels. You can visit our community website at https://community.vansah.com/ to raise a ticket. Additionally, you can reach us through our customer portal at https://vansahapp.atlassian.net/servicedesk/customer/portals.\n\n\u003cdiv align=\"center\"\u003e\n  © 2023 Vansah®. All rights reserved.\n\u003c/div\u003e\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestpointcorp%2Fvansahseleniumcsharpdotnetdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestpointcorp%2Fvansahseleniumcsharpdotnetdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestpointcorp%2Fvansahseleniumcsharpdotnetdemo/lists"}