Does the test connection in custom connector only test the connection or does it also perform the required operation and return the appropriate output ?

Does the test connection in custom connector only test the connection or does it also perform the required operation and return the appropriate output ?