如何使用黄瓜框架

时间:2018-11-02 04:28:15

标签: cucumber cucumber-java

我们有一个api服务器(服务A),它接受HTTP发布请求并将数据(URL)写入内存队列中,然后向客户端返回200个响应。同时,辅助线程异步地从队列中读取该数据(URL)并对该URL进行调用。

我们现在需要为此服务添加功能测试用例,而我遇到了Cucumber框架。由于我是功能测试用例领域的新手,而且我还是黄瓜,所以我有一个非常基本的问题-

1]我想知道在这种情况下进行功能测试的正确方法。    我有以下2种选择-

a] Call api service A and examine the response to determine success.
b] Call api service A and examine the response to determine
   success.Also after some sleep , verify whether the worker drained
   the url from the queue made the actual call or not.

为了实现选项2],我想知道如何使用黄瓜框架进行此操作。

0 个答案:

没有答案