|Part 2: Becoming a TestArchitect power user / Lesson #5: Working with variables and expressions|
You can use variables to store text strings, which can be used in place of string literals in your cell expressions.
name value local variable city Dallas local variable state Texas local variable country USAThe local variable action does two things:
text report # "Pickup city: " & city & ", " & state & ", " & countryThis report line is essentially identical to that of row 16, except that three of the string constants have been replaced by variables.
Your entire test case should now look something like this:
As seen in the results, once the expression in row 24 is evaluated, and the three
local variables are resolved to the values they hold, the results are identical to
those produced by the first two action lines: