A customer maintenance form in Uniface 10, part 3 - a service, 30 automated tests, and the bug that came with them
At the end of [part 2] the customer form worked and contained everything: e-mail rules, SQL strings, quote escaping, a number range, a duplicate query. All of it inside a form component, reachable only by a human clicking buttons. This part does three things: Move the rules into a service (CUSTOMER_SVC). Write a test service (CUSTOMER_TST_SVC) that exercises them automatically and leaves the database untouched. Fix the bug that the refactoring exposed - 0129 - Error on field CUSTOMER_ID; subfield(s) are required - which took two attempts, because the first fix only moved it.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in