It's probably because you have made mistake filling values in one of the fields.
Test Connection would be successful, but if you notice one or more fields will be with red border. you got to correct the issue there.
Alternatively, please post the screenshot.