use of org.activityinfo.test.pageobject.web.reports.PivotTableEditor in project activityinfo by bedatadriven.
the class AnalysisSteps method I_pin_the_report_to_my_dashboard.
@When("^I pin the report to my dashboard$")
public void I_pin_the_report_to_my_dashboard() throws Throwable {
UiApplicationDriver ui = (UiApplicationDriver) driver;
PivotTableEditor editor = (PivotTableEditor) ui.getCurrentPage();
editor.reportBar().pinToDashboard();
}
use of org.activityinfo.test.pageobject.web.reports.PivotTableEditor in project activityinfo by bedatadriven.
the class AnalysisSteps method I_share_the_report_with_users_of_the_database_as_a_default_dashboard_report.
@When("^I share the report with users of the \"([^\"]*)\" database as a default dashboard report$")
public void I_share_the_report_with_users_of_the_database_as_a_default_dashboard_report(String databaseName) throws Throwable {
UiApplicationDriver ui = (UiApplicationDriver) driver;
PivotTableEditor editor = (PivotTableEditor) ui.getCurrentPage();
editor.reportBar().share().putOnDashboard(aliasTable.getAlias(databaseName)).ok();
}
use of org.activityinfo.test.pageobject.web.reports.PivotTableEditor in project activityinfo by bedatadriven.
the class UiApplicationDriver method pivotTable.
@Override
public DataTable pivotTable(List<String> measures, List<String> rowDimensions) {
ensureLoggedIn();
PivotTableEditor pivotTable = applicationPage.navigateToReportsTab().createPivotTable();
currentPage = pivotTable;
for (String measure : measures) {
pivotTable.selectMeasure(aliasTable.getAlias(measure));
}
pivotTable.selectDimensions(deAliasDimension(rowDimensions), Collections.<String>emptyList());
return pivotTable.extractData();
}
use of org.activityinfo.test.pageobject.web.reports.PivotTableEditor in project activityinfo by bedatadriven.
the class UiApplicationDriver method drillDown.
@Override
public DataTable drillDown(String cellValue) {
Preconditions.checkState(currentPage instanceof PivotTableEditor, "No pivot results. Please pivot data first before using drill down.");
PivotTableEditor pivotTable = (PivotTableEditor) currentPage;
DrillDownDialog drillDown = pivotTable.drillDown(cellValue);
DataTable dataTable = drillDown.table().waitUntilReloadedSilently().waitUntilAtLeastOneRowIsLoaded().extractData(false);
drillDown.close();
return dataTable;
}
use of org.activityinfo.test.pageobject.web.reports.PivotTableEditor 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;
}
Aggregations