Rspec通过mTurk测试实时结果 [英] Rspec Testing of real time results through mTurk

查看:107
本文介绍了Rspec通过mTurk测试实时结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过Rspec测试代码在mTurk上创建点击,但同时我需要测试必须从mTurk发回的结果。为了节省每次测试的复杂性测试,我使用VCR将录制的HTTP请求录制在录像带中。我如何实现这个测试?

I am creating hits at mTurk through Rspec test code but at the same time i need to test the results which must be send back from mTurk. In order to save complexity testing for every test i'm using VCR to record the HTTP Requests in a cassette. How can i implement this test??

推荐答案

嗯,我做了一些破解,我用调试器来保存我的rspec测试,直到结果从mTurk返回,然后存储在VCR中。所以我必须做一次这种有点破解,然后在那之后VCR为我工作

well i did some hack for that, i used debugger to hold my rspec test until results comes back from mTurk and then it get stored in VCR. so i have to do this kinda hack once and then after that VCR works for me

这篇关于Rspec通过mTurk测试实时结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆