We declare the procedure name in the first row of the Define table and write the procedure body as the rest of the table:
|define|changename| |set|name|Bob|We can also declare parameters in the first row. This uses the Do Fixture style, where alternating cells make up the procedure name and the parameter names:
|define|check field|fieldname|is|expected| |check|fieldname|expected|To invoke the procedure, we use the procedure name in any place where we'd use a fixture or domain method name. The test results include an expandable section showing the details of the procedure execution. This is what it looks like:
when input is⇓ | define changename set name Bob define 'check field' fieldname is expected check fieldname expected 'sample domain' changename 'check field' name is Bob | then output is |
|