What is the syntax to generate a random text string of a given length in Tosca?

Prepare for the Tricentis Tosca Automation Specialist Level 1 (AS1) Test. Enhance your skills with multiple choice questions and explanations. Be exam ready!

Multiple Choice

What is the syntax to generate a random text string of a given length in Tosca?

Explanation:
RANDOMTEXT creates a string by taking a length parameter that tells how many characters to generate. In Tosca’s placeholder syntax, that length is described as "String length," so you place it inside the brackets after RANDOMTEXT. Therefore the exact form is {RANDOMTEXT[String length]}. The other variants change the parameter name, omit the space, or use a label like "Characters" that doesn’t specify the number of characters, so they don’t match how Tosca expects to define the string length.

RANDOMTEXT creates a string by taking a length parameter that tells how many characters to generate. In Tosca’s placeholder syntax, that length is described as "String length," so you place it inside the brackets after RANDOMTEXT. Therefore the exact form is {RANDOMTEXT[String length]}. The other variants change the parameter name, omit the space, or use a label like "Characters" that doesn’t specify the number of characters, so they don’t match how Tosca expects to define the string length.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy