Codota Logo
Reportable.getFeatures
Code IndexAdd Codota to your IDE (free)

How to use
getFeatures
method
in
net.masterthought.cucumber.Reportable

Best Java code snippets using net.masterthought.cucumber.Reportable.getFeatures (Showing top 2 results out of 315)

  • Common ways to obtain Reportable
private void myMethod () {
Reportable r =
  • Codota IconReportBuilder reportBuilder;reportBuilder.generateReports()
  • Smart code suggestions by Codota
}
origin: damianszczepanik/cucumber-reporting

/**
 * Adds build into the trends.
 * @param buildNumber number of the build
 * @param reportable stats for the generated report
 */
public void addBuild(String buildNumber, Reportable reportable) {
  buildNumbers = (String[]) ArrayUtils.add(buildNumbers, buildNumber);
  passedFeatures = ArrayUtils.add(passedFeatures, reportable.getPassedFeatures());
  failedFeatures = ArrayUtils.add(failedFeatures, reportable.getFailedFeatures());
  totalFeatures = ArrayUtils.add(totalFeatures, reportable.getFeatures());
  passedScenarios = ArrayUtils.add(passedScenarios, reportable.getPassedScenarios());
  failedScenarios = ArrayUtils.add(failedScenarios, reportable.getFailedScenarios());
  totalScenarios = ArrayUtils.add(totalScenarios, reportable.getScenarios());
  passedSteps = ArrayUtils.add(passedSteps, reportable.getPassedSteps());
  failedSteps = ArrayUtils.add(failedSteps, reportable.getFailedSteps());
  skippedSteps = ArrayUtils.add(skippedSteps, reportable.getSkippedSteps());
  pendingSteps = ArrayUtils.add(pendingSteps, reportable.getPendingSteps());
  undefinedSteps = ArrayUtils.add(undefinedSteps, reportable.getUndefinedSteps());
  totalSteps = ArrayUtils.add(totalSteps, reportable.getSteps());
  durations = ArrayUtils.add(durations, reportable.getDuration());
  // this should be removed later but for now correct features and save valid data
  applyPatchForFeatures();
  if (pendingSteps.length < buildNumbers.length) {
    fillMissingSteps();
  }
  if (durations.length < buildNumbers.length) {
    fillMissingDurations();
  }
}
origin: net.masterthought/cucumber-reporting

/**
 * Adds build into the trends.
 * @param buildNumber number of the build
 * @param reportable stats for the generated report
 */
public void addBuild(String buildNumber, Reportable reportable) {
  buildNumbers = (String[]) ArrayUtils.add(buildNumbers, buildNumber);
  passedFeatures = ArrayUtils.add(passedFeatures, reportable.getPassedFeatures());
  failedFeatures = ArrayUtils.add(failedFeatures, reportable.getFailedFeatures());
  totalFeatures = ArrayUtils.add(totalFeatures, reportable.getFeatures());
  passedScenarios = ArrayUtils.add(passedScenarios, reportable.getPassedScenarios());
  failedScenarios = ArrayUtils.add(failedScenarios, reportable.getFailedScenarios());
  totalScenarios = ArrayUtils.add(totalScenarios, reportable.getScenarios());
  passedSteps = ArrayUtils.add(passedSteps, reportable.getPassedSteps());
  failedSteps = ArrayUtils.add(failedSteps, reportable.getFailedSteps());
  skippedSteps = ArrayUtils.add(skippedSteps, reportable.getSkippedSteps());
  pendingSteps = ArrayUtils.add(pendingSteps, reportable.getPendingSteps());
  undefinedSteps = ArrayUtils.add(undefinedSteps, reportable.getUndefinedSteps());
  totalSteps = ArrayUtils.add(totalSteps, reportable.getSteps());
  durations = ArrayUtils.add(durations, reportable.getDuration());
  // this should be removed later but for now correct features and save valid data
  applyPatchForFeatures();
  if (pendingSteps.length < buildNumbers.length) {
    fillMissingSteps();
  }
  if (durations.length < buildNumbers.length) {
    fillMissingDurations();
  }
}
net.masterthought.cucumberReportablegetFeatures

Javadoc

Returns number of features for this element.

Popular methods of Reportable

  • getFailedSteps
    Returns number of failed steps for this element.
  • getPendingSteps
    Returns number of pending steps for this element.
  • getUndefinedSteps
    Returns number of undefined steps for this element.
  • getFailedFeatures
    Returns number of failed features for this element.
  • getFailedScenarios
    Returns number of failed scenarios for this element.
  • getSkippedSteps
    Returns number of skipped steps for this element.
  • getDuration
    Returns duration as milliseconds for this element.
  • getPassedFeatures
    Returns number of passed features for this element.
  • getPassedScenarios
    Returns number of passed scenarios for this element.
  • getPassedSteps
    Returns number of passed steps for this element.
  • getScenarios
    Returns number of scenarios for this element.
  • getSteps
    Returns number of all steps for this element.
  • getScenarios,
  • getSteps

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JList (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now