使用黄瓜与次黄瓜测试互动

时间:2019-07-31 16:10:07

标签: cucumber cucumberjs test-framework

我们遇到的情况是我们有几种产品(前端,应用程序,API ),并且每种产品都已经使用黄瓜进行了测试。 现在,我们想重新使用已经编写的测试一起测试所有产品,因此基本上我们想对前端进行操作,然后在 app

When I create a user X,Y in frontend
Then I login with the user X,Y in the app

在各个子项目中,步骤已经定义并且可以运行,但是我们需要另一个抽象级别,这是否可能是我们的黄瓜或任何其他测试框架,或者我们必须编写自己的实现?

1 个答案:

答案 0 :(得分:0)

Scenario: Register in front end, login via app
  Given I registered in the front end
  When I login via the app
  Then I should be logged into the app