Examples of BoostedRobot


Examples of net.sf.gluebooster.java.booster.basic.gui.awt.BoostedRobot

  }

  @Test(timeout = 60000)
  public void graphicalTest() throws Exception {
    BoostedRobot robot = new BoostedRobot();
   
    LanguagesBasicDemo application = startDemo();
    ThreadBoostUtils.sleep(2000);
   
    robot.mouseMove(application.getGui().getContainer()/* .getLocation() */);
   
   
    ThreadBoostUtils.sleep(3000);
    application.close();
    ThreadBoostUtils.sleep(1000);
 
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.gui.awt.BoostedRobot

  }

  @Test(timeout = 60000)
  public void graphicalTest() throws Exception {
    BoostedRobot robot = new BoostedRobot();

    SimpleBeanEditor editor = startWithGui();
    ThreadBoostUtils.sleep(2000);

    // TODO do something;
    robot.mouseMove(editor.getContainingFrame());
    ThreadBoostUtils.sleep(1000);
    editor.getContainingFrame().dispose();

  }
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.gui.awt.BoostedRobot

    Assert.assertNotNull(files);
    Assert.assertTrue(files.length > 0);
    copyExampleResultFiles(docuDir);

    File graphScreenshots = createTempDirectory("graph");
    BoostedRobot robot = new BoostedRobot();

    frame.setTitle("step0");
    ThreadBoostUtils.sleep(3000);
    GuiBoostUtils.writeImage(GuiBoostUtils.createScreenshot(frame),
        new File(graphScreenshots, frame.getTitle() + ".png"));

    robot.mouseMove(stepButton);
    ThreadBoostUtils.sleep(3000);
    robot.mouseClick();
    frame.setTitle("step1");
    ThreadBoostUtils.sleep(3000);
    GuiBoostUtils.writeImage(GuiBoostUtils.createScreenshot(frame),
        new File(graphScreenshots, frame.getTitle() + ".png"));

    robot.mouseClick();
    frame.setTitle("step2");
    ThreadBoostUtils.sleep(3000);
    GuiBoostUtils.writeImage(GuiBoostUtils.createScreenshot(frame),
        new File(graphScreenshots, frame.getTitle() + ".png"));

    robot.mouseClick();
    frame.setTitle("step3");
    ThreadBoostUtils.sleep(3000);
    GuiBoostUtils.writeImage(GuiBoostUtils.createScreenshot(frame),
        new File(graphScreenshots, frame.getTitle() + ".png"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.