Knowledgebase: Technical
Guideline for parametric phrases
Posted by Gian Luca De Bonis on 02 February 2010 11:36 AM
|
|
Parametric phrases are very powerful and allow you to parametrize strings. Strings like 'Customer: @1' match every string that starts with 'Customer: ', like 'Customer: ACME inc'. However checking phrases as parametric is enabling pattern searching, and should be done accordingly. Here are some guidelines: - do not indicate as parametric every phrase that contains parameters; - do not make generic phrases, e.g. “@1:” parametric; this would match every string terminating with “:”; - in general, make a phrase parametric if (excluding parameters) it contains a fairly large number of characters. Examples: - correct: “The specified value (@1) is wrong”, “Page @1 of @2” - wrong: “@1:”, “@1-@2.”, “Don’t @1” | |
|
Comments (0)