Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

Salesforce Flawless Packaging And Deployment

320 Aufrufe

Veröffentlicht am

The slides will give you an overview of the phases till packaging and deployment, the challeges of packaging complonent and Solutions for them.

Veröffentlicht in: Vertrieb

Salesforce Flawless Packaging And Deployment

  1. 1. Flawless Packaging And Deployment By Harshala Shewale Lets connect on twitter @harshalashewale
  2. 2. Agenda  What is Packaging  Challenges  Solutions  Reference
  3. 3. What is Packaging ? 1) Gather Requirement 2) Define Application Component 3) Test in allocated environment 4) Package and distribute
  4. 4. ? Version Control ? Complex Development ? Continuous Integration ? ? Handling Different Components ? Deployment Checklist Automated Testing Challenges
  5. 5. Solutions 1. Version Control - Fork, Branching and Merging - Code History / Audit trail - Collaborative Development - Prevents lost Of Code
  6. 6. Challenges ✔ Version Control ? Complex Development ? Continuous Integration ? ? Handling Different Components ? Deployment Checklist Automated Testing 5 more to go
  7. 7. Solutions 2. Automated Testing 1) Prepare Test Cases for bugs/new feature 2) Use of Selenium tool 3) Validate New or Changed Code 4) Special Org dedicated for Testing 5) Run All Tests after code change , sometimes difference in Run All Tests coverage and coverage while deploying package
  8. 8. Solutions How to Run All test classes before deployment 1) Open Developer Console. 2) Click the panel "Query Editor" Tab at the bottom of the screen 3) Write the following Query in Query Editor. SELECT Id, NumLinesUncovered FROM ApexCodeCoverageAggregate 4) Check the checkbox "Use Tooling API" at the bottom of the screen. 5) Click "Execute". 6) Select all rows and delete them from "Query Results". 7) Make sure there are no records of ApexCodeCoverageAggregate 8) Clear all Test history (Setup | Developer | Apex Test Execution -> View est History -> Clear Test Results) 9) Compile all classes 10) Perform "Run All test".
  9. 9. Challenges ✔ Version Control ? Complex Development ? Continuous Integration ? Handling Different Components ? Deployment Checklist Automated Testing✔ 4 more to go
  10. 10. Solution 3. Handling Different Components 1) Custom Settings 2) Custom Labels 3) Custom Button and Links
  11. 11. Challenges ✔ Version Control Complex Development ? Continuous Integration Handling Different Components ? Deployment Checklist Automated Testing✔ 3 more to go ✔ ✔ ?
  12. 12. Solution 4. Complex Development - Isolated Feature development 1) Keep feature separate, ➔ 1 feature – 1 org ➔ Keep a separate branch for feature ➔ Deploy branched code to org 2) Send pull request to main branch 3) Merge the feature in main branch 4) Send code for QA test 5) Reduces code conflict
  13. 13. Challenges ✔ Version Control ✔ Complex Development ? Continuous Integration Handling Different Components ? Deployment Checklist Automated Testing✔ 2 more to go ✔ ✔
  14. 14. Solution 5. Continuous Integration - Constant flow of development changes and unit testing - Use of Force.com Migration Tool with Jenkins
  15. 15. Challenges ✔ Version Control ✔ Complex Development Continuous Integration Handling Different Components ? Deployment Checklist Automated Testing✔ 1 more to go ✔ ✔ ✔
  16. 16. Solution 6. Deployment Checklist - Modified / New Components list - Post Deployment Checklist - Level of Access for components - Track all changes - Start the deployment early - Set up a maintenance window - Use a continuous integration server to make small improvements - Define data load process if any
  17. 17. Challenges ✔ Version Control ✔ Complex Development Continuous Integration Handling Different Components Deployment Checklist Automated Testing✔ Wooohooo Done! ✔ ✔ ✔ ✔
  18. 18. References Jenkins : https://developer.salesforce.com/blogs/developer-relations/2013/03/setting-up-jenkins-for- Selenium https://developer.salesforce.com/blogs/engineering/2013/06/automated-testing-using-selen http://www.slideshare.net/Salesforce/introduction-to-forcecom-application-distribution http://www.slideshare.net/developerforce/techniques-and-tools-to-improve-the-salesforce-d http://www.docurated.com/all-things-productivity/salesforce-deployment-checklist
  19. 19. Question(s)

×