Demo · Parity Lab · Online screens
Every CardDemo screen, COBOL and Java, key press by key press.
CardDemo has fifteen more online screens beyond account view and update: sign-on, the two menus, cards, transactions, reports, bill payment and user administration. Each was ported to Java and run against the unchanged COBOL on the same recorded key presses. 223 of 223 scenarios came out identical, on every screen and every record written.
What the tests found in the original
The Java port keeps each of these, so that it can be proven identical first; each is then fixed as a separate change.
Records changed in the files
How it works
Recorded once on the COBOL, replayed on the Java
The COBOL, unchanged
Each program runs under GnuCOBOL with its CICS commands replaced by small stand-ins, as on the account screen. A driver plays the terminal: it starts the transaction, types into the fields, presses a key and keeps what the program saved between key presses, one CICS task at a time. Every screen the program sends and every record it writes is recorded.
The Java port, the same key presses
The Java port of each program answers the same key presses through the same terminal, on its own copy of the same files. Its answer is laid onto the original screen layout, and each step's text, colors, protected fields and cursor are compared with the COBOL's, then every record each side added, changed or deleted.
Scenarios that look for trouble
Besides the ordinary paths, the scenarios press the wrong keys, leave fields empty, type too little, page past the ends, and use extra test records: more users, an account with two cards, an account with no card on file. That is where most of the findings above came from.
These results were recorded with the harness, not run live on each visit: the comparisons take minutes. GnuCOBOL and the stand-ins are not a mainframe running CICS; where the two could differ, the case study's engineering record says so.
Read the CardDemo case study · Try the account screen live · Try the update screen live · Original source code