The tag has no wiki summary.

learn more… | top users | synonyms

7
votes
1answer
500 views

How to reduce the test class execution time while deploying?

I have optimized almost all my test classes but the "Run All Tests" execution time is still not reduced. I ran the tests in my full copy sandbox and it took 28 minutes. There are about 464 test ...
6
votes
2answers
66 views

Can I create a reusable class that creates opportunity records?

I have multiple Test classes that has duplicate code. One of the methods is to create opportunity records. Can I create a separate class that does this by itself and reference it from the Test ...
5
votes
1answer
119 views

Testing Errors in Web Service Callouts

I am testing a callout to a third party web service as documented here: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_callouts_wsdl2apex_testing.htm Works great - but I can't see ...
4
votes
2answers
179 views

Help with test coverage

I was wondering if someone would be able to help me create a test class for the following code as I am programmatically challenged :) any help would be greatly appreciated!!! Thanks in advance!!! ...
4
votes
2answers
207 views

No longer possible to mix testMethods in classes?

All of a sudden I am unable to call methods in any classes which are marked with @IsTest. The only thing I changed was all my *-meta.xml files (blindly) from ApiVersion 25/26 to 27. Until now all my ...
4
votes
1answer
49 views

Is a test method isolated from effects of other test methods

Suppose I have test class TestClassName with two test methods: @isTest private class TestClassName { static testMethod void testMethodName() { // DML to insert data } static ...
4
votes
1answer
169 views

REQUIRED_FIELD_MISSING, Required fields are missing: [Name]: [Name]

when i trying to insert opportunity in my testclass i am getting an error Test_opportunityTrigger.Test_opportunityTrigger: line 24, column 1 22:28:17.312 ...
3
votes
1answer
62 views

How to I get a test class working for a standardsetcontroller that bases off one record

I have a difficult issue because I have essentially a standardcontroller that runs off the current opportunity but it needs to be used via a relatedlist button on a custom object so it has to be a ...
3
votes
1answer
79 views

Test class is not visible. Can I not call a test class from a separate test class?

Hello and thank you for taking the time to read my question. I am getting near the end of finally testing my new trigger, and started to clean up my code. I decided(as recommended by others in this ...
3
votes
1answer
160 views

Where can I read the debug output of test classes

Suppose I have a test class TestClassName. @isTest private class TestClassName { static testMethod void testMethodName() { System.debug('My debug statement'); System.assertEquals(1, ...
3
votes
1answer
30 views

Help with PostInstall Test Method Assert

I'm having trouble adding an Assert to the Test Method in my PostInstall Email Class. Can anyone point me to a resource or identify where I'm going wrong in my code? Thanks! global class ...
3
votes
1answer
60 views

How to view the detailed debug log of the change set validation in production

I pushed a changeset from stage (sandbox) to production. Everything worked fine in stage but in production it didnt. It just says "Test Coverage of Selected Apex Trigger is 0%, at least 1% test ...
2
votes
3answers
40 views

Where is the documentation for the Page keyword?

In the documentation for testing controllers and extensions, there's a statement that references a Page object, but I've been unable to find where this is located elsewhere in the documentation. Where ...
2
votes
2answers
62 views

Testing Apex Classes created by JSONtoApex

I'm using the json2apex (http://json2apex.herokuapp.com/) function to build a class to I can deserialize the JSON created by this call: http://services.pbs.org/callsigns/zip/77050.json It works ...
2
votes
1answer
106 views

Weird issue with inner class not being covered via Test Class?

I have a test class that is basically covering a class which has structure like public class classA { public class classB implements Triggers.Handler { public void handle(){ ...

1 2
15 30 50 per page