Top Banner
Spring’16 Simon Lawrence Bristol Developer User Group
18

Spring’16 Developer Highlights

Apr 15, 2017

Download

Technology

Simon Lawrence
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Spring’16 Developer Highlights

Spring’16Simon Lawrence

Bristol Developer User Group

Page 2: Spring’16 Developer Highlights

Time for some new tools!December 17th 2015

Started rolling out pre-releases previews

Including 396 page release notes

January 8th-9th 2016

Sandboxes upgrades

February 5th - February 13th 2016

Production instance upgrades

Page 3: Spring’16 Developer Highlights

My Developer HighlightsSetCreatedDateTest Suites/SlayerGlobal PicklistsAPI Improvements

Page 4: Spring’16 Developer Highlights

Set Created DatePreviously CreatedDate was a read only field

Caused problems when testing logic on the “age” of a record

All test records created within the same fraction of a second

111 votes on IdeasExchange

Page 5: Spring’16 Developer Highlights

Set Created DateNow, you can set CreatedDate to be any date you like on a record

Insert the record, and then call:

Test.setCreatedDate(recordId, createdDatetime);

Page 6: Spring’16 Developer Highlights

Set Created Date

Page 7: Spring’16 Developer Highlights

Test SuitesCreate a suite of commonly run tests

From the Developer console Test > Suite Manager > Edit Suite

Up to 200 test classes

Page 8: Spring’16 Developer Highlights

Test Suites

Page 9: Spring’16 Developer Highlights

Test SlayerTell Salesforce to kill test runs that are failing miserably

Set a threshold in the Developer consoleThis is the number of tests that can fail before the test is halted

Enter -1 to disable this feature, or leave it blank

The range of values is 0 - 1,000,000

Remember to set it each time you run your tests

Page 10: Spring’16 Developer Highlights

Test SlayerWhen starting a new Test Run - Click “Settings”

Page 11: Spring’16 Developer Highlights

Global PicklistsReuse a single list of valuesManage recurring picklists in one placeKeep picklist data consistantRestrict ability to create values All users see all available options

Page 12: Spring’16 Developer Highlights

Global Picklists

Page 13: Spring’16 Developer Highlights

Global Picklists

Page 14: Spring’16 Developer Highlights

Global Picklists

Page 15: Spring’16 Developer Highlights

API EnhancementsFormatting for number, date, time, and currency fields in SELECT

clauses

Automatically and actually respect the user’s locale

Test.startTest() and Test.stopTest() now work!

Page 16: Spring’16 Developer Highlights

API EnhancementsFormatting for number, date, time, and currency fields in SELECT

clauses

Automatically and actually respect the user’s locale

Test.startTest() and Test.stopTest() now work!

In Salesforce’s own words

“code enclosed by the Test.startTest() and Test.stopTest() methods now reliably receives its own block of governor limits”

Page 17: Spring’16 Developer Highlights

Time for a quiz!

Page 18: Spring’16 Developer Highlights

Thank you