Skip to content

Limit issues because of duplicate data entry #12

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions