Pages

Dependencies or Libraries required for cucumber framework?

What are the libraries required to set up a cucumber selenium framework?

Below are dependencies required to set up a cucumber framework:
<dependencies>
    <dependency>
        <groupId>io.cucumber</groupId>
        <artifactId>cucumber-junit</artifactId>
        <version>6.1.1</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>3.141.59</version>
    </dependency>
    <dependency>
        <groupId>io.cucumber</groupId>
        <artifactId>cucumber-java</artifactId>
        <version>6.1.1</version>
    </dependency>
    <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>2.6</version>
        <scope>test</scope>
    </dependency>
</dependencies>

You can also download the corresponding jar files cucumber-junit, selenium-java, commons-io, cucumber-java
and add it your project.
  • cucumber-junit library is used to run a cucumber scenario
  • selenium-java library is used to impement a cucumber,selenium using java.
  • cucumber-java library is used to write cucumber scenarios (feature files,step definitions etc.,.)
  • commons-io library contains utility classes,file filters,file Utils,Streams implementation etc.,.
Please comment below to feedback or ask questions.

No comments:

Post a Comment

Please comment below to feedback or ask questions.