Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
insert opp; 行在哪里?没有机会,没有什么可以循环的。
insert opp;
在单元测试中,OpportunityHistory 表将为空白。您可能被迫在测试中使用 seeAllData=true 或使用 https:// salesforce.stackexchange.com/q/4007/799
seeAllData=true
Where's the insert opp; line? There are no opportunities, nothing to loop over.
And in unit test the OpportunityHistory table will be blank. You might be forced to use seeAllData=true in the test or use tricks such as https://salesforce.stackexchange.com/q/4007/799
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
insert opp;
行在哪里?没有机会,没有什么可以循环的。在单元测试中,OpportunityHistory 表将为空白。您可能被迫在测试中使用
seeAllData=true
或使用 https:// salesforce.stackexchange.com/q/4007/799Where's the
insert opp;
line? There are no opportunities, nothing to loop over.And in unit test the OpportunityHistory table will be blank. You might be forced to use
seeAllData=true
in the test or use tricks such as https://salesforce.stackexchange.com/q/4007/799