This repository has been archived by the owner on Nov 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from sbtqa/support-new-version-qutils
Support new version qutils
- Loading branch information
Showing
4 changed files
with
101 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
src/main/java/ru/sbtqa/tag/apifactory/stepdefs/en/StepDefs.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package ru.sbtqa.tag.apifactory.stepdefs.en; | ||
|
||
import cucumber.api.DataTable; | ||
import cucumber.api.java.en.And; | ||
import ru.sbtqa.tag.apifactory.exception.ApiException; | ||
import ru.sbtqa.tag.apifactory.stepdefs.GenericStepDefs; | ||
|
||
|
||
public class StepDefs extends GenericStepDefs { | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
@Override | ||
@And("^user sends request (?:for|to|about) \\((.*?)\\)$") | ||
public void userSendRequestNoParams(String action) throws ApiException { | ||
super.userSendRequestNoParams(action); | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
@Override | ||
@And("^user sends request (?:for|to|about) \\((.*?)\\) with parameters:?$") | ||
public void userSendRequestTableParam(String action, DataTable dataTable) throws ApiException { | ||
super.userSendRequestTableParam(action, dataTable); | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
@Override | ||
@And("^system returns \"([^\"]*)\"$") | ||
public void userValidate(String rule) throws ApiException { | ||
super.userValidate(rule); | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
@Override | ||
@And("^system returns \"([^\"]*)\" with parameters:?$") | ||
public void userValidateTable(String rule, DataTable dataTable) throws ApiException { | ||
super.userValidateTable(rule, dataTable); | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
src/main/java/ru/sbtqa/tag/apifactory/stepdefs/ru/StepDefs.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package ru.sbtqa.tag.apifactory.stepdefs.ru; | ||
|
||
import cucumber.api.DataTable; | ||
import cucumber.api.java.bg.И; | ||
import ru.sbtqa.tag.apifactory.exception.ApiException; | ||
import ru.sbtqa.tag.apifactory.stepdefs.GenericStepDefs; | ||
|
||
|
||
public class StepDefs extends GenericStepDefs { | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
@Override | ||
@И("^(?:пользователь |он |)отправляет запрос \\((.*?)\\)$") | ||
public void userSendRequestNoParams(String action) throws ApiException { | ||
super.userSendRequestNoParams(action); | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
@Override | ||
@И("^(?:пользователь |он |)отправляет запрос \\((.*?)\\) с параметрами:?$") | ||
public void userSendRequestTableParam(String action, DataTable dataTable) throws ApiException { | ||
super.userSendRequestTableParam(action, dataTable); | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
@Override | ||
@И("^система возвращает ответ \"([^\"]*)\"$") | ||
public void userValidate(String rule) throws ApiException { | ||
super.userValidate(rule); | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
@Override | ||
@И("^система возвращает ответ \"([^\"]*)\" с параметрами:?$") | ||
public void userValidateTable(String rule, DataTable dataTable) throws ApiException { | ||
super.userValidateTable(rule, dataTable); | ||
} | ||
} |