際際滷

際際滷Share a Scribd company logo
Continuous Integration in the CloudConference Track: DeveloperJames Hatton & Alexis Williams
James HattonSenior Member of Technical Staff
Safe HarborSafe harbor statement under the Private Securities Litigation Reform Act of 1995:This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services.The risks and uncertainties referred to above include  but are not limited to  risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of intellectual property and other litigation, risks associated with possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-Q for the most recent fiscal quarter ended April 30, 2011. This documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site.Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
AgendaWhat is Continuous Integration and why do I need it?How do I set it up?How do I extend it to meet my needs in the future?
QuestionAre you using a form of source control such as Subversion, CVS, Perforce etc?
Humans are not good at boring tasks
Running tests is boringSo Running tests manually is boring and you forget.Tests break and you dont know which change broke what.The longer it takes your to discover a test failure the longer it will take to find the root cause and fix it.So if your too bored to run the tests who will?An Intern?  The pointy haired boss? Or
A Robot!
Think friendly Robot
Not
Your Development Cycle:	Multiple team members check in code to your version control system
Have a robot integrate your teams changes and run your tests to make sure they are compatible.
If they are compatible release the changes to a test org
If they are not compatible and tests fail alert the person who broke the tests and optionally the team. O.K Im interested. 	Most popular Continuous Integration server in use today is called Jenkins.
Open Source with a rich set of plugins available to extend its functionality.
They went with the butler metaphor instead of robots in their Logo but otherwise I recommend itMoving Parts	Source Control Repository (Subversion, CVS, perforce etc)force.com migration toolEmail Notification
Lets go ShoppingWe need to download the following:Java JDK  http://www.oracle.com/technetwork/javaApache Ant http://ant.apache.orgForce.com Migration tool (via the Setup menu)Jenkins http://jenkins-ci.org/
Whats with all this software?You came to the cloud to get away from installing software.  The good news is your actual tests will execute in the cloud using salesforce.com servers for the heavy lifting.No need for a beefy build serverProof: Win XP VM with 1 GB RAM
DEMO 1Configuring Jenkins
Alexis WilliamsSenior Member of Technical Staff
Java Script & VFWho uses Java script in their visual force pages: frameworks, home grown, or combinations?Whos ever had an error in their Java script?How was it found: QA, you, or a customer?
Java Script Testing with YUI TestHandles: dependencies upon page eventsExecution types: synchronous & asynchronous Simulation of actions: mouse & keyboard
YUI Test  Test Case & Test Method
Enter The YUI Tests & Visual ForceHarness the power of YUI Test on a VF page
Selenium to the RescueSelenium IDE  Firefox add on that allows you to easily create, run, & export test cases with test methodsSelenium RC Server  Server that allows you to run your Selenium tests especially once theyve been converted to Java or another language
Selenium IDE
Selenium & Eclipse & Selenium RC ServerCopy & paste the primer code from the IDE
The Whole Enchilada

More Related Content

Continuous Integration In The Cloud Final (1)

  • 1. Continuous Integration in the CloudConference Track: DeveloperJames Hatton & Alexis Williams
  • 2. James HattonSenior Member of Technical Staff
  • 3. Safe HarborSafe harbor statement under the Private Securities Litigation Reform Act of 1995:This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services.The risks and uncertainties referred to above include but are not limited to risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of intellectual property and other litigation, risks associated with possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-Q for the most recent fiscal quarter ended April 30, 2011. This documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site.Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
  • 4. AgendaWhat is Continuous Integration and why do I need it?How do I set it up?How do I extend it to meet my needs in the future?
  • 5. QuestionAre you using a form of source control such as Subversion, CVS, Perforce etc?
  • 6. Humans are not good at boring tasks
  • 7. Running tests is boringSo Running tests manually is boring and you forget.Tests break and you dont know which change broke what.The longer it takes your to discover a test failure the longer it will take to find the root cause and fix it.So if your too bored to run the tests who will?An Intern? The pointy haired boss? Or
  • 10. Not
  • 11. Your Development Cycle: Multiple team members check in code to your version control system
  • 12. Have a robot integrate your teams changes and run your tests to make sure they are compatible.
  • 13. If they are compatible release the changes to a test org
  • 14. If they are not compatible and tests fail alert the person who broke the tests and optionally the team. O.K Im interested. Most popular Continuous Integration server in use today is called Jenkins.
  • 15. Open Source with a rich set of plugins available to extend its functionality.
  • 16. They went with the butler metaphor instead of robots in their Logo but otherwise I recommend itMoving Parts Source Control Repository (Subversion, CVS, perforce etc)force.com migration toolEmail Notification
  • 17. Lets go ShoppingWe need to download the following:Java JDK http://www.oracle.com/technetwork/javaApache Ant http://ant.apache.orgForce.com Migration tool (via the Setup menu)Jenkins http://jenkins-ci.org/
  • 18. Whats with all this software?You came to the cloud to get away from installing software. The good news is your actual tests will execute in the cloud using salesforce.com servers for the heavy lifting.No need for a beefy build serverProof: Win XP VM with 1 GB RAM
  • 20. Alexis WilliamsSenior Member of Technical Staff
  • 21. Java Script & VFWho uses Java script in their visual force pages: frameworks, home grown, or combinations?Whos ever had an error in their Java script?How was it found: QA, you, or a customer?
  • 22. Java Script Testing with YUI TestHandles: dependencies upon page eventsExecution types: synchronous & asynchronous Simulation of actions: mouse & keyboard
  • 23. YUI Test Test Case & Test Method
  • 24. Enter The YUI Tests & Visual ForceHarness the power of YUI Test on a VF page
  • 25. Selenium to the RescueSelenium IDE Firefox add on that allows you to easily create, run, & export test cases with test methodsSelenium RC Server Server that allows you to run your Selenium tests especially once theyve been converted to Java or another language
  • 27. Selenium & Eclipse & Selenium RC ServerCopy & paste the primer code from the IDE
  • 29. DEMO 2Jenkins AdvancedYUI TestsSelenium (IDE / RC)Ant
  • 31. Questions?Now or on the Chatter Feed

Editor's Notes

  1. Any purchase decisions customer make should be made based on currently available technology. Please visit our website sto review our Safe Harbor statement in detail.