{"id":20065718,"url":"https://github.com/inflectra/rapise-testadapter","last_synced_at":"2026-01-05T07:09:44.114Z","repository":{"id":98238526,"uuid":"295349516","full_name":"Inflectra/rapise-testadapter","owner":"Inflectra","description":"Rapise TestAdapter for VSTest","archived":false,"fork":false,"pushed_at":"2024-07-24T07:40:19.000Z","size":684,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-19T11:51:09.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.inflectra.com/Rapise/","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/Inflectra.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":"2020-09-14T08:15:24.000Z","updated_at":"2024-07-24T07:40:25.000Z","dependencies_parsed_at":"2023-03-13T16:04:06.685Z","dependency_job_id":"2033bef7-052f-4f8b-b572-e504046c8e61","html_url":"https://github.com/Inflectra/rapise-testadapter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inflectra%2Frapise-testadapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inflectra%2Frapise-testadapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inflectra%2Frapise-testadapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inflectra%2Frapise-testadapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Inflectra","download_url":"https://codeload.github.com/Inflectra/rapise-testadapter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244974891,"owners_count":20541203,"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-13T13:52:26.615Z","updated_at":"2026-01-05T07:09:44.085Z","avatar_url":"https://github.com/Inflectra.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rapise-testadapter\n\nRapise TestAdapter for [VSTest](https://github.com/microsoft/vstest). Use it to run [Rapise](https://www.inflectra.com/Rapise/) tests with [Azure Pipelines](https://docs.microsoft.com/en-us/azure/devops/pipelines/?view=azure-devops) and [VSTest.Console.exe](https://docs.microsoft.com/en-us/visualstudio/test/vstest-console-options).\n\nThe package is published on NuGet.org: [Rapise.TestAdapter](https://www.nuget.org/packages/Rapise.TestAdapter/).\n\n## Usage\n\n### Azure Pipelines\n\n1. If you plan to run tests on Azure Hosted agents you need to configure the installtion step for Rapise. Add [PowerShell](https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/powershell?view=azure-devops) task.\n\n```yaml\nsteps:\n- task: PowerShell@2\n  displayName: 'Install Rapise'\n  inputs:\n    targetType: filePath\n    filePath: ./RapiseInstall.ps1\n    arguments: '-RapiseVersion \"6.5.20.21\"'\n```\n\n`RapiseInstall.ps1` is located in the root of this repository. Place it into your Git repository and reference in the PowerShell task. This script downloads and installs Rapise. It also installs Rapise extension into Chrome browser.\n\n2. Add [NuGet tool installer](https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/tool/nuget?view=azure-devops) task to install NuGet.exe.\n    \n    Example:\n    \n    ```yaml\n    steps:\n    - task: NuGetToolInstaller@0\n      displayName: 'Use NuGet'\n      inputs:\n        versionSpec: 4.4.1\n    ```\n3. Add [NuGet](https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/package/nuget?view=azure-devops) task. Set **command** to `custom` and specify the command line:\n\n    ```\n    install Rapise.TestAdapter -Version $(RapiseTestAdapterVersion)\n    ```\n    \n    Example\n    \n    ```yaml\n    steps:\n    - task: NuGetCommand@2\n      displayName: 'NuGet Install Rapise.TestAdapter'\n      inputs:\n        command: custom\n        arguments: 'install Rapise.TestAdapter -Version $(RapiseTestAdapterVersion)'    \n    ```\n    \n    In the pipeline settings set **RapiseTestAdapterVersion** variable to the Rapise.TestAdapter version you want to install (e.g. 1.0.11). The task will install Rapise.TestAdapter into \n    \n    ```\n    $(Build.Repository.LocalPath)\\Rapise.TestAdapter.$(RapiseTestAdapterVersion)\\lib\\net472\n    ```\n4. If you plan to run tests on a self-hosted Windows Agent that does not have Visual Studio installed you need to add [Visual Studio Test Platform Installer](https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/tool/vstest-platform-tool-installer?view=azure-devops) task.\n\n    Example:\n    \n    ```yaml\n    steps:\n    - task: VisualStudioTestPlatformInstaller@1\n      displayName: 'Visual Studio Test Platform Installer'\n      inputs:\n        versionSelector: latestStable\n    ```\n\n5. To run tests you need [Visual Studio Test](https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/vstest?view=azure-devops) task.\n\n    Example:\n    \n    ```yaml\n    steps:\n    - task: VSTest@2\n      displayName: 'VsTest - Run Rapise Tests'\n      inputs:\n        testAssemblyVer2: |\n         $(Build.Repository.LocalPath)\\Tests\\*.sstest\n         $(Build.Repository.LocalPath)\\Tests\\*\\*.sstest\n        runSettingsFile: '$(System.DefaultWorkingDirectory)\\Pipeline\\azure.runsettings'\n        overrideTestrunParameters: '-g_baseURL $(Dynamics365CrmBaseURL) -g_password $(Dynamics365CrmPassword) -g_browserLibrary $(RapiseBrowserProfile)'\n        pathtoCustomTestAdapters: '$(Build.Repository.LocalPath)\\Rapise.TestAdapter.$(RapiseTestAdapterVersion)\\lib\\net472'\n        platform: '$(BuildPlatform)'\n        configuration: '$(BuildConfiguration)'\n    ```\n\n    Make sure that path to custom test set adapters is set to\n    \n    ```\n    $(Build.Repository.LocalPath)\\Rapise.TestAdapter.$(RapiseTestAdapterVersion)\\lib\\net472\n    ```\n    \n    Specify patterns to search for `*.sstest` files in the **test files** section (`testAssemblyVer2` in YAML).\n    \n    If you added Visual Studio Test Platform Installer task on the previous step do not forget to set `vsTestVersion` in YAML (or Test platform version in Classic UI):\n    \n    ```\n    vsTestVersion: toolsInstaller\n    ```\n    \n6. To publish test results (for later review and downloading) use [Publish Build Artifacts](https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/publish-build-artifacts?view=azure-devops) task. Execution results are copied to `$(Agent.TempDirectory)\\TestResults`.\n\n    Example:\n    \n    ```yaml\n    steps:\n    - task: PublishBuildArtifacts@1\n      displayName: 'Publish Artifact: TestResults'\n      inputs:\n        PathtoPublish: '$(Agent.TempDirectory)\\TestResults'\n        ArtifactName: TestResults\n    ```\n\n#### Visual Studio Test Task \n\nRapise.TestAdapter also supports filtering, parameters and .runsettings files.\n   \n##### Test Filter Cirteria  \n\nRapise.TestAdapter supports [filter criteria](https://github.com/Microsoft/vstest-docs/blob/master/docs/filter.md) based on FullyQualifiedName test property (equals to  *.sstest file name). To specify a filter set `testFiltercriteria` in YAML or `Test filter criteria` in the form-based task editor.\n\nExample:\n\n```\nFullyQualifiedName~LIS\n```\n\n##### Parameters\n\nParameters can be set via\n\n- .runsettings file,\n- `overrideTestrunParameters` YAML option or\n- **Override test run parameters** field in the form-based task editor.\n\n\u003e Note: Parameter names must be prefixed with `g_`.\n\nExample:\n\n```\n-g_baseURL $(Dynamics365CrmBaseURL) -g_password $(Dynamics365CrmPassword) -g_browserLibrary $(RapiseBrowserProfile)\n```\n\n\u003e Note: $(name) - references a pipeline variable\n\n##### .runsettings\n\n[.runsettings file](https://docs.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file) is used to pass parameters and to enable [video recorder](https://docs.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file?view=vs-2019#videorecorder-data-collector).\n\nExample:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cRunSettings\u003e\n  \u003c!-- Parameters used by tests at runtime --\u003e\n  \u003cTestRunParameters\u003e\n    \u003cParameter name=\"g_browserLibrary\" value=\"Chrome\" /\u003e\n  \u003c/TestRunParameters\u003e\n\n  \u003cDataCollectionRunSettings\u003e\n    \u003cDataCollectors\u003e\n      \u003cDataCollector uri=\"datacollector://microsoft/VideoRecorder/1.0\" assemblyQualifiedName=\"Microsoft.VisualStudio.TestTools.DataCollection.VideoRecorder.VideoRecorderDataCollector, Microsoft.VisualStudio.TestTools.DataCollection.VideoRecorder, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\" friendlyName=\"video\" enabled=\"True\"\u003e\n        \u003cConfiguration\u003e\n          \u003cMediaRecorder sendRecordedMediaForPassedTestCase=\"true\"  xmlns=\"\"\u003e           \n            \u003cScreenCaptureVideo bitRate=\"512\" frameRate=\"2\" quality=\"20\" /\u003e\n          \u003c/MediaRecorder\u003e\n        \u003c/Configuration\u003e\n      \u003c/DataCollector\u003e\n    \u003c/DataCollectors\u003e\n  \u003c/DataCollectionRunSettings\u003e  \n  \n\u003c/RunSettings\u003e\n```\n\n### Run Tests with VSTest.Console.exe\n\nIt is also possible to run Rapise tests on a VM that has [VSTest.Console.exe](https://docs.microsoft.com/en-us/visualstudio/test/vstest-console-options?view=vs-2019) installed.\n\n#### Setup Microsoft.TestPlatform on a VM\n\nLet's assume that the working folder is `C:\\Tools`.\n\n1. Download and install [NuGet](https://www.nuget.org/downloads).\n2. Install [Microsoft.TestPlatform](https://www.nuget.org/packages/Microsoft.TestPlatform) with a command\n\n    ```\n    nuget install Microsoft.TestPlatform\n    ```\nFind `VSTest.Console.exe` in `C:\\Tools\\Microsoft.TestPlatform.16.7.1\\tools\\net451\\Common7\\IDE\\Extensions\\TestPlatform`. Add this folder to the PATH environment variable.\n\n3. Install Rapise.TestAdapter\n\n    ```\n    nuget install Rapise.TestAdapter\n    ```\n    \n4. You may now create a .cmd file and put it near Rapise tests. E.g.\n\n    ```\n    vstest.console.exe /TestAdapterPath:C:\\Tools\\Rapise.TestAdapter.1.0.11\\lib\\net472 /Settings:local.runsettings /TestCaseFilter:FullyQualifiedName~LIS *\\*.sstest\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finflectra%2Frapise-testadapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finflectra%2Frapise-testadapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finflectra%2Frapise-testadapter/lists"}