Skip to content

setLabelsWithCreationEnabled (Creation & Assignment of Labels)

Compatible with:
  • Purpose
  • This command is used to create labels and assign them to a specific "Test Run/Scenario/Test Script" that is in the scope of the automated test in execution. You can create root level (top level) labels as well as child labels.

    Below are the representations:
    "01" indicated "Test Scenario" and "02" indicates "Test Scripts"
    "O" indicates "Override" and "A" indicates "Append"
    If no such representations are mentioned, then it would consider the Test Run as default.

    This command comes in handy in case you want to create any label and assign it to the test run during the run time dynamically. Since it is an automation that is creating new labels, the disadvantage of using this command is, you may end up seeing too many labels. Having said, if you take extra precautions to prevent the creation of a high number of unmanageable labels, this command can turn out to offer significant value.
  • Syntax
  • setLabelsWithCreationEnabled(parentLabelName||01/02||O/A,labelName)
  • Target
  • parentLabelName||01/02||O/A
  • Value
  • labelName (comma separated values in case of multiple labels)
  • Return Value
  • N/A
 

Feedback and Knowledge Base