Replacing a membrane switch with a relay for automated testing

So one relay contact is connected to TP1 and the other goes to TP2?