verifImportFile
verifImportFile(
g_sessionId
t_fileName
[ ?fileType t_fileType ]
[ ?headerRows x_headerRows ]
[ ?columnHeaders l_columnHeaders ]
[ ?sheetNames l_sheet_Names ]
[ ?ignoreInavalidRows g_ignoreInvalidRows ]
)
=>t / nil
Description
Imports the requirements from a CSV or Excel file into a Verifier session. You can import requirements by referencing them or by copying them from the file.
Arguments
|
g_sessionId
|
Integer, string number, or window specifying the Verifier session ID. For example, 0, "0", or window(2).
|
|
t_fileName
|
The name of the Excel or CSV file.
|
|
t_fileType
|
The type of the file, that can be "CSV" or "Excel".
|
|
?headerRows x_headerRows
|
The number of the row which contains the column header definitions.
|
|
?columnHeaders l_columnHeaders
|
The list of the header column names that identify the kind of data being loaded from the file and their sequence. The list can contain the following names: Parent, ID, Title, Type, MinSpec, MaxSpec, Unit, Owner, Description.
|
|
?sheetName l_sheetName
|
A list of the names of the Excel sheets to be imported.
|
|
?ignoreInavalidRows g_ignoreInvalidRows
|
Ignores the rows containing invalid properties. The default value is nil.
|
Value Returned
|
t
|
The requirements are imported from the specified file successfully.
|
|
nil
|
The file contains errors or there are no valid requirements in the file.
|
Examples
The following example opens a Verifier cellview and imports the requirements from a CSV file.
sessionId = verifOpenCellView("test" "setup" "verifier")
=> 0
verifImportFile(sessionId "test.csv" ?fileType "CSV" ?headerRows 1
?ignoreInvalidRows t)
=> t
Related Topics
verifCompareImportedFiles
verifExportJson
verifExportReqsToFile
verifGetImportedFiles
verifMergeImportedFiles
Return to top