public final class UpdateTestScriptModel extends TypedEntityModel
| Modifier and Type | Class and Description |
|---|---|
static class |
UpdateTestScriptModel.TestScriptRevisionType
Represents the revision type (see Octane test script documentation)
|
wrappedEntityModel| Constructor and Description |
|---|
UpdateTestScriptModel() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Returns the ID of the entity.
|
UpdateTestScriptModel |
setComment(String comment)
Sets the comment for the script
|
UpdateTestScriptModel |
setRevisionType(UpdateTestScriptModel.TestScriptRevisionType testScriptRevisionType)
Sets the revision type for the script
|
UpdateTestScriptModel |
setTestSteps(List<AbstractTestStep> testSteps)
Sets the test steps to update represented as objects
Do NOT use for gherkin tests - they should be uploaded as a simple string with the Gherkin script
|
UpdateTestScriptModel |
setTestSteps(String testSteps)
Sets the test steps to update represented as a simple JSON string (needs to confirm to the format as seen in the
documentation)
|
getType, getWrappedEntityModel@Nullable public String getId()
Entitypublic UpdateTestScriptModel setTestSteps(List<AbstractTestStep> testSteps)
testSteps - The list of objectspublic final UpdateTestScriptModel setTestSteps(String testSteps)
testSteps - The string of the JSONpublic final UpdateTestScriptModel setComment(String comment)
comment - The commentpublic final UpdateTestScriptModel setRevisionType(UpdateTestScriptModel.TestScriptRevisionType testScriptRevisionType)
testScriptRevisionType - The revision typeCopyright © 2021 Micro Focus. All rights reserved.