public class DBBaseStepDefinition extends Object
| Constructor and Description |
|---|
DBBaseStepDefinition() |
| Modifier and Type | Method and Description |
|---|---|
void |
before(io.cucumber.java.Scenario scenario)
Before.
|
void |
dummyGiven(String dummy)
given sql.
|
void |
insertSql(String dummy,
String resource,
List<String> sqls)
Insert sql.
|
static void |
loadAllDataSource() |
void |
modifyBooleanVariable(String condition)
perform the skip scenario
|
void |
select(String dummy1,
String dummy,
String resource,
List<String> selectSql)
SELECT.
|
void |
storeSqlResponseAskey(String responseKey,
String key) |
void |
verify(String dummy1,
String dummy,
String resource,
List<String> selectSql)
Verify.
|
public static void loadAllDataSource()
public void before(io.cucumber.java.Scenario scenario)
scenario - the scenario@Given(value="As a user perform sql (.*) action$") public void dummyGiven(String dummy) throws Exception
dummy - the dummyException - the exception@Given(value="Execute DDL for the given sql (.*) on (.*)$") @Given(value="Execute UPDATE for the given sql (.*) on (.*)$") @Given(value="Execute DELETE for the given sql (.*) on (.*)$") @Given(value="Execute INSERT for the given sql (.*) on (.*)$") public void insertSql(String dummy, String resource, List<String> sqls) throws Exception
dummy - the dummyresource - the resourcesqls - the sqlsException - the exception@Given(value="^perform-db the (.*) condition to skip scenario") public void modifyBooleanVariable(String condition) throws Exception
condition - the response value excel basedIOException - the io exceptionException@Given(value="^Store-sql\'s (.*) value of the key as (.*)") public void storeSqlResponseAskey(String responseKey, String key) throws org.json.JSONException
org.json.JSONException@Given(value="Verify (.*) with the given sql (.*) on (.*)$") public void verify(String dummy1, String dummy, String resource, List<String> selectSql) throws Exception
dummy1 - the dummy 1dummy - the dummyresource - the resourceselectSql - the select sqlException - the exception@Given(value="Select (.*) with the given sql (.*) on (.*)$") public void select(String dummy1, String dummy, String resource, List<String> selectSql) throws Exception
dummy1 - the dummy 1dummy - the dummyresource - the resourceselectSql - the select sqlException - the exceptionCopyright © 2021. All rights reserved.