Package com.canoo.webtest.engine

Examples of com.canoo.webtest.engine.StepExecutionException


    else if (elt instanceof HtmlSelect)
    {
      select = (HtmlSelect) elt;
      // if htmlId or xpath specified, we know now first that text, value or optionIndex is needed
      if (getText() == null && getOptionIndex() == null && getValue() == null)
        throw new StepExecutionException(MESSAGE_MISSING_OPTION_IDENTIFIER, this);
      option = findMatchingOption(select);
    }
    else
    {
      throw new StepFailedException("Found " + elt.getTagName() +
View Full Code Here


  protected void verifyParameters() {
    super.verifyParameters();
    fCount = ConversionUtil.convertToIntOrReject("Retry Count", getMaxcount(), this);
    if (fCount < 0) {
      throw new StepExecutionException("Retry count must be set and greater than or equal to 0!", this);
    }
  }
View Full Code Here

      final String name = tabPermissions[i];
      final PDFEncryptionPermission pdfPermission = PDFEncryptionPermission.get(name);
      if (pdfPermission != null)
        fillIn.add(pdfPermission);
      else
        throw new StepExecutionException("Unknown PDF permission: \"" + name + "\"", this);
    }
  }
View Full Code Here

      catch (final Exception e)
      {
        if (e instanceof StepFailedException || e instanceof StepExecutionException)
          throw e;
        else
          throw new StepExecutionException("Error during PDF access", this, e);
      }
    }
View Full Code Here

        checkFormat("type", getType(), ExcelCellUtils.getCellType(excelCell == null ? HSSFCell.CELL_TYPE_BLANK : excelCell.getCellType()));
        if (excelCell == null) {
            if (cellNotRequired()) {
                return;
            } else {
                throw new StepExecutionException("Can't find cell for " + getCellReferenceStr(), this);
            }
        }
        final HSSFCellStyle cellStyle = excelCell.getCellStyle();
        checkFormat("format", getFormat(), getExcelWorkbook().createDataFormat().getFormat(cellStyle.getDataFormat()));
        checkFormat("align", getAlign(), ExcelCellUtils.getAlignmentString(cellStyle.getAlignment()));
View Full Code Here

        try {
            canonicalPath = file.getCanonicalPath();
            inputStream = new FileInputStream(file);
            result = IOUtils.toString(inputStream);
        } catch (IOException e) {
            throw new StepExecutionException("Could not find/read \"" + canonicalPath + "\".", step);
        } finally {
            IOUtils.closeQuietly(inputStream);
        }
        return result;
    }
View Full Code Here

                                 break;
                            }
                            i++;
                        }
                        if (i == SIDES.length) {
                            throw new StepExecutionException("Border side '" + side + "' unknown.  Specify one of top, down, left right.", this);
                        }
                    }
                } else {
                    for(int i = 0; i < SIDES.length; i++) {
                        result[i] = s;
View Full Code Here

        try {
            canonicalPath = file.getCanonicalPath();
            inputStream = new FileInputStream(file);
            result = IOUtils.toByteArray(inputStream);
        } catch (IOException e) {
            throw new StepExecutionException("Could not find/read \"" + canonicalPath + "\".", step);
        } finally {
            IOUtils.closeQuietly(inputStream);
        }
        return result;
    }
View Full Code Here

        try {
            canonicalPath = file.getCanonicalPath();
            outputStream = new FileOutputStream(file);
            IOUtils.write(content, outputStream);
        } catch (IOException e) {
            throw new StepExecutionException("Could not find/write \"" + canonicalPath + "\".", step);
        } finally {
            IOUtils.closeQuietly(outputStream);
        }
    }
View Full Code Here

        try {
            canonicalPath = destfile.getCanonicalPath();
            outputStream = new FileOutputStream(destfile);
            IOUtils.copy(inputResponse.getContentAsStream(), outputStream);
        } catch (IOException e) {
            throw new StepExecutionException("Could not find/write \"" + canonicalPath + "\".", step);
        } finally {
            IOUtils.closeQuietly(outputStream);
        }
    }
View Full Code Here

TOP

Related Classes of com.canoo.webtest.engine.StepExecutionException

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.