My Test Suite is not being Executed.
I have went through the tutorial Several times and I can not figure out what is wrong.
CoUnit.RUN(); gets called I can put a break point before and after it.
but my test suite body is never called
PROGRAM PRG_Test VAR inst_Test_Wago_750_455 : Test_Wago_750_450; END_VAR CoUnit.RUN(); //** This is called
FUNCTION_BLOCK Test_Wago_750_450 EXTENDS CoUnit.FB_TestSuite VAR_INPUT END_VAR VAR_OUTPUT END_VAR VAR END_VAR InputEqualsZero(); //** Never reached
METHOD InputEqualsZero VAR module : Wago_750_455; processImage : DWORD; i : INT; buffer_False : BOOL := FALSE; buffer_Four : REAL := 4; END_VAR
//TEST(__POUNAME()); TEST('Test'); processImage := 0; FOR i := 0 TO 3 BY 1 DO module.Param_ProcessImage[i] := processImage; module.Cfg_HasDiagBits := TRUE; module(); AssertEquals(Expected := buffer_Four, Actual := module.ValueAs_mA[i], Message := 'The calculation is not correct'); AssertEquals(Expected := buffer_False, Actual := module.Error_Any[i], Message := 'Message (Figure me Out Later)'); AssertEquals(Expected := buffer_False, Actual := module.Error_UnderRange[i], Message := 'Message (Figure me Out Later)'); AssertEquals(Expected := buffer_False, Actual := module.Error_OverRange[i], Message := 'Message (Figure me Out Later)'); END_FOR TEST_FINISHED();
And Export of my Project is attached
Ok it appears it will only execute once and then will require a reset and not just a start and stop.
So I figured that out. Next problem
This can be closed
Last edit: thecolonel26 2023-04-08