Codota Logo
HttpRequestFacade.initNewSpecification
Code IndexAdd Codota to your IDE (free)

How to use
initNewSpecification
method
in
lv.ctco.cukes.http.facade.HttpRequestFacade

Best Java code snippets using lv.ctco.cukes.http.facade.HttpRequestFacade.initNewSpecification (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: ctco/cukes

@Inject
public HttpRequestFacade(GlobalWorldFacade world, RestAssuredConfiguration restConfig) {
  this.world = world;
  this.restConfig = restConfig;
  initNewSpecification();
}
origin: lv.ctco.cukes/cukes-http

@Inject
public HttpRequestFacade(GlobalWorldFacade world, RestAssuredConfiguration restConfig) {
  this.world = world;
  this.restConfig = restConfig;
  initNewSpecification();
}
origin: lv.ctco.cukes/cukes-http

  @After
  public void afterScenario() {
    requestFacade.initNewSpecification();
  }
}
origin: ctco/cukes

  @After
  public void afterScenario() {
    requestFacade.initNewSpecification();
  }
}
origin: ctco/cukes

@Before
public void beforeLoadRunnerScenario() {
  boolean filterEnabled = world.getBoolean(CukesOptions.LOADRUNNER_FILTER_BLOCKS_REQUESTS);
  if (filterEnabled) {
    requestFacade.initNewSpecification();
  }
}
origin: lv.ctco.cukes/cukes-http

public void doRequest(String httpMethod, final String url) throws Exception {
  final HttpMethod method = HttpMethod.parse(httpMethod);
  // TODO: Should be refactored into CukesHttpPlugin
  boolean filterEnabled = world.getBoolean(CukesOptions.LOADRUNNER_FILTER_BLOCKS_REQUESTS);
  AwaitCondition awaitCondition = specification.awaitCondition();
  try {
    if (awaitCondition != null && !filterEnabled) {
      int intervalTime = awaitCondition.getInterval().getValue();
      TimeUnit intervalUnit = awaitCondition.getInterval().getUnitDict().getTimeUnit();
      int waitTime = awaitCondition.getWaitTime().getValue();
      TimeUnit unit = awaitCondition.getWaitTime().getUnitDict().getTimeUnit();
      // TODO Fix
      Awaitility.with().pollInterval(intervalTime, intervalUnit)
        .await()
        .atMost(waitTime, unit)
        .until(doRequest(url, method), new AwaitConditionMatcher(awaitCondition));
    } else {
      doRequest(url, method).call();
    }
  } catch (RuntimeException e) {
    if (!expectException) {
      throw e;
    }
    exception = e;
  }
  specification.initNewSpecification();
}
origin: ctco/cukes

public void doRequest(String httpMethod, final String url) throws Exception {
  final HttpMethod method = HttpMethod.parse(httpMethod);
  // TODO: Should be refactored into CukesHttpPlugin
  boolean filterEnabled = world.getBoolean(CukesOptions.LOADRUNNER_FILTER_BLOCKS_REQUESTS);
  AwaitCondition awaitCondition = specification.awaitCondition();
  try {
    if (awaitCondition != null && !filterEnabled) {
      int intervalTime = awaitCondition.getInterval().getValue();
      TimeUnit intervalUnit = awaitCondition.getInterval().getUnitDict().getTimeUnit();
      int waitTime = awaitCondition.getWaitTime().getValue();
      TimeUnit unit = awaitCondition.getWaitTime().getUnitDict().getTimeUnit();
      // TODO Fix
      Awaitility.with().pollInterval(intervalTime, intervalUnit)
        .await()
        .atMost(waitTime, unit)
        .until(doRequest(url, method), new AwaitConditionMatcher(awaitCondition));
    } else {
      doRequest(url, method).call();
    }
  } catch (RuntimeException e) {
    if (!expectException) {
      throw e;
    }
    exception = e;
  }
  specification.initNewSpecification();
}
lv.ctco.cukes.http.facadeHttpRequestFacadeinitNewSpecification

Popular methods of HttpRequestFacade

  • value
  • accept
  • authenticationType
  • contentType
  • authentication
  • awaitCondition
  • baseUri
  • basicAuthentication
  • cookie
  • header
  • onCreate
  • param
  • onCreate,
  • param,
  • proxy,
  • queryParam,
  • sessionId,
  • shouldWaitWithIntervalUntilHeaderEqualToValue,
  • shouldWaitWithIntervalUntilPropertyEqualToValue,
  • shouldWaitWithIntervalUntilStatusCodeReceived

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • startActivity (Activity)
  • orElseThrow (Optional)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Table (org.hibernate.mapping)
    A relational table
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