Skip to main content

Timeline for Need help with my test class

Current License: CC BY-SA 3.0

13 events
when toggle format what by license comment
Jan 20, 2017 at 8:34 vote accept Ruchi
Jan 20, 2017 at 8:28 answer added Novarg timeline score: 0
Jan 20, 2017 at 7:56 history edited Ruchi CC BY-SA 3.0
deleted 14 characters in body
Apr 26, 2016 at 8:55 comment added Keith C You need getInstance('CaseStatusHistoryTrigger') to not return null so it will have to be with the original trigger name. Tests are isolated from list custom settings just as they are isolated from normal SObjects.
Apr 26, 2016 at 7:50 comment added Ruchi @KeithC : Will I have to insert custom setting record with my original trigger name ? Or any dummy name for the record will work ?
Apr 26, 2016 at 7:49 comment added Ruchi @IlyaLepesh : Its TriggerSetting__c only. I had remove the space between the name while creating it.
Apr 26, 2016 at 7:35 comment added Keith C You will need to insert the custom setting instance in your test just as you insert other data such as Account.
Apr 26, 2016 at 7:33 comment added Ilya Lepesh go one page back to Custom Setting Definition, where api name is displayed
Apr 26, 2016 at 7:31 comment added Ilya Lepesh I'm afraid I see space between, but you are using TriggerSetting__c, isnt it Trigger_Setting__c ?
Apr 26, 2016 at 7:29 comment added Ruchi @IlyaLepesh : The records exist in the custom setting. I have added the snapshot of the same. Test class is failing for all the 3 triggers whose records I have created in custom setting.
Apr 26, 2016 at 7:28 history edited Ruchi CC BY-SA 3.0
added 263 characters in body
Apr 26, 2016 at 7:24 comment added Ilya Lepesh seems like record with name CaseStatusHistoryTrigger doesn't exist
Apr 26, 2016 at 7:14 history asked Ruchi CC BY-SA 3.0