imchikachirag / force-dot-com-esapi

Automatically exported from code.google.com/p/force-dot-com-esapi
0 stars 0 forks source link

Limit issues because of duplicate data entry #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Issue is not related to main code but test classes.
In the test classes methods (like testAccessController.testLimits) creates 
contacts in a loop with exact Lastname. This is an extraordinary case for a 
real life scenario.

In some orgs which has duplicate checking apps/codes (like Duplicate Check for 
Salesforce 2.0 by Addressed World) this test class triggers lots of soql to run 
and cause some test cases to fail.

What steps will reproduce the problem?
1. Install the Duplicate Check for Salesforce 2.0 and ESAPI managed in a org
2. run All tests

What is the expected output? What do you see instead?
In these type of test classes Last name string can be changed by adding the 
iteration counter to string as follows

svn/  trunk/ src/ classes/ testAccessController.cls
Line 350: c.LastName = 'ESAPI Test Spu8UY&thuCrUzAPa2ASTaC7rA$Ra3 c limits'+i 

What version of the product are you using? On what operating system?
LAtest Salesforce version

Please provide any additional information below.

Original issue reported on code.google.com by aoz...@avandel.com on 14 May 2015 at 6:33