Giter Club home page Giter Club logo

sample-test-automation's Introduction

Generic install checklist

Basic steps:

  • Install Java and supporting tools
    • install Java JDK
    • install Maven
    • check Java and Maven work by running a sample test
  • Install IntelliJ Community Edition and plugins
    • check IntelliJ works by running the sample test

Windows Install checklist

Install Java/Maven Pre-requisites

  • Check what you need to install by typing console commands javac -version
  • Check Maven mvn -version
    • If it fails install Maven

Run test from cmd

  • Run everything using Maven: mvn test
  • Run only tagged tests using Maven: mvn test -Dcucumber.options="--tags @rest"

Install and Configure IntelliJ

Run with Intellij IDEA

Config settings: Run- > Edit Configurations

  • Main class: cucumber.api.cli.Main
  • Glue: com.jeta.sample.test
  • Feature or folder path: C:/projects/sample-test-automation/src/test/resources/features
  • Program arguments: --plugin org.jetbrains.plugins.cucumber.java.run.CucumberJvm3SMFormatter

You can run each feature file independently or execute the whole pack by running RunCukesTest

Examples of usage

  • -Dwhisper.env=env2
  • -Dcucumber.options="--tags @rest"
  • -Dcucumber.options="--tags @rest" -Denv=env1

List of available parameters

  • -Denv (available options: env1 and env2)
  • -Dcucumber.options
  • -Dselenide.browser (available options: chrome, firefox, ie, phantomjs, htmlunit, safari, opera)
  • -Dselenide.headless (can be true or false, false by default)
  • -Dselenide.timeout
  • In addition to that you can override any configuration parameter from automation.properties file, e.g. -Drest.baseurl

sample-test-automation's People

Contributors

mariaklimenko avatar

Watchers

 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.