hello everyone i am having question,in sandbox i am having 80% code coverage for apex class while in production it is having 65% code coverage can anybody please help.Thank You in Advance!
You need to check that in both. Because if the above line is present then the test class will take the data from the sandbox and run based on it. So the code coverage will depend on the data present in it. Please find the below article for same.
Can you check if @seealldata=true is set on the test class.
Thanks,
You need to check that in both. Because if the above line is present then the test class will take the data from the sandbox and run based on it. So the code coverage will depend on the data present in it. Please find the below article for same.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_seealldata_using.htm
If this solution helps, Please mark it as best answer
Thanks,