You need to sign in to do that
Don't have an account?
Long Truong
Two almost indentical test class, one passed one failed
Someone else created a class and test class that works fine: CRequestForm_SearchController and CRequestForm_SearchController_test.
I made some edits to the class in sandbox, and copied the test class, so now I have a new class and a new test class: TESTCRequestForm_SearchController and TESTCRequestForm_SearchController_test. But I can't push it to production because the code coverage is only 68%. I have mannually tested it as an end-user and it works fine. Can anyone please help?
I made some edits to the class in sandbox, and copied the test class, so now I have a new class and a new test class: TESTCRequestForm_SearchController and TESTCRequestForm_SearchController_test. But I can't push it to production because the code coverage is only 68%. I have mannually tested it as an end-user and it works fine. Can anyone please help?
All Answers
and also replace with
Hope this is helpful.
Class.TESTCRequestForm_SearchController_Test.constructor_Test: line 30, column 1. This is the code at line 30 :
System.DmlException: Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Name]: [Name]