Salesforce 测试 Batch时出现的问题

苗小喵 发布于 03/11 16:48
阅读 30
收藏 0

运行Batch的测试类时候出现了一下错误

System.UnexpectedException: No more than one executeBatch can be called from within a test method.  Please make sure the iterable returned from your start method matches the batch size, resulting in one executeBatch invocation.

网上有的方法试了,不管用

求大佬讲解一下,

 这是什么错?应该怎么解决?

加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部