Giter Site home page Giter Site logo

comment-tech-test's Introduction

This project has been achieved on windows10 x86_64-bit OS

Find the same version in Cypress_Framework Here

Setup & Configuration

JAVA

  1. Install Java jdk Java SE Development Kit 15 Downloads
https://www.oracle.com/uk/java/technologies/javase-jdk15-downloads.html
Follow the default installation prompts
  1. Configure Environment variables
  • Go to Advance System Settings on windows
  • Click on environment variables
  • Under user variables. Click on new
    • Variable name : JAVA_HOME
    • Variable value: C:\Program Files\Java\jdk-15.0.1
  • Under system variables, place your cursor on PATH, and click edit, add new: %JAVA_HOME%\bin

ECLIPSE

Download Eclipse for JEE Developers

https://www.eclipse.org/downloads/packages/release/kepler/sr2/eclipse-ide-java-ee-developers
Install as administrator

To interact with this project on eclipse your local machine:

fork the repo
git clone [email protected]:56aint/comment-tech-test

To run:

open testRunner/testRun.java, right click and run as JunitTest

Switch feature to run:

* features = ".//Features/Comment.feature",
* features = ".//Features/LoginComment.feature"
Cucumber report is available via the link at the console (view the link and send to anyone/stakeholders)
Or You can view report locally by opening: target(folder) -> right click on cucumber-report-html and 
open with system editor (microsoft edge browser)

CHROMEDRIVER AND CUCUMBER INSTALLATION

  1. Download chromeDriver
  • *Goto your google chromeDriver settings -> help, and find your chrome version
  • *Google Chrome is up to date Version 88.0.4324.... (Official Build) (64-bit) Then goto https://chromedriver.chromium.org/downloads ...and download the version of your google chromeDriver
  1. CUCUMBER PLUGIN https://mvnrepository.com/search?q=cucumber

The dependencies below are needed to be copied and paste into the pom.xml file: Download the latest versions from io.cucumber

  • cucumber core
  • cucumber-html
  • cobertura from net.sourceforge.cobertura
  • cucumber-java
  • cucumber-junit
  • cucumber-jvm-deps
  • cucumber-reporting from net.masterthought
  • hamcrest-core
  • gherkin
  • selenium-java
  • junit

Maven dependencies will be auto downloaded once saved.

to clear the error at the top of pom.xml file, download another dependency:
    <dependency>
	<groupId>com.sun</groupId>
	<artifactId>tools</artifactId>
	<version>1.7</version>
	<scope>system</scope>
	<systemPath>C:\Program Files\Java\jdk-15.0.1\lib\tools.jar</systemPath>
   </dependency>

In eclipse -> click on Help -> click on Eclipse Marketplace

  • search for cucumber and install:
    • Cucumber Eclipse Plugin & Natural

comment-tech-test's People

Contributors

56aint avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.