SpecSync.Plugin.ExcelTestResults
5.0.0
Prefix Reserved
dotnet add package SpecSync.Plugin.ExcelTestResults --version 5.0.0
NuGet\Install-Package SpecSync.Plugin.ExcelTestResults -Version 5.0.0
<PackageReference Include="SpecSync.Plugin.ExcelTestResults" Version="5.0.0" />
<PackageVersion Include="SpecSync.Plugin.ExcelTestResults" Version="5.0.0" />
<PackageReference Include="SpecSync.Plugin.ExcelTestResults" />
paket add SpecSync.Plugin.ExcelTestResults --version 5.0.0
#r "nuget: SpecSync.Plugin.ExcelTestResults, 5.0.0"
#:package SpecSync.Plugin.ExcelTestResults@5.0.0
#addin nuget:?package=SpecSync.Plugin.ExcelTestResults&version=5.0.0
#tool nuget:?package=SpecSync.Plugin.ExcelTestResults&version=5.0.0
Excel Test Results SpecSync Plugin: SpecSync.Plugin.ExcelTestResults
This plugin can be used to provide test results for Ghekin scenarios from an Excel file. This might be useful when manual test executions have to be recorded.
You can find more information about the SpecSync sample plugins in the repository page.
- Plugin package: SpecSync.Plugin.ExcelTestResults
- Plugin source: SpecSync.Plugin.ExcelTestResults
- Sample project: SampleProject
It can match the rest results to the local test cases (scenarios) with:
- Feature name
- Feature file name (without folder names)
- Scenario name
- Test Case ID
For that you need to have an Excel file that contains some of the columns below (the columns can be renamed, see below).
Feature: The column that contains the feature name. Optional, should be specified when scenario names are not globally unique and theIDcolumn is not specified.Feature File: The column that contains the feature file name. Optional, should be specified when scenario names are not globally unique theIDcolumn is not specified.Scenario: The column that contains the scenario name. Optional, must be specified when theIDcolumn is not specified.ID: The column that contains the Test Case ID. Optional, must be specified whenScenariocolumn is not specified.Test Name: The column that contains the name of the test execution (displayed in Azure DevOps). Optional, the scenario name is used as a Test Name if there is no such column or if the cell is empty.Outcome: The column that contains the outcome (Passed, Failed, NotExecuted). Mandatory.Error: The column that contains the error message. Optional, no error message is recoded if not specified.
The plugin ignores the rows where none of the reference columns (Feature, Feature File, Scenario, ID) are specified or they are empty. To see the skipped rows, you should use verbose mode (-v).
By default the first sheet of the Excel file is processed, but your can specify the sheet name as a paramter to select another sheet:
"plugins": [
{
"packageId": "SpecSync.Plugin.ExcelTestResults",
[...]
"parameters": {
"TestResultSheetName": "My Sheet"
}
}
]
You can use different column names, but in that case you need to configure the names by specifying any of the following plugin parameters:
FeatureColumnNameFeatureFileColumnNameScenarioColumnNameOutcomeColumnNameTestCaseIdColumnNameTestNameColumnNameErrorMessageColumnName
The Test Case ID can also be specified using prefixed format (e.g. tc:1234). The prefix (tc) can be configured with the "synchronization/testCaseTagPrefix" setting and the prefix separator (:) with the "synchronization/tagPrefixSeparators" setting. For example to allow IDs to be specified in the TC_1234 format, you can specify:
{
[...]
"synchronization": {
"testCaseTagPrefix": "TC", // sets prefix to "TC"
"tagPrefixSeparators": ["_", ":"] // allows both "_" and ":" as separators
}
}
By default you need to specify the standardized outcome values, like Passed or Failed, but you can also use custom values as well if you specify them with the OutcomeMapping parameter. For example the following configuration enables to use PASS and FAIL:
"plugins": [
{
"packageId": "SpecSync.Plugin.ExcelTestResults",
[...]
"parameters": {
"OutcomeMapping": "PASS=Passed,FAIL=Failed"
}
}
]
In order to use the plugin, you have to specify Excel for the --testResultFileFormat (or -f) command line option:
dotnet specsync publish-test-results -r ExcelTestResults.xlsx -f Excel
Implementation notes
The plugin finds the matching scenarios by case-sensitive equality. You can define different matching rules by changing the ExcelTestResultMatcher class.
The plugin loads the test result and the error message from the Excel file. You can load additional test result data (e.g. duration or step results) by extending the ExcelTestResultLoader class.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- ExcelDataReader (>= 3.8.0)
- ExcelDataReader.DataSet (>= 3.8.0)
- SpecSync.PluginDependency (>= 5.0.0)
- System.Text.Encoding.CodePages (>= 10.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Please check https://github.com/specsolutions/specsync-sample-plugins/releases for release note details.