Getting_started

Johan Haleby edited this page Jul 24, 2018 · 18 revisions

Installation

Java DSL

Maven:

<dependency>
      <groupId>org.awaitility</groupId>
      <artifactId>awaitility</artifactId>
      <version>3.1.2</version>
      <scope>test</scope>
</dependency>

Gradle:

testCompile 'org.awaitility:awaitility:3.1.2'

Kotlin DSL

The Kotlin DSL adds some useful extension functions (it's not required to use Awaitility from Kotlin).

Maven:

<dependency>
      <groupId>org.awaitility</groupId>
      <artifactId>awaitility-kotlin</artifactId>
      <version>3.1.2</version>
      <scope>test</scope>
</dependency>

Gradle:

testCompile 'org.awaitility:awaitility-kotlin:3.1.2'

Scala DSL

Maven:

<dependency>
      <groupId>org.awaitility</groupId>
      <artifactId>awaitility-scala</artifactId>
      <version>3.1.2</version>
      <scope>test</scope>
</dependency>

SBT:

val awaitility-scala = "org.awaitility" % "awaitility-scala" % "3.1.2"

Gradle:

testCompile 'org.awaitility:awaitility-scala:3.1.2'

Groovy DSL

Maven:

<dependency>
      <groupId>org.awaitility</groupId>
      <artifactId>awaitility-groovy</artifactId>
      <version>3.1.2</version>
      <scope>test</scope>
</dependency>

Grapes:

@Grapes(
    @Grab(group='org.awaitility', module='awaitility-groovy', version='3.1.2')
) 

Gradle:

testCompile 'org.awaitility:awaitility-groovy:3.1.2'

Proxies

In order to use proxy based conditions you also need to depend on this library:

<dependency>
  <groupId>org.awaitility</groupId>
  <artifactId>awaitility-proxy</artifactId>
  <version>3.1.2</version>
    <scope>test</scope>
</dependency>

Non-Maven / Gradle users

Download Awaitility and put it in your class-path. You may also need to download the third-party dependencies and put them in your classpath as well. Scala users must also download awaitility-scala and Groovy users must download awaitility-groovy. Kotlin users may download awaitility-kotlin for additional extension functions. To use proxy based conditions you also need to download this file.

Documentation

When you've successfully downloaded and configured Awaitility in your classpath please refer to the usage guide for examples.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.