Skip to content

createBodyPartFromTextOrHTML (Team Notifications, Alerts and Collaboration)

Compatible with:
  • Purpose
  • This command is used to create an 'email body part' from the 'Text String' or 'HTML String' passed as input.
    • The 'target' for the command is the ' Text String' or 'HTML String ',
    • The 'value' for the command is a name you provide to the 'body part' that you will end up using as input to the command 'appendBodyPartToBody'.  
    The plain text string or the HTML text string passed into the 'value' for this command can have in its contents user-defined variables and/or system variables which during the test execution will get substituted with the then current value of the user-defined variable(s) or the system variables.  If you want the user-defined variables or system variables within the contents of the plain text or html string, they must be appropriately enclosed with a '${' on the left and a '}' on the right.    
  • Syntax
  • createBodyPartFromTextOrHTML(String/HTML Text, TemplateName)
  • Target
  • String/HTML Text  
  • Value
  • TemplateName
  • Return Value
  • N/A



 

Feedback and Knowledge Base