You need to sign in to do that
Don't have an account?
LiorG
Programmatically adding a product to an opportunity
I'm trying to build a test class for a class that modifies the price of a product on an opportunity. This requires programmatically adding a product to an opportunity I made in my test class. I made the opportunity, but I don't know how to add a product to it.
Check out this link. it may help
http://boards.developerforce.com/t5/Apex-Code-Development/Writing-test-code-for-a-trigger/m-p/419257#M75841