public class TestCase extends QTestBaseModel<TestCase>
NL, properties, RESERVED_NAME| Constructor and Description |
|---|
TestCase() |
| Modifier and Type | Method and Description |
|---|---|
TestCase |
addAttachment(Attachment attachment)
Adds attachment to test case.
|
TestCase |
addFieldValue(FieldValue value)
Adds the property value to requirement and return itself.
|
TestCase |
addTestStep(TestStep testStep)
Adds test step to test case.
|
protected TestCase |
clone() |
java.lang.String |
elementName() |
java.util.List<Attachment> |
getAttachments() |
java.lang.String |
getDescription() |
java.util.List<FieldValue> |
getFieldValues() |
java.lang.Long |
getId() |
java.lang.String |
getName() |
java.lang.Integer |
getOrder() |
java.lang.Long |
getParentId() |
java.lang.String |
getPid() |
java.lang.String |
getPrecondition() |
java.lang.Long |
getTestCaseVersionId() |
java.util.List<TestStep> |
getTestSteps() |
java.lang.String |
jsonElementName() |
TestCase |
setAttachments(java.util.List<Attachment> attachments)
Sets the list of testcase's attachments.
|
TestCase |
setDescription(java.lang.String description)
Sets the test case description.
|
TestCase |
setFieldValues(java.util.List<FieldValue> values)
Sets the list of field value objects.
|
TestCase |
setId(java.lang.Long id)
Sets the test case id.
|
TestCase |
setName(java.lang.String name)
Sets the test case name.
|
TestCase |
setOrder(java.lang.Integer order)
Sets the test case object order.
|
TestCase |
setParentId(java.lang.Long parentId)
Sets the test-case parent identifier.
|
TestCase |
setPid(java.lang.String pid)
Sets the format id of test case.
|
TestCase |
setPrecondition(java.lang.String precondition)
Sets the test case precondition.
|
TestCase |
setTestCaseVersionId(java.lang.Long testCaseVersionId)
Sets the test case version id.
|
TestCase |
setTestSteps(java.util.List<TestStep> testSteps)
Sets the list of test steps.
|
TestCase |
withAttachments(java.util.List<Attachment> attachments)
Sets the list of testcase's attachments.
|
TestCase |
withDescription(java.lang.String description)
Sets the test case description.
|
TestCase |
withFieldValues(java.util.List<FieldValue> values)
Sets the list of field value objects.
|
TestCase |
withId(java.lang.Long id)
Sets the test case id.
|
TestCase |
withName(java.lang.String name)
Sets the test case name.
|
TestCase |
withOrder(java.lang.Integer order)
Sets the test case object order.
|
TestCase |
withParentId(java.lang.Long parentId)
Sets the test-case parent identifier.
|
TestCase |
withPid(java.lang.String pid)
Sets the format id of test case.
|
TestCase |
withPrecondition(java.lang.String precondition)
Sets the test case precondition.
|
TestCase |
withTestCaseVersionId(java.lang.Long testCaseVersionId)
Sets the test case version id.
|
TestCase |
withTestSteps(java.util.List<TestStep> testSteps)
Sets the list of test steps.
|
getBinaryFromInputStream, getLinks, getWebUrl, setLinks, setWebUrl, validateInputStream, withLinks, withWebUrlappendPropertiesTo, appendPropertiesTo, asDate, asDate, asInteger, asInteger, asLong, asLong, asString, asString, getProperties, getProperty, getPropertyMap, hasProperties, hasProperty, isVisible, removeProperty, setPropertiesFrom, setProperty, toJson, toStringpublic java.lang.Long getId()
public TestCase setId(java.lang.Long id)
id - the given test case identifier to set.TestCase instance.public TestCase withId(java.lang.Long id)
id - the given test case identifier to set.TestCase instance.public java.lang.String getName()
public TestCase setName(java.lang.String name)
name - the given test case name to set.TestCase instance.public TestCase withName(java.lang.String name)
name - the given test case name to set.TestCase instance.public java.lang.String getDescription()
public TestCase setDescription(java.lang.String description)
description - the given test case description to set.TestCase instance.public TestCase withDescription(java.lang.String description)
description - the given test case description to set.TestCase instance.public java.lang.String getPrecondition()
public TestCase setPrecondition(java.lang.String precondition)
precondition - the given test case precondition.TestCase instance.public TestCase withPrecondition(java.lang.String precondition)
precondition - the given test case precondition.TestCase instance.public java.lang.Integer getOrder()
public TestCase setOrder(java.lang.Integer order)
order - the given test case object order.TestCase instance.public TestCase withOrder(java.lang.Integer order)
order - the given test case object order.public java.lang.String getPid()
public TestCase setPid(java.lang.String pid)
pid - the given format id of test case to set.public TestCase withPid(java.lang.String pid)
pid - the given format id of test case to set.public java.util.List<TestStep> getTestSteps()
public TestCase setTestSteps(java.util.List<TestStep> testSteps)
testSteps - the given list of test steps to set.public TestCase withTestSteps(java.util.List<TestStep> testSteps)
testSteps - the given list of test steps to set.public TestCase addTestStep(TestStep testStep)
testStep - the given test step.TestCase object.public java.lang.Long getTestCaseVersionId()
public TestCase setTestCaseVersionId(java.lang.Long testCaseVersionId)
testCaseVersionId - the given test case version id to set.public TestCase withTestCaseVersionId(java.lang.Long testCaseVersionId)
testCaseVersionId - the given test case version id to set.public java.util.List<Attachment> getAttachments()
public TestCase setAttachments(java.util.List<Attachment> attachments)
attachments - the given list of testcase's attachment to set.public TestCase withAttachments(java.util.List<Attachment> attachments)
attachments - the given list of testcase's attachment to set.public TestCase addAttachment(Attachment attachment)
attachment - the given attachment to add to test case.TestCase object.public java.util.List<FieldValue> getFieldValues()
public TestCase setFieldValues(java.util.List<FieldValue> values)
values - the given field value objects to set.public TestCase withFieldValues(java.util.List<FieldValue> values)
values - the given field value objects to set.public TestCase addFieldValue(FieldValue value)
value - the given field value to add.public java.lang.Long getParentId()
public TestCase setParentId(java.lang.Long parentId)
parentId - the given test-case parent identifier value to set.public TestCase withParentId(java.lang.Long parentId)
parentId - the given parent identifier value to set.protected TestCase clone()
clone in class PropertyContainerpublic java.lang.String elementName()
elementName in class PropertyContainerpublic java.lang.String jsonElementName()
jsonElementName in class PropertyContainer