December 2019
Beginner to intermediate
770 pages
16h 14m
English
Each test needs to verify its outcome. Put bluntly, a test without verification is not a test. And for the current test, we need to verify that the customer category code that is assigned to the Customer Category Code_PKT field of the customer record is indeed the value that was created in the Customer Category table. We therefore retrieve the record from the database and verify the content of the Customer Category Code_PKT field as follows:
local procedure VerifyCustomerCategoryOnCustomer( CustomerNo: Code[20]; CustomerCategoryCode: Code[20])var Customer: Record Customer; FieldOnTableTxt: Label '%1 on %2';begin with Customer do begin Get(CustomerNo); Assert.AreEqual( CustomerCategoryCode, "Customer Category ...
Read now
Unlock full access