Creating configuration files for exporting Excel test artifacts
When you export an Microsoft Excel test artifact, you must have a configuration file to define how to map the XML file to a Engineering Test Management artifact.
About this task
- A column or cell definition i.e. D or D4
- A literal string i.e. "execution"
- A reference to another artifact (self-reference) i.e. testscript.description
To define a row or cell, simply put the column identifier or cell identifier:
testscript.dc:title=G
To define a literal string, simply wrap it with quotes:
testscript.steps.type="execution"
To define a self reference, simply
put in the information from one side of the equals from a previously defined line:
testscript.dc:title=G
testcase.dc:title=testscript.dc:title
Note: Self-references are used to create artifacts that will use data already being used by another
artifact and will create a link to that artifact. Self-references cannot be used with the
XLSLink
keyword. Keywords and special cases: There are several
keywords that go on the one side of the equals sign. They all start with "XLS" and take the place of
a field after the artifact. They are defined as:
XLSStartRow
defines which row the artifact data starts after.XLSDelimeter
defines the element that denotes the next artifact (currently only\n
is supported).XLSLink
specifies that the artifact be linked to all artifacts of the specified type within the worksheet.XLSLinkReverse
directs the export utility to put the link XML into the artifact, rather than the one making the link. Use this keyword only with self referential links. Use this keyword when you create an artifact based on another (for example,requirement.dc:title=testcase.dc:title
), but you require that the link be created in the artifact that is the original (the one to the one of the sides of equal sign). Specifyingrequirement.XLSLinkReverse=true
puts the link in the main artifact, rather than the one specifying the self-referential link.XLSArtifactID
specifies the external ID of the artifact. If the external ID of the artifact is not specified, a default external ID is assigned using this format:
where artifact_count is the number of artifacts in a single spreadsheet if the spreadsheet contains two or more artifacts. If the spreadsheet contains one artifact, this argument is not required.Excel file name_Excel worksheet name[_artifact_count].xml
Important: If the spreadsheet contains an artifact with the same external ID as another artifact, the artifact is updated from the spreadsheet contents. For example, if you export the same Excel spreadsheet with the same configuration several times, the external ID is updated each time.CAUTION:If you are usingartifact.XLSArtifactID="urn:com.ibm.rqm:testplan:2"
when the value is specified as a string (not a cell), make sure there is no blank sheet, and thatartifact.XLSWorksheetID
is not used to specify the worksheet to read theXLSArtifactID
.To create new artifacts when you export the same Excel files to the same repository, complete one of these steps:- Use the
XLSArtifactID
keyword to specify a unique external ID for each export operation. - Change the Excel file name or the Excel worksheet name each time you export.
- Use the Export to file option when you start the export process, and
change the name of XML files, and then import the XML files into Engineering Test Management : Log
into Engineering Test Management, and click one of these commands:Tip: You can use the preceding method to import test plans, test cases, and test scripts only.
- Use the
XLSWorksheetID
specifies the name of the worksheet to process. You must use literal string for this keyword.Note: From version 4.0, the syntax fortestsuite
linked withtestcases
has changed from
totestsuite.testcases=testcase
testsuite.XLSLink=testcase
- Here are some examples:
testscript.XLSStartRow=7
testscript.title=B
testscript.steps.type="execution"
testscript.steps.description=B
testscript.steps.title=B
testscript.steps.name=B
testscript.steps.expectedResult=F
testscript.XLSDelimeter=\n
testcase.dc:title=C1
testcase.dc:description=C2
testcase.XLSLink=testscript
testcase.XLSArtifactID=D1
testcase.XLSWorksheetID="test_case_1"
The script steps, categories, sections, image exports, dynamic searches for a word or phrase, and spreadsheet properties access are special cases. A script step requires several fields for each step. Because a script can have many steps, all lines are considered a single step until a blank line is encountered, which starts the next step.
Sections are special cases. To simplify their use and to keep their definitions from interfering with the period notation that is otherwise used. To update a section, use this format:
This example configuration entry populates the acceptance criteria section that is built into the Engineering Test Management application.testcase.Section("myns:com.ibm.rqm.planning.editor.section.testCaseAcceptanceCriteria", "RQM-KEY-TC-ACCEPT-CRITERIA-TITLE")=C