Class AdapterFinding
- Namespace
- MES.MQC.DataSourceLibrary.Models.Adapters
- Assembly
- MES.MQC.DataSourceLibrary.dll
The AdapterFinding class contains the data for one data item to be imported. Each Adapter returns a List of with objects of this class on execution with the Read method.
public class AdapterFinding : AdapterDataBase
- Inheritance
-
AdapterFinding
- Inherited Members
Properties
ArtifactInnerPath
Artifact Inner Path of the Finding.
public string[] ArtifactInnerPath { get; set; }
Property Value
- string[]
DataDateTime
Date of the report.
public DateTime? DataDateTime { get; set; }
Property Value
Description
Description of the Finding (contains information what the finding is about).
public string Description { get; set; }
Property Value
HumanReadableAnchor
Anchor of the related human readable html file.
public string HumanReadableAnchor { get; set; }
Property Value
HumanReadableFilePath
Human readable html file if different from the data.
public string HumanReadableFilePath { get; set; }
Property Value
IssueMessage
Issue Message of the Finding (contains the problem).
public string IssueMessage { get; set; }
Property Value
Measure
Measure of the Finding (e.g. Result, Coverage of Testcases).
public string Measure { get; set; }
Property Value
MeasurementName
Name of Measurement, used to replace ${MeasurementName} in FindingStructure and FindingStructureForArtifact (after verified with adapter options).
public string MeasurementName { get; set; }
Property Value
State
State of the Finding (e.g. Warning, Failed).
public string State { get; set; }
Property Value
SubjectName
Subject Name of the Finding.
public string SubjectName { get; set; }
Property Value
SubjectPath
Subject Path of the Finding.
public string[] SubjectPath { get; set; }
Property Value
- string[]
SubjectPathForArtifact
Subject Path of the Finding specific only for one artifact.
public string[] SubjectPathForArtifact { get; set; }
Property Value
- string[]
SubjectType
Subject Type of the Finding (e.g. Requirement, Testcase, Check).
public string SubjectType { get; set; }
Property Value
Methods
AddData(AdapterData)
Add an adapterData entry to create a relation.
public void AddData(AdapterData data)
Parameters
dataAdapterDataAdapterData
AddData(IEnumerable<AdapterData>)
Add multiple adapterData entries to create relations.
public void AddData(IEnumerable<AdapterData> data)
Parameters
dataIEnumerable<AdapterData>Array of AdapterData
AddRelation(AdapterFinding, string)
Add an adapterFinding entry to create a relation.
public void AddRelation(AdapterFinding finding, string result = null)
Parameters
findingAdapterFindingAdapterFinding
resultstringResult of the Relation
AddRelation(IEnumerable<AdapterFinding>, string)
Add multiple adapterFinding entries to create relations.
public void AddRelation(IEnumerable<AdapterFinding> findings, string result = null)
Parameters
findingsIEnumerable<AdapterFinding>Array of AdapterFinding
resultstringResult of the Relation
CreateNew(string, string, DateTime?, string, string, string[], string[], string[], string, string, string, string, string, string, string, DateTime?)
Create a new finding based on the current finding. Arguments are optional and can provide different values for some properties.
public AdapterFinding CreateNew(string type = null, string measure = null, DateTime? dateTime = null, string dataSourceName = null, string artifactPath = null, string[] artifactInnerPath = null, string[] subjectPath = null, string[] subjectPathForArtifact = null, string state = null, string subjectName = null, string description = null, string issueMessage = null, string humanReadableFilePath = null, string humanReadableAnchor = null, string measurementName = null, DateTime? dataDateTime = null)
Parameters
typestringType for the new Finding
measurestringMeasure for the new Finding
dateTimeDateTime?DateTime for the new Finding
dataSourceNamestringDataSourceName for the new Finding
artifactPathstringArtifactPath for the new Finding
artifactInnerPathstring[]ArtifactInnerPath for the new Finding
subjectPathstring[]SubjectPath for the new Finding
subjectPathForArtifactstring[]SubjectPathForArtifact for the new Finding
statestringState for the new Finding
subjectNamestringSubjectName for the new Finding
descriptionstringDescription for the new Finding
issueMessagestringIssueMessage for the new Finding
humanReadableFilePathstringHumanReadableFilePath for the new Finding
humanReadableAnchorstringHumanReadableAnchor for the new Finding
measurementNamestringMeasurementName for the new Finding
dataDateTimeDateTime?DataDateTime for the new Finding
Returns
- AdapterFinding
AdapterFinding (a new object)