Class ExcelFileTestCasesImportSettings
- java.lang.Object
-
- com.piketec.tpt.api.requirements.TestCasesImportSettings
-
- com.piketec.tpt.api.requirements.tabular.TabularTestCasesImportSettings
-
- com.piketec.tpt.api.requirements.excel.ExcelFileTestCasesImportSettings
-
- All Implemented Interfaces:
java.io.Serializable
public class ExcelFileTestCasesImportSettings extends TabularTestCasesImportSettings
The settings for the requirements import of test cases from an Excel file.- Author:
- Copyright (c) 2014-2024 PikeTec GmbH - MIT License (MIT) - All rights reserved
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExcelFileTestCasesImportSettings.ExcelRangeDeterminationMethod
The choice for determining the range of cells within the sheet for the import.-
Nested classes/interfaces inherited from class com.piketec.tpt.api.requirements.TestCasesImportSettings
TestCasesImportSettings.SynchronizationMethod, TestCasesImportSettings.SynchronizationProperty, TestCasesImportSettings.TargetTypeAssignment, TestCasesImportSettings.TestCaseHierarchyCreationMethod, TestCasesImportSettings.TestCaseType
-
-
Field Summary
-
Fields inherited from class com.piketec.tpt.api.requirements.TestCasesImportSettings
CREATE_NEW_TEST_SET
-
-
Constructor Summary
Constructors Constructor Description ExcelFileTestCasesImportSettings(java.lang.String importFilePath)
The constructor for the settings of the requirements import of test cases from an Excel file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getRange()
ExcelFileTestCasesImportSettings.ExcelRangeDeterminationMethod
getRangeDeterminationMethod()
java.lang.String
getSheet()
boolean
isCheckForHyperlinks()
void
setCheckForHyperlinks(boolean checkForHyperlinks)
void
setRange(java.lang.String range)
void
setRangeDeterminationMethod(ExcelFileTestCasesImportSettings.ExcelRangeDeterminationMethod rangeDeterminationMethod)
void
setSheet(java.lang.String sheet)
-
Methods inherited from class com.piketec.tpt.api.requirements.tabular.TabularTestCasesImportSettings
getAttributeAssignments, getDescriptionColumns, getGroupPathColumn, getIdColumn, getImportFilePath, getLevelColumn, getLinksColumn, getNameColumn, getTypeAssignments, getTypeColumn, isWithHeaderLine, setAttributeAssignments, setDescriptionColumns, setGroupPathColumn, setIdColumnAndAttribute, setLevelColumn, setLinksColumn, setNameColumn, setTypeAssignments, setTypeColumn, setWithHeaderLine
-
Methods inherited from class com.piketec.tpt.api.requirements.TestCasesImportSettings
getAutoReviewAttributes, getHierarchyCreationMethod, getIdAttribute, getPreferredTestCaseType, getSyncMethod, getSyncProperty, getTestSetName, setAutoReviewAttributes, setHierarchyCreationMethod, setIdAttribute, setPreferredTestCaseType, setSyncMethod, setSyncProperty, setTestSetName
-
-
-
-
Method Detail
-
getRangeDeterminationMethod
public ExcelFileTestCasesImportSettings.ExcelRangeDeterminationMethod getRangeDeterminationMethod()
- Returns:
- The choice for determining the range of cells within the sheet for the import.
-
setRangeDeterminationMethod
public void setRangeDeterminationMethod(ExcelFileTestCasesImportSettings.ExcelRangeDeterminationMethod rangeDeterminationMethod)
- Parameters:
rangeDeterminationMethod
- The choice for determining the range of cells within the sheet for the import.
-
getRange
public java.lang.String getRange()
- Returns:
- The range between the upper-left most cell and the lower-right most cell within the
sheet for the import. Only relevant if the
range determination
isExcelFileTestCasesImportSettings.ExcelRangeDeterminationMethod.MANUAL
.
-
setRange
public void setRange(java.lang.String range)
- Parameters:
range
- The range between the upper-left most cell and the lower-right most cell within the sheet for the import. Only relevant if therange determination
isExcelFileTestCasesImportSettings.ExcelRangeDeterminationMethod.MANUAL
. Must not benull
in this case and of the form e.g., "A1:X27".
-
getSheet
public java.lang.String getSheet()
- Returns:
- The source sheet of the Excel file for the import. If
null
, the first of the Excel file is used.
-
setSheet
public void setSheet(java.lang.String sheet)
- Parameters:
sheet
- The source sheet of the Excel file for the import. Ifnull
, the first of the Excel file is used.
-
isCheckForHyperlinks
public boolean isCheckForHyperlinks()
- Returns:
- Whether the importer creates additional columns to import them as well if hyperlinks are found in Excel cells.
-
setCheckForHyperlinks
public void setCheckForHyperlinks(boolean checkForHyperlinks)
- Parameters:
checkForHyperlinks
- If set totrue
, the importer creates additional columns to import them as well if hyperlinks are found in Excel cells.
-
-