Examples of QTasteException


Examples of com.qspin.qtaste.testsuite.QTasteException

  @Override
  public synchronized int getPid() throws QTasteException {
    if (getStatus() != ProcessStatus.RUNNING)
    {
      throw new QTasteException("Invalide state. Cannot retrieve tha pid of a non running process.");
    }
    if ( mPid == -1 )
      mPid = searchPid();
    return mPid;
  }
View Full Code Here

Examples of com.qspin.qtaste.testsuite.QTasteException

      Robot robot = new Robot();
      BufferedImage image = robot.createScreenCapture(screenRectangle);
      ImageIO.write(image, "png", new File(fileName));
    }
    catch (Exception e) {
      throw new QTasteException("Error in createScreenshot: " + e.getMessage());
    }
  }
View Full Code Here

Examples of com.qspin.qtaste.testsuite.QTasteException

                Object dataObject = inputStream.readObject();
                inputStream.close();
                br.close();
                return dataObject;
            } catch (Exception ex) {
                throw new QTasteException(ex.getMessage());
            }
        }
    }
View Full Code Here

Examples of com.qspin.qtaste.testsuite.QTasteException

  @Override
  public void start() throws QTasteException {
    if (getStatus() != ProcessStatus.READY_TO_START)
    {
      throw new QTasteException("Invalide state. Cannot start a non initialized process.");
    }
    new Thread(new Runnable() {
      @Override
      public void run() {
        try
View Full Code Here

Examples of com.qspin.qtaste.testsuite.QTasteException

  @Override
  public void stop() throws QTasteException {
    if (getStatus() != ProcessStatus.RUNNING)
    {
      throw new QTasteException("Invalide state. Cannot stop a non running process.");
    }
    mCurrentProcess.destroy();
  }
View Full Code Here

Examples of com.qspin.qtaste.testsuite.QTasteException

  @Override
  public int getExitCode() throws QTasteException {
    if ( getStatus() != ProcessStatus.STOPPED )
    {
      throw new QTasteException("Invalide state. The process is not terminated.");
    }
    return mReturnCode;
  }
View Full Code Here

Examples of com.qspin.qtaste.testsuite.QTasteException

  @Override
  public List<String> getStdOut() throws QTasteException {
    if ( getStatus() != ProcessStatus.RUNNING && getStatus() != ProcessStatus.STOPPED )
    {
      throw new QTasteException("Invalide state. The process is not yet started.");
    }
    return mStdLogs.getLogs();
  }
View Full Code Here

Examples of com.qspin.qtaste.testsuite.QTasteException

  @Override
  public List<String> getStdErr() throws QTasteException {
    if ( getStatus() != ProcessStatus.RUNNING && getStatus() != ProcessStatus.STOPPED )
    {
      throw new QTasteException("Invalide state. The process is not yet started.");
    }
    return mErrLogs.getLogs();
  }
View Full Code Here

Examples of com.qspin.qtaste.testsuite.QTasteException

           
            config.setServerURL(new URL("http://" + host + ":" + port));
            client.setConfig(config);
        } catch (MalformedURLException ex) {
            logger.fatal("Cannot connect to http://" + host + ":" + port, ex);
            throw new QTasteException(ex.getMessage(), ex);
        }
    }
View Full Code Here

Examples of com.qspin.qtaste.testsuite.QTasteException

            // check if the component must be loaded
            List<?> list = testbedConfig.configurationsAt("singleton_components." + component);
            if (!list.isEmpty()) {
                Class<?> c = ComponentsLoader.getInstance().getComponentImplementationClass(component);
                if (c == null) {
                    throw new QTasteException("The class implemeting the component " + component + " is not registered in platform selected in the Testbed configuration.");
                }
                Component componentImpl = createComponentInstance(c);
                map.put(component, componentImpl);
                return componentImpl;
            } else {
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.