Package org.netbeans.jemmy

Examples of org.netbeans.jemmy.ActionProducer


     * @param wholeTime a time for the action to be finished.
     * @return an action result.
     */
    protected Object produceTimeRestricted(Action action, final Object param,
             long wholeTime) {
  ActionProducer producer = new ActionProducer(action);
  producer.setOutput(getOutput().createErrorOutput());
  producer.setTimeouts(getTimeouts().cloneThis());
  producer.getTimeouts().setTimeout("ActionProducer.MaxActionTime", wholeTime);
  try {
            Object result = producer.produceAction(param);
            Throwable exception = producer.getException();
            if(exception != null) {
                if(exception instanceof JemmyException) {
                    throw((JemmyException)exception);
                } else {
                    throw(new JemmyException("Exception during " + action.getDescription(),
View Full Code Here


     * @param action an action to execute.
     * @param param an action parameters.
     */
    protected void produceNoBlocking(NoBlockingAction action, Object param) {
  try {
      ActionProducer noBlockingProducer = new ActionProducer(action, false);
      noBlockingProducer.setOutput(output.createErrorOutput());
      noBlockingProducer.setTimeouts(timeouts);
      noBlockingProducer.produceAction(param);
  } catch(InterruptedException e) {
      throw(new JemmyException("Exception during \"" +
             action.getDescription() +
             "\" execution",
             e));
View Full Code Here

     * @param wholeTime a time for the action to be finished.
     * @return an action result.
     */
    protected Object produceTimeRestricted(Action action, final Object param,
             long wholeTime) {
  ActionProducer producer = new ActionProducer(action);
  producer.setOutput(getOutput().createErrorOutput());
  producer.setTimeouts(getTimeouts().cloneThis());
  producer.getTimeouts().setTimeout("ActionProducer.MaxActionTime", wholeTime);
  try {
            Object result = producer.produceAction(param);
            Throwable exception = producer.getException();
            if(exception != null) {
                if(exception instanceof JemmyException) {
                    throw((JemmyException)exception);
                } else {
                    throw(new JemmyException("Exception during " + action.getDescription(),
View Full Code Here

     * @param action an action to execute.
     * @param param an action parameters.
     */
    protected void produceNoBlocking(NoBlockingAction action, Object param) {
  try {
      ActionProducer noBlockingProducer = new ActionProducer(action, false);
      noBlockingProducer.setOutput(output.createErrorOutput());
      noBlockingProducer.setTimeouts(timeouts);
      noBlockingProducer.produceAction(param);
  } catch(InterruptedException e) {
      throw(new JemmyException("Exception during \"" +
             action.getDescription() +
             "\" execution",
             e));
View Full Code Here

TOP

Related Classes of org.netbeans.jemmy.ActionProducer

Copyright © 2018 www.massapicom. 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.