Giter VIP home page Giter VIP logo

ft-test-factory-demo's Introduction

ft-test-factory-demo

This test factory based on Serenity BDD is regression functional test for IMD Connect.

Copy from

https://github.com/serenity-bdd/serenity-cucumber-starter

Docker

To run Chrome use

docker-compose up -d

To connect to the VNC. The password is secret.

vnc://127.0.0.1

To stop docker

docker-compose down

More info

More info on how to build latest version and other browser check this link

https://github.com/SeleniumHQ/docker-selenium

Run test

Use Gradle

Open a command window and run:

gradle test

This runs Cucumber features using Cucumber's JUnit runner. The @RunWith(CucumberWithSerenity.class) annotation on the CucumberTestSuite class tells JUnit to kick off Cucumber.

Clean build

Open a command window and run:

gradle clean test

Run specific tags

Update in 'build.gradle' the test section. Assuming we wnat ti run only @FTDemoWebsite tag:

test {
    //..
    systemProperty 'cucumber.options' ,  '-t @FTDemoWebsite'

}

Also you can find predefined gradle task that run specific tags. Example

  • gradle clean smokeTest runs tag @FTSmokeTest
  • gradle clean demoWebsiteTest runs tag @FTDemoWebsite

Screen sizing

To set the screen sizing during the test and also the size of the screenshot taken, you could update the size in serenity.preperties file

serenity.browser.width=1440
serenity.browser.height=1200

Serenity Documentation

For the full documentation of Serentiy BDD framework check the link

http://thucydides.info/docs/serenity-staging/
https://github.com/serenity-bdd/serenity-demos/tree/master/cucumber-webtests

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.