Following are my top three Salesforce.com test platform limitations.
1. Cannot remove/revalidate page messages in same test Method :
Handling the error messages and exceptions and then displaying users with the user friendly error message is one of the important aspect of your visualforce page. One of the basic flow you want to test is the behaviour of your visualforce page to display the error messages and on correcting the inputs users are allowed to proceed to next screen or step. This scenario cannot be tested in a single test method. Salesforce.com has this limitation as in a test method when you add error messages in the page you won't be able to remove/revalidate the messages even after updating the input values.
2. Email Templates in your organisation are visible to test methods even after (@seeAllData=false) :
Salesforce cannot isolate/hide Email Templates if present in your organisation. Consider you writing a test scenario where user will be presented with some predefined email templates based on some user field. As best practice even though you write your test methods in isolation using @SeeAllData=false You will see the existing Email Templates being visible in your test method.
3. You cannot created Email Template And Document Folders in a Test method :
You cannot create Document/Email Template Folders in a test method. You have to relay on the Salesforce Environment to make sure you create at least one Folder manually for your test methods to test the Email Template or document related scenarios through Test Classes.
1. Cannot remove/revalidate page messages in same test Method :
Handling the error messages and exceptions and then displaying users with the user friendly error message is one of the important aspect of your visualforce page. One of the basic flow you want to test is the behaviour of your visualforce page to display the error messages and on correcting the inputs users are allowed to proceed to next screen or step. This scenario cannot be tested in a single test method. Salesforce.com has this limitation as in a test method when you add error messages in the page you won't be able to remove/revalidate the messages even after updating the input values.
2. Email Templates in your organisation are visible to test methods even after (@seeAllData=false) :
Salesforce cannot isolate/hide Email Templates if present in your organisation. Consider you writing a test scenario where user will be presented with some predefined email templates based on some user field. As best practice even though you write your test methods in isolation using @SeeAllData=false You will see the existing Email Templates being visible in your test method.
3. You cannot created Email Template And Document Folders in a Test method :
You cannot create Document/Email Template Folders in a test method. You have to relay on the Salesforce Environment to make sure you create at least one Folder manually for your test methods to test the Email Template or document related scenarios through Test Classes.