- private static void testEventsTable(String editorName) {
- SWTBotEditor editor = SWTBotUtils.activeEventsEditor(fBot, editorName);
- fBot.waitUntil(ConditionHelpers.numberOfEventsInTrace(TmfTraceManager.getInstance().getActiveTrace(), CUSTOM_TEXT_LOG.getNbEvents()));
-
- SWTBotTable table = editor.bot().table();
- fBot.waitUntil(new DefaultCondition() {
- @Override
- public boolean test() throws Exception {
- return table.rowCount() > 1;
- }
-
- @Override
- public String getFailureMessage() {
- return "No items in table";
- }
- });
- // Select first event (skip filter/search row)
- table.getTableItem(1).select();
-
- editor.bot().waitUntil(new DefaultCondition() {
- @Override
- public boolean test() throws Exception {
- return table.selection().rowCount() == 1 && table.selection().get(0).toString().contains(CUSTOM_TEXT_LOG.getFirstEventTimestamp());
- }
-
- @Override
- public String getFailureMessage() {
- return "First event not selected";
- }
- });
- }
-