When the is parameterised with objects that have
a custom toString() method,
or answerables resolving to such objects, the toString() method is called to produce the resulting description.
Using with objects without a custom toString method
When the is parameterised with complex objects that don't have a custom toString() method,
or Answerables resolving to such objects,
the resulting description will contain a JSON-like string representation of the object.
Creates a single-line description of an
Activity
by transforming a template literal, parameterised with primitive data types, complex data structures, or any other answerables, into aQuestionAdapter<string>
that can be used withTask.where
andInteraction.where
methods.Trimming the output
Use
DescriptionFormattingOptions
to trim the descriptions of template parameters. By default, the output is displayed in full.Using with Questions
When
the
is parameterised with questions, it retrieves their description by callingQuestion.describedBy
in the context of theActor
performing theActivity
.If you'd like the question to be described using its formatted value instead of its description, use
Question.formattedValue
.Using with objects with a custom
toString
methodWhen
the
is parameterised with objects that have a customtoString()
method, or answerables resolving to such objects, thetoString()
method is called to produce the resulting description.Using with objects without a custom
toString
methodWhen
the
is parameterised with complex objects that don't have a customtoString()
method, orAnswerable
s resolving to such objects, the resulting description will contain a JSON-like string representation of the object.Using with masked values
When
the
is parameterised with masked values, the resulting description will contain a masked representation of the values.Learn more
Answerable
Question
Question.describedAs
QuestionAdapter
Masked