You can import CSV format test data automatically using the C# or Visual Basic COM interface. You need to define the import options using the ITestCaseImportParameters Interface. This interface closely corresponds to the options that are available from the MxVDev GUI for CSV import, so detail on the use of these options can be found at Importing Test Data.
Namespace Automation
<ComVisible(True)> _
<Guid("7239C877-05CB-4636-8AF2-E80E7780C2AC")> _
Public Enum ValueDelimiter
Comma
Semicolon
WhiteSpace
End Enum
<ComVisible(True)> _
<Guid("C2439187-F74A-44a5-BB8B-57E9E4CCA992")> _
Public Enum DecimalDelimiter
Period
Comma
End Enum
<ComVisible(True)> _
<Guid("8B018182-F64D-419c-9D65-6BD8FB166F9D")> _
Public Enum CommentDelimiter
Semicolon
End Enum
<ComVisible(True)> _
<Guid("F2929BD8-5003-41b7-85D9-A044053A03C5")> _
Public Enum DataFormat
Matrix
Streaming
End Enum
<ComVisible(True)> _
<Guid("7E516F2D-44E2-40c6-B488-9A9575BC1309")> _
Public Enum LoadOption
NewTestCase
TestResults
End Enum
<ComVisible(True)> _
<Guid("28C45CA0-D3FF-41d7-938F-54EC2CA8FD22")> _
Public Enum TimeUnits
Nanoseconds
Microseconds
Milliseconds
Seconds
End Enum
<ComVisible(True)> _
<Guid("00125A1B-0943-40d9-885A-86D624F338B5")> _
Public Enum TimeDeltaType
Absolute
Relative
End Enum
<ComVisible(True)> _
<Guid("7C3E17DC-C568-4a40-B5DA-2982F42E845B")> _
Public Enum TestCaseDurationType
Automatic
Range
End Enum
<ComVisible(True)> _
<Guid("F783C37F-DE81-4854-9F46-4F2FCCAEB3B7")> _
Public Interface ITestCaseImportParameters
Property ValueDelimiter() As ValueDelimiter
Property DecimalDelimeter() As DecimalDelimiter
Property CommentDelimiter() As CommentDelimiter
Property DataFormat() As DataFormat
Property HasColumnHeader() As Boolean
Property LoadOption() As LoadOption
Property StreamingTimeColumn() As Integer
Property StreamingDataColumn() As Integer
Property StreamingSignalNameColumn() As Integer
Property MatrixHasTimeColumn() As Boolean
Property MatrixTimeUnits() As TimeUnits
Property MatrixRowTimeInterval() As Integer
Property MatrixTimeColumnIndex() As Integer
Property MatrixTimeColumnDeltaType() As TimeDeltaType
Property TestCaseName() As String
Property TestCaseTestResolution() As Double
Property TestCaseTestDurationType() As TestCaseDurationType
Property TestCaseTimeUnits() As TimeUnits
Property TestCaseDuration() As Double
Property TestCaseStartTime() As Double
Property TestCaseEndTime() As Double
End Interface
End Namespace
For an example using this interface, see Automation.vbs in the Automation sample project.
Importing Test Data (using the MxVDev GUI)