December 2019
Beginner to intermediate
770 pages
16h 14m
English
Now, we create a test function with a name based on the SCENARIO description and embed the scenario, the GIVEN-WHEN-THEN part, in this function. I call this embedding green, as it's the commented-out GIVEN-WHEN-THEN sentences, before you start programming the .al test code.
Look at what the codeunit has now become:
codeunit 60100 "Customer Category PKT"{ // [FEATURE] Customer Category SubType = Test; [Test] procedure AssignNonBlockedCustomerCategoryToCustomer() // [FEATURE] Customer Category begin // [SCENARIO #0001] Assign non-blocked customer category // to customer // [GIVEN] A non-blocked customer category // [GIVEN] A customer // [WHEN] Set customer category on customer // [THEN] Customer has customer category code ...Read now
Unlock full access