Repository navigation
Testing a sensor via a function block with AT@Q* and AT@I* #255
|
Hello TcUnit, I have yet to see a similar discussions so therefore I create this. I have a question regarding function blocks with connection to the real world. How are people going about automated testing of this? I have for example a function block that takes in bytes of data and gives the program properties and methods to act on the sensor. But I want to test this functionality and especially the extremes. Then also simulating faults from the sensor. So my thinking is to replace the inputs and outputs of the function block to a simulated one so that I can simulate faults/errors. Have anyone done something like this? Any ideas? Maybe this goes into integration testing more. |
Replies: 1 comment 1 reply
|
A way to test the IO is described in FAQ, point 3 - https://tcunit.org/#/faq?id=_3-is-there-a-way-to-test-i-or-q-variables |
A way to test the IO is described in FAQ, point 3 - https://tcunit.org/#/faq?id=_3-is-there-a-way-to-test-i-or-q-variables