profilename: Name of the profile that you wish to test
type: "source" or "database" (Source can be - "salesforce" or "mscrm")
Example
Validate Salesforce and Microsoft CRM connection on source setup tab in "myprofile" and click on Test connection to connect.
Tests the connection to a Database as setup in "myprofile"
admin(.bat or .sh) testconnection <<profilename>> <<type>>
Linux./admin.sh testconnection myprofile salesforce./admin.sh testconnection myprofile mscrm
Windowsadmin.bat testconnection myprofile salesforceadmin.bat testconnection myprofile mscrm
Linux./admin.sh testconnection myprofile database
Windowsadmin.bat testconnection myprofile database