Package com.piketec.tpt.api
Interface TestCaseAttribute
-
- All Superinterfaces:
IdentifiableRemote
,java.rmi.Remote
,TptRemote
public interface TestCaseAttribute extends IdentifiableRemote
ATestCaseAttribute
represents a row in the Test Case Details view. It consists of a name and a type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TestCaseAttribute.TestCaseAttributeType
Different types of test case attributes.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
STRING_TYPE
Deprecated.Will be removed in TPT-21.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description TestCaseAttributeOption
createOption(java.lang.String optionName)
Creates an option for this test case attribute.TestCaseAttribute.TestCaseAttributeType
getAttributeType()
Returns the type of this attribute; it can be eitherTEXT
,CHECKBOX
,ENUM_ONE
,ENUM_MANY
orFILE
.java.lang.String
getName()
Get the name of thisTestCaseAttribute
RemoteIndexedList<java.lang.String,TestCaseAttributeOption>
getOptions()
Get the available options for this test case attribute.java.lang.String
getType()
Deprecated.will be removed in TPT-21.boolean
isCopyable()
Indicates whether the value of aTestCaseAttribute
will be copied with the test case it is assigned to.void
setAttributeType(TestCaseAttribute.TestCaseAttributeType type)
Sets the type of this attribute.void
setCopyable(boolean on)
Set aTestCaseAttribute
to be "copyable".void
setName(java.lang.String newName)
Set the name for thisTestCaseAttribute
-
Methods inherited from interface com.piketec.tpt.api.IdentifiableRemote
getIdentifier
-
-
-
-
Field Detail
-
STRING_TYPE
@Deprecated static final java.lang.String STRING_TYPE
Deprecated.Will be removed in TPT-21.Type String for String Test Case Attribute- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
@Deprecated java.lang.String getType() throws java.rmi.RemoteException
Deprecated.will be removed in TPT-21. UsegetAttributeType()
instead.Returns the type of this attribute.- Returns:
- The type as a
String
. - Throws:
java.rmi.RemoteException
- remote communication problem
-
getName
java.lang.String getName() throws java.rmi.RemoteException
Get the name of thisTestCaseAttribute
- Returns:
- Returns the name of this
TestCaseAttribute
- Throws:
java.rmi.RemoteException
- remote communication problem
-
setName
void setName(java.lang.String newName) throws ApiException, java.rmi.RemoteException
Set the name for thisTestCaseAttribute
- Parameters:
newName
- The new name.- Throws:
ApiException
- IfnewName
isnull
or does already exist.java.rmi.RemoteException
- remote communication problem
-
isCopyable
boolean isCopyable() throws java.rmi.RemoteException
Indicates whether the value of aTestCaseAttribute
will be copied with the test case it is assigned to. In the TPT GUI this setting corresponds to the check box in theTestCaseAttribute
definition dialog.- Returns:
true
, if theTestCaseAttribute
will be automatically copied- Throws:
java.rmi.RemoteException
- remote communication problem
-
setCopyable
void setCopyable(boolean on) throws java.rmi.RemoteException
Set aTestCaseAttribute
to be "copyable". The values of a "copyable"TestCaseAttribute
are automatically copied into the new test case, when the corresponding test case is copied or duplicated.- Parameters:
on
-true
, if TestCaseAttribute should be "copyable".- Throws:
java.rmi.RemoteException
- remote communication problem
-
getAttributeType
TestCaseAttribute.TestCaseAttributeType getAttributeType() throws java.rmi.RemoteException
Returns the type of this attribute; it can be eitherTEXT
,CHECKBOX
,ENUM_ONE
,ENUM_MANY
orFILE
.- Returns:
- The type of the
TestCaseAttribute
- Throws:
java.rmi.RemoteException
- remote communication problem
-
setAttributeType
void setAttributeType(TestCaseAttribute.TestCaseAttributeType type) throws ApiException, java.rmi.RemoteException
Sets the type of this attribute.- Parameters:
type
-TestCaseAttributeType.TEXT
,TestCaseAttributeType.CHECKBOX
,TestCaseAttributeType.ENUM_ONE
,TestCaseAttributeType.ENUM_MANY
orTestCaseAttributeType.FILE
.- Throws:
ApiException
- If giventype
isnull
java.rmi.RemoteException
- remote communication problem
-
createOption
TestCaseAttributeOption createOption(java.lang.String optionName) throws java.rmi.RemoteException
Creates an option for this test case attribute. Note that the options are only relevant for test case attriutes of typeENUM_ONE
orENUM_MANY
.- Parameters:
optionName
- The name of the option to be created- Returns:
- The created option
- Throws:
java.rmi.RemoteException
- remote communication problem
-
getOptions
RemoteIndexedList<java.lang.String,TestCaseAttributeOption> getOptions() throws java.rmi.RemoteException
Get the available options for this test case attribute. Note that the options are only relevant for test case attriutes of typeENUM_ONE
orENUM_MANY
.- Returns:
- List of options for this test case attribute.
- Throws:
java.rmi.RemoteException
- remote communication problem
-
-