-
Notifications
You must be signed in to change notification settings - Fork 29
Set input values before invoking paragraph
Dave Nicolette edited this page Dec 17, 2020
·
4 revisions
Home -> User Guide -> Common Test Case Patterns ->
TESTSUITE 'Look up state names based on USPS abbreviations'
TESTCASE 'Get full name of Arizona based on its USPS abbreviation'
MOVE 'AZ' TO WS-STATE-ABBR
PERFORM 0100-GET-STATE-NAME
EXPECT WS-STATE-NAME TO BE 'Arizona'
TESTCASE 'Get full name of Kentucky based on its USPS abbreviation'
MOVE 'KY' TO WS-STATE-ABBR
PERFORM 0100-GET-STATE-NAME
EXPECT WS-STATE-NAME TO BE 'Kentucky'
TESTCASE 'It returns *Undefined* when USPS abbreviation is not found'
MOVE 'XX' TO WS-STATE-ABBR
PERFORM 0100-GET-STATE-NAME
EXPECT WS-STATE-NAME TO BE '*Undefined*'