User Tools

Site Tools


salesforce_trigger_deployment

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
salesforce_trigger_deployment [2018/07/12 22:48]
paul [Salesforce Apex Trigger Deployment]
salesforce_trigger_deployment [2018/08/07 12:07] (current)
vinhn
Line 5: Line 5:
 When deploying change sets, you may need to add a [[https://​developer.salesforce.com/​docs/​atlas.en-us.apexcode.meta/​apexcode/​apex_qs_test.htm|test class]] that tests your trigger'​s Apex code to ensure 75% coverage of all Apex code.  By default, the Perspectium managed package comes with a test class that covers the basic of Perspectium'​s dynamic share Apex triggers. ​ When deploying change sets, you may need to add a [[https://​developer.salesforce.com/​docs/​atlas.en-us.apexcode.meta/​apexcode/​apex_qs_test.htm|test class]] that tests your trigger'​s Apex code to ensure 75% coverage of all Apex code.  By default, the Perspectium managed package comes with a test class that covers the basic of Perspectium'​s dynamic share Apex triggers. ​
 </​WRAP>​ </​WRAP>​
 +
 +=====Testing Trigger=====
 +Before deploying a package from dev to sandbox / production, it is needed for test cases to succeed. In order to meet required test coverage, follow the instructions and examples below.
 +
 +  - Go to Set Up at the top right
 +  - Search for Apex Test Execution in the search field
 +{{ :​sfdc_trigger_test_1.png?​nolink |}}
 +
 +3. On the top left of the Apex Test Execution page, click on the Select Tests button ​
 +{{ :​sfdc_trigger_test_2.png?​nolink |}}
 +
 +4. Check the boxes of the tests that need to be tested
 +{{ :​sfdc_trigger_test_3.png?​nolink |}}
 +
 +From here, you may click the [View] text to open the class or click the selected tests to view details of the results
 +
 =====Change Set Deployment===== =====Change Set Deployment=====
 In order to deploy a change set, follow the steps and examples provided below: In order to deploy a change set, follow the steps and examples provided below:
Line 29: Line 45:
  
 Now that the Outbound Change Set is created, please go to the Inbound Change Set on the receiving org and select the created Outbound Change Set to deploy. Now that the Outbound Change Set is created, please go to the Inbound Change Set on the receiving org and select the created Outbound Change Set to deploy.
- 
- 
- 
  
  
salesforce_trigger_deployment.1531460929.txt.gz ยท Last modified: 2018/07/12 22:48 by paul