11

Test suites is pretty useful when you want to run # number of classes inside your organization. Suppose you have 50 test classes in your org on Opportunity object and every time any developer makes any change in your apex code you want to make sure that test cases are no failing so you manually run every single class by going to Setup-> Apex test ...


5

Can I use a single @testSetup method to set up the test data for all test methods in one Test Suite? No. @testSetup only works on the class it is defined in. As a bonus, you cannot define a test class to be abstract or virtual, which would allow code reuse in multiple classes using nothing more than a simple extends clause. // This code won't compile. This ...


4

Update for Winter `17 Patch 14.2. This appears to be resolved as the coveredLines and uncoveredLines in the response are now in the "urn:tooling.soap.sforce.com" namespace. I suspect this is a bug in the Tooling API that was introduced in Spring '16. If you diff the v36.0 to v37.0 Tooling API WSDL a number of elements changed namespace from tns: (xmlns:...


4

It does take some time and someone has to include the API version into the code as well as the newest version of the API. You can monitor the project here or create your own pull request similar to the one for api 35.0 and submit it.


2

As a confirmation to part of the OPs question, @testSetup does not appear to apply to other test methods within a test suite. Created the following classes, added them to a new test suite, and ran it: @isTest private class TestClass1 { @testSetup static void setup(){ insert new Account(Name = 'Acme, Inc.'); } @isTest static void testA(){...


2

The email that was being sent was based on a VF template with an attachment component whose controller called getContent() on a SF record. The following Critical Update connects the dots: “PageReference getContent() and getContentAsPDF() Methods Behave as Callouts” Critical Update Postponed This update had been activated in this particular sandbox instance,...


2

While testing this morning I discovered that if I removed the personal security token from the credentials object I was passing during authentication I am now able to log straight into Salesforce sandbox and create and process records with my app. Spring 16 must change something in the flow but in reading the release notes I do not see any changes that were ...


2

I came across the same error and managed to get it to work by reducing the batch size in Data Loader down to 1 and the Use Bulk API option checked, not ideal for updating 80k+ records but that's the only way I found.


2

I started encountering this since the release of Spring '16. Weird #Salesforce Apex TypeException where an inner class that extends Exception can't go into a Map of <,Exception> Source The intermittent nature makes it hard to track down. Trying to create a managed package is a bit of a role of the dice. There is now a known issue for it - Collection ...


2

Yes, you can expect the same for Spring '16 as well. If you are confused because you need to pay now for the exam, don't be, because that's normal. You need to pay for every 3rd release exam that you take. Since you got your certification during Spring '15, you will have to pay 100 USD every time you need to take another Spring release (Spring '16, Spring '...


2

No. Salesforce is backwards compatible, so as long as your API number is equal or lower than the latest available in you'll be fine. Keep in mind that the features available for your old API may differ from the ones available in the latest one. While this is usually not a huge deal when upgrading, Things it may sometimes break when you upgrade. For ...


1

How to access Opportunity2.Probability object? Is it a typo? No, they're variable names. It doesn't help that they named the first variable Opportunity, which is likely the source of your confusion. They're talking about a flow with two variables. I created a record from 'execute anonymous window' with percentage field set as 40 and I see it as 40 in ...


1

Finally Fixed this by using a Custom Component instead. Tried reaching out to Salesforce Support and communities. Nothing Helped. Note: This works on Napili Template Summer'16 Version as of now. Dont know if this can be applied to other templates. Create a Custom Lightning component with the links to "Forgot Password" and "Self Registration" Links. ...


1

If all I'm trying to get is the source object (and fields on the source object), it seems I can do that with a custom action, as described here: http://resources.docs.salesforce.com/200/18/en-us/sfdc/pdf/actions_impl_guide.pdf#page=16 To get the object: public getObj(ApexPages.StandardController controller) { parent = controller.getRecord(); ..stuffs.....


1

This was a change made in Winter '16 (v35.0) - Release notes Salesforce Winter ’16 Release Notes. As you found, the DebugLevel is now required and takes precedence over the TraceFlag defined levels. I've just gone with the change and used a DebugLevel that gets inserted/updated (upsert didn't work at the time) before the TraceFlag is created. I haven't ...


1

I posted the same question to the Salesforce Partner Community 'Technical Enablement' Group on the same day... Very soon after Andrew Albert (Salesforce) wrote... The act of the packaging org getting upgraded to the Spring16 release alone won't impact you ability to upgrade/patch your customers. If you upload a new package version (and/or a new patch ...


Only top voted, non community-wiki answers of a minimum length are eligible