Skip to content

This is Starter Project Web Automation Testing Using Selenium, Cucumber, JUnit and Serenity BDD for Reporting

Notifications You must be signed in to change notification settings

ferdyciputra/serenity-starter-project-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

serenity-starter-project-web

This Project Web Automation Testing Using Selenium, Cucumber, JUnit and Serenity BDD for Reporting

Required

  1. Download Java OpenJDK 11 Tutorial Installation Java in Windows

  2. Download Maven

*If your computer already installed Java and Maven, you can skip step number 1 and 2.

Added New Scenario BDD

In order to added some Scenario BDD, we can create new file feature in directory src/test/resources/features

Writing the step definitions (Breaking Down Scenario BDD Into Steps)

In order to translate the steps from Scenario BDD into executable actions, we write Java classes called Step Definitions in directory src/test/java/steps

Writing the Page Object Class

Page Objects are a way of isolating the implementation details of a web page inside a class, exposing only business-focused methods related to that page. We can create new Page Object file in directory src/test/java/pageobjects

Running Test Case with Configure Headless Mode

You can configure your test running headless mode or not.
in file serenity.conf you can modified field headless.modewith value true or false.
file serenity.conf located in folder src/test/resources.

headless.mode = true

or

headless.mode = false

Running Test Case with Default Environment

mvn clean verify

Running Test Case with Specific Environment (file serenity.conf)

file serenity.conf located in folder src/test/resources

mvn clean verify -Denvironment=value

See Report Serenity BDD

  • file report located in target/site/serenity/index.html

Example Serenity Report

  • Specific Test Details

Example Serenity Report

Example Serenity Report

About

This is Starter Project Web Automation Testing Using Selenium, Cucumber, JUnit and Serenity BDD for Reporting

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published