Search in sources :

Example 1 with TREE

use of com.insightfullogic.honest_profiler.ports.javafx.ViewType.TREE in project honest-profiler by jvm-profiling-tools.

the class TreeViewQuickFilterTest method testTreeQuickFilterScenario.

// Actual Test Method
@Test
public void testTreeQuickFilterScenario() {
    FxRobot robot = new FxRobot();
    newProfileTab(robot, app(), 0, scenario.getName(), scenario, LOG);
    selectView(robot, TREE);
    focusOn(robot, "#quickFilterText", "#tree");
    robot.write("ba");
    clickQuickFilterButton(robot, "#tree");
    checkResult(robot, keyFlt(s -> s.contains("ba")));
    selectView(robot, TREE);
    focusOn(robot, "#quickFilterText", "#tree");
    robot.type(BACK_SPACE, BACK_SPACE, ENTER);
    checkResult(robot);
}
Also used : ThreadGrouping(com.insightfullogic.honest_profiler.core.aggregation.grouping.ThreadGrouping) AbstractJavaFxTest(com.insightfullogic.honest_profiler.ports.javafx.framework.AbstractJavaFxTest) HPFXUtil.clickExpandAll(com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.clickExpandAll) BACK_SPACE(javafx.scene.input.KeyCode.BACK_SPACE) HPFXUtil.focusOn(com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.focusOn) Node(com.insightfullogic.honest_profiler.core.aggregation.result.straight.Node) RunWith(org.junit.runner.RunWith) Parameters(org.junit.runners.Parameterized.Parameters) HPFXUtil.clickQuickFilterButton(com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.clickQuickFilterButton) ParameterUtil.getScenarios(com.insightfullogic.honest_profiler.framework.ParameterUtil.getScenarios) LOG(com.insightfullogic.honest_profiler.ports.javafx.model.ProfileContext.ProfileMode.LOG) TreeTableView(javafx.scene.control.TreeTableView) HPFXUtil.getTreeTableView(com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.getTreeTableView) Arrays.asList(java.util.Arrays.asList) ScenarioStraightFilter.keyFlt(com.insightfullogic.honest_profiler.framework.scenario.ScenarioStraightFilter.keyFlt) FxRobot(org.testfx.api.FxRobot) HPFXUtil.selectThreadGrouping(com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.selectThreadGrouping) FrameGrouping(com.insightfullogic.honest_profiler.core.aggregation.grouping.FrameGrouping) Parameterized(org.junit.runners.Parameterized) HPFXUtil.newProfileTab(com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.newProfileTab) TREE(com.insightfullogic.honest_profiler.ports.javafx.ViewType.TREE) HPFXUtil.selectFrameGrouping(com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.selectFrameGrouping) Collection(java.util.Collection) Test(org.junit.Test) SimplifiedLogScenario(com.insightfullogic.honest_profiler.framework.scenario.SimplifiedLogScenario) HPFXUtil.selectView(com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.selectView) TreeTableViewCheckAdapter(com.insightfullogic.honest_profiler.framework.checker.TreeTableViewCheckAdapter) ENTER(javafx.scene.input.KeyCode.ENTER) Ignore(org.junit.Ignore) ScenarioStraightFilter(com.insightfullogic.honest_profiler.framework.scenario.ScenarioStraightFilter) FxRobot(org.testfx.api.FxRobot) AbstractJavaFxTest(com.insightfullogic.honest_profiler.ports.javafx.framework.AbstractJavaFxTest) Test(org.junit.Test)

Aggregations

FrameGrouping (com.insightfullogic.honest_profiler.core.aggregation.grouping.FrameGrouping)1 ThreadGrouping (com.insightfullogic.honest_profiler.core.aggregation.grouping.ThreadGrouping)1 Node (com.insightfullogic.honest_profiler.core.aggregation.result.straight.Node)1 ParameterUtil.getScenarios (com.insightfullogic.honest_profiler.framework.ParameterUtil.getScenarios)1 TreeTableViewCheckAdapter (com.insightfullogic.honest_profiler.framework.checker.TreeTableViewCheckAdapter)1 ScenarioStraightFilter (com.insightfullogic.honest_profiler.framework.scenario.ScenarioStraightFilter)1 ScenarioStraightFilter.keyFlt (com.insightfullogic.honest_profiler.framework.scenario.ScenarioStraightFilter.keyFlt)1 SimplifiedLogScenario (com.insightfullogic.honest_profiler.framework.scenario.SimplifiedLogScenario)1 TREE (com.insightfullogic.honest_profiler.ports.javafx.ViewType.TREE)1 AbstractJavaFxTest (com.insightfullogic.honest_profiler.ports.javafx.framework.AbstractJavaFxTest)1 HPFXUtil.clickExpandAll (com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.clickExpandAll)1 HPFXUtil.clickQuickFilterButton (com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.clickQuickFilterButton)1 HPFXUtil.focusOn (com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.focusOn)1 HPFXUtil.getTreeTableView (com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.getTreeTableView)1 HPFXUtil.newProfileTab (com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.newProfileTab)1 HPFXUtil.selectFrameGrouping (com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.selectFrameGrouping)1 HPFXUtil.selectThreadGrouping (com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.selectThreadGrouping)1 HPFXUtil.selectView (com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.selectView)1 LOG (com.insightfullogic.honest_profiler.ports.javafx.model.ProfileContext.ProfileMode.LOG)1 Arrays.asList (java.util.Arrays.asList)1