You need to sign in to do that
Don't have an account?
puja
Assert is failed in Production.
Hi,
I have a problem ....
i have a test class in which the Assert is failed in Production when i deploy the code into the production...but it is correct on the Sandbox...............
please help...it's very urgent
Thanks
Puja
try assertnotequals then this will pass na....this is negative testing and later u need to idetify y it is passing in SB not in Prod....check the input data by debugging..
Is your test dependent on data within the org? If so, the data is most likely different in Sandbox then in Production. Solution to this is creating mock data instead of depending on existing data.