Skip to content

Parameterized test case

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

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

       TESTSUITE 'Look up state names based on USPS abbreviations' 

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

       TESTCASE PROVIDER 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