{"title":"Codeunit 130400 CAL Test Runner, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/130400-cal-test-runner/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":130400,"name":"CAL Test Runner","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/130400-cal-test-runner/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/130400-cal-test-runner/source/","path":"src/Layers/W1/BaseApp/System/DevTools/CALTest/CALTestRunner.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:130401":{"name":"CAL Test Line","url":"https://jonas-paprotka.de/ref/table/130401-cal-test-line/"},"table:130405":{"name":"CAL Test Result","url":"https://jonas-paprotka.de/ref/table/130405-cal-test-result/"},"codeunit:9990":{"name":"Code Coverage Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/9990-code-coverage-mgt/"},"codeunit:130401":{"name":"CAL Test Management","url":"https://jonas-paprotka.de/ref/codeunit/130401-cal-test-management/"},"codeunit:130403":{"name":"CAL Test Runner Publisher","url":"https://jonas-paprotka.de/ref/codeunit/130403-cal-test-runner-publisher/"}},"procs":[{"name":"OnRun","line":11,"kind":"trigger","steps":[[16,"call","RunTests",0]]},{"name":"RunTests","line":54,"kind":"procedure","access":"local","params":0,"steps":[[59,"event","OnBeforeRunTests",0],[60,"call","OpenWindow",0],[61,"write",130401,"ModifyAll"],[62,"write",130401,"ModifyAll"],[64,"ext","table",130405,"LastTestRunNo",0],[67,"call","CountTestCodeunitsToRun",1],[71,"call","UpdateTCM",0],[72,"ext","codeunit",9990,"Start",1],[75,"ext","table",130401,"GetMaxCodeunitLineNo",1],[80,"ext","codeunit",130401,"ISPUBLISHMODE",0],[81,"ext","table",130401,"DeleteChildren",0],[85,"call","UpdateTCM",0],[86,"ext","codeunit",9990,"Stop",0],[87,"ext","codeunit",130401,"ExtendTestCoverage",1],[91,"call","CloseWindow",0]]},{"name":"OnBeforeTestRun","line":94,"kind":"trigger","steps":[[96,"ext","codeunit",130403,"SetSeed",1],[99,"call","UpDateWindow",11],[105,"call","InitCodeunitLine",0],[113,"ext","codeunit",130401,"ISPUBLISHMODE",0],[114,"call","AddTestMethod",1],[116,"call","TryFindTestFunctionInGroup",1],[119,"call","InitTestFunctionLine",0],[123,"call","UpDateWindow",11],[132,"ext","codeunit",130401,"ISTESTMODE",0]]},{"name":"OnAfterTestRun","line":135,"kind":"trigger","steps":[[139,"call","UpDateWindow",11],[145,"call","UpDateWindow",11],[151,"call","UpdateCodeunitLine",1],[156,"call","UpdateTestFunctionLine",1]]},{"name":"AddTestMethod","line":163,"kind":"procedure","params":1,"steps":[[168,"validate",130401,"Function"],[172,"write",130401,"Insert",1]]},{"name":"InitCodeunitLine","line":176,"kind":"procedure","params":0,"steps":[[178,"ext","codeunit",130401,"ISTESTMODE",0],[181,"write",130401,"Modify"]]},{"name":"UpdateCodeunitLine","line":185,"kind":"procedure","params":1,"steps":[[187,"ext","codeunit",130401,"ISPUBLISHMODE",0],[198,"write",130401,"Modify"]]},{"name":"InitTestFunctionLine","line":201,"kind":"procedure","params":0,"steps":[[206,"write",130401,"Modify"]]},{"name":"UpdateTestFunctionLine","line":210,"kind":"procedure","params":1,"steps":[[221,"write",130401,"Modify"],[223,"ext","table",130405,"Add",2]]},{"name":"CountTestCodeunitsToRun","line":241,"kind":"procedure","params":1,"steps":[[243,"ext","codeunit",130401,"ISTESTMODE",0]]},{"name":"UpdateTCM","line":251,"kind":"procedure","params":0,"steps":[[253,"ext","codeunit",130401,"ISTESTMODE",0]]},{"name":"OpenWindow","line":256,"kind":"procedure","access":"local","params":0,"steps":[[258,"ext","codeunit",130401,"ISTESTMODE",0]]},{"name":"UpDateWindow","line":273,"kind":"procedure","access":"local","params":11,"steps":[[275,"ext","codeunit",130401,"ISTESTMODE",0],[291,"call","IsTimeForUpdate",0],[293,"call","OpenWindow",0]]},{"name":"CloseWindow","line":308,"kind":"procedure","access":"local","params":0,"steps":[[310,"ext","codeunit",130401,"ISTESTMODE",0]]}]}