随机回应mockaroo中的错误

时间:2018-06-14 21:44:24

标签: mocking

如何在mockaroo.com中随机生成错误?下面这样的东西不起作用(总是收到401)

if random(0, 2) > 1 then
  status 500
  { message: 'I was told to error' }
else 
  schema "Todos"
  generate 10  
end

0 个答案:

没有答案