Skip to content

Parameterized test case

Dave Nicolette edited this page Dec 25, 2020 · 6 revisions

Home -> User Guide -> Common Test Case Patterns ->

Note: The proof-of-concept did not implement parameterized test cases. This will be an extension to the original logic. Currently planned for the 0.0.1 release.

       TESTSUITE 'Look up state names based on USPS abbreviations' 

       PROVIDER StateNames
           HEADER 'Abbreviation', Name'
              ROW 'AZ', 'Arizona'
              ROW 'KY', 'Kentucky'
              ROW 'XX', '*Undefined*'

       TESTCASE USING StateNames "Get full name of #{Name} based on its USPS abbreviation" 
           MOVE #{Abbreviation} TO WS-STATE-ABBR
           PERFORM 0100-GET-STATE-NAME
           EXPECT WS-STATE-NAME TO BE #{Name}
Clone this wiki locally