This is my fist time to develop a SNMP connector for a client and to take a real task, I've created the write/read parameters and now I'm asked to write unit test to make sure the connector is working as expected, but Qactions has no functions to test and I can't imagine what kind of tests I should create to make sure the connector is working as expected, can anyone help me on how to analyze tests that need to be created for a SNMP connector only has read/write parameters, groups and timers?
Hi Mohamed,
You should be unit testing only the code you've written, and based on your post I don't think you've written any code in this particular case. If you are using just the protocol.xml, you can just rely on it working as expected. What you could do is some QA work, in order to make sure you've implemented everything correctly.
I this case I don't think unit testing makes sense unless you wrote some QActions as well, did you?
Cheers
I don't think there is anything you could unit test in that case. Just thorough QA should suffice.
Thanks a lot
I'm working in a team and creating parameters distributed between us and now we've finished and unit testing is my task, and the protocol.xml has the default 2 Qactions which has LogException, LogResponseError and Run functions only, So what can be written in c# and what needs to be tested?