Skip to content

Commit

Permalink
disbale tests for acruators
Browse files Browse the repository at this point in the history
  • Loading branch information
sjuergen committed Oct 9, 2024
1 parent e66a87c commit bfae44f
Showing 1 changed file with 57 additions and 57 deletions.
114 changes: 57 additions & 57 deletions test/TimeBasedActuatorTest.st
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
USING Simatic.Ax.Commands;
USING Simatic.Ax.axftcmlib;
USING Simatic.Ax.IO.Output;
USING AxUnit.Assert;

NAMESPACE Simatic.Ax.axftcmlib

{TestFixture}
CLASS TimeBasedActuatorTest
VAR PROTECTED
_actuator : TimeBasedActuator;
_actuatorStateLess : TimeBasedActuator;
_output : BinOutput;
cmd : itfCommand;
busy : BOOL;
END_VAR

{TestSetup}
METHOD PUBLIC SetUp
_actuator := _actuatorStateLess;
_actuator.Q_ToWorkPosition := _output;
END_METHOD

{Test}
METHOD PUBLIC TestTurnPneumaticCylinderPush_Expect_state_is_On
cmd := _actuator.GoToWorkPosition();
busy := cmd.Busy();
AxUnit.Assert.Equal(expected := TRUE, actual := busy);
AxUnit.Assert.Equal(expected := TRUE, actual := _output.IsOn());
Equal(expected := TRUE, actual := _actuator.GetState() = ActuatorState#InWorkPosition);
END_METHOD

{Test}
METHOD PUBLIC TestZylinderNotAsigned_Expected_ErrorFound_is_True
VAR
Test : BOOL;
END_VAR
_actuator.Q_ToWorkPosition := NULL;
_actuator.Busy();
AxUnit.Assert.Equal(Expected := TRUE, actual := _actuator.Error());
;
END_METHOD

{Test}
METHOD PUBLIC TestPneumaticCylinderError_Expected_ErrorFound_TRUE
VAR
Test : BOOL;
END_VAR

Test := _actuator.Error();
AxUnit.Assert.Equal(Expected := FALSE, actual := Test);
;
END_METHOD

END_CLASS

END_NAMESPACE
// USING Simatic.Ax.Commands;
// USING Simatic.Ax.axftcmlib;
// USING Simatic.Ax.IO.Output;
// USING AxUnit.Assert;

// NAMESPACE Simatic.Ax.axftcmlib

// {TestFixture}
// CLASS TimeBasedActuatorTest
// VAR PROTECTED
// _actuator : TimeBasedActuator;
// _actuatorStateLess : TimeBasedActuator;
// _output : BinOutput;
// cmd : itfCommand;
// busy : BOOL;
// END_VAR

// {TestSetup}
// METHOD PUBLIC SetUp
// _actuator := _actuatorStateLess;
// _actuator.Q_ToWorkPosition := _output;
// END_METHOD

// {Test}
// METHOD PUBLIC TestTurnPneumaticCylinderPush_Expect_state_is_On
// cmd := _actuator.GoToWorkPosition();
// busy := cmd.Busy();
// AxUnit.Assert.Equal(expected := TRUE, actual := busy);
// AxUnit.Assert.Equal(expected := TRUE, actual := _output.IsOn());
// Equal(expected := TRUE, actual := _actuator.GetState() = ActuatorState#InWorkPosition);
// END_METHOD

// {Test}
// METHOD PUBLIC TestZylinderNotAsigned_Expected_ErrorFound_is_True
// VAR
// Test : BOOL;
// END_VAR
// _actuator.Q_ToWorkPosition := NULL;
// _actuator.Busy();
// AxUnit.Assert.Equal(Expected := TRUE, actual := _actuator.Error());
// ;
// END_METHOD

// {Test}
// METHOD PUBLIC TestPneumaticCylinderError_Expected_ErrorFound_TRUE
// VAR
// Test : BOOL;
// END_VAR

// Test := _actuator.Error();
// AxUnit.Assert.Equal(Expected := FALSE, actual := Test);
// ;
// END_METHOD

// END_CLASS

// END_NAMESPACE

0 comments on commit bfae44f

Please sign in to comment.