Deploy TestClass to Salesforce


Before run test on a TestClass, you need to delopy it to Salesforce, by clicking “Deploy” button on “Preview” tab or Preview window.

Deploy TestClass 01

The error message will be shown on the top of “Preview” tab if there had deploy errors occurred in Salesforce, as below.

Deploy TestClass 02 Deploy TestClass 03

Then you need to fixed it and deploy again, until TestClass is deployed to Salesforce successfully, as below.

Deploy TestClass 04