-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
Hello, getting this error while running tests.
TestDataFactory.TestDataFactoryException: Unable to insert "QuoteLineItem.product2" records:
DUPLICATE_VALUE: duplicate value found: <unknown> duplicates value on record with id: <unknown> [Name=test0].
Seems 'TestDataFactory' doesn't count sames object number, and if creating record which depends on object 'X' and object 'Y' which depends also on 'X', two objects of 'X' will be created, but with same 'Name', that is causing my error.
It simply solved by specifying the name for one of 'X' objects, so another 'X' is default 'test0'.
It would be great to make the counter, to prevent this error.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels