use of cucumber.api.java.en.When in project data-prep by Talend.
the class DatasetStep method givenIUpdateTheDatasetNamedWithData.
//
@When("^I update the dataset named \"(.*)\" with data \"(.*)\"$")
public void givenIUpdateTheDatasetNamedWithData(String datasetName, String fileName) throws Throwable {
String suffixedDatasetName = suffixName(datasetName);
LOGGER.debug("I update the dataset named {} with data {}.", suffixedDatasetName, fileName);
String datasetId = context.getDatasetId(suffixedDatasetName);
Response response = api.updateDataset(fileName, suffixedDatasetName, datasetId);
response.then().statusCode(200);
}
use of cucumber.api.java.en.When in project activityinfo by bedatadriven.
the class AnalysisSteps method I_save_the_report_as.
@When("^I save the report as \"([^\"]*)\"$")
public void I_save_the_report_as(String reportName) throws Throwable {
UiApplicationDriver ui = (UiApplicationDriver) driver;
PivotTableEditor editor = (PivotTableEditor) ui.getCurrentPage();
editor.reportBar().rename(aliasTable.createAlias(reportName));
editor.reportBar().save();
currentReport = reportName;
}
use of cucumber.api.java.en.When in project activityinfo by bedatadriven.
the class AnalysisSteps method I_share_the_report_with_users_of_the_database.
@When("^I share the report with users of the \"([^\"]*)\" database$")
public void I_share_the_report_with_users_of_the_database(String databaseName) throws Throwable {
UiApplicationDriver ui = (UiApplicationDriver) driver;
PivotTableEditor editor = (PivotTableEditor) ui.getCurrentPage();
editor.reportBar().share().shareWith(aliasTable.getAlias(databaseName), true).ok();
}
use of cucumber.api.java.en.When in project activityinfo by bedatadriven.
the class JsonApiSteps method user_executes_the_command.
@When("([^ ]+) executes the command:$")
public void user_executes_the_command(String accountEmail, String requestBody) throws Throwable {
UserAccount user = accounts.ensureAccountExists(accountEmail);
execute(user, requestBody);
}
use of cucumber.api.java.en.When in project activityinfo by bedatadriven.
the class LoginSteps method I_login_as_with_my_password.
@When("^I login as \"([^\"]*)\" with my correct password$")
public void I_login_as_with_my_password(String email) throws Throwable {
UserAccount account = accounts.ensureAccountExists(email);
logoutIfloggedIn();
loginPage.navigateTo().loginAs(account);
}
Aggregations