Skip to content

Repository with automated test for UI (web) using the frameworks: selenium + cucumber and junit for java

Notifications You must be signed in to change notification settings

uLucasFraga/selenium_java_for_studies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QA CI/CD

SELENIUM-JAVA-FOR-STUDIES

Repository with examples of automation using selenium + cucumber + junit in java

Selenium is a portable software-testing framework for web applications. Selenium provides a playback tool for authoring tests without the need to learn a test scripting language.


Table of Contents

Índice README.


Prerequisites

Configuration

environment variables and bash_profile

Java

Maven

Installation

Clone

  • Clone this repo to your local machine using https://github.com/uLucasFraga/selenium_java_for_studies.git

  • Install all dependencies (pom.xml) mvn install

Maven install example

Tips

  • Use pom.xml to install the project dependencies

How to run the tests

run all tests with maven

$ mvn clean test

run all tests with cucumber

$ mvn clean -Dtest=CucumberRunnerTest test

run all tests choosing browser and operational system (ex: Chrome for Linux)

$ mvn clean test -Dbrowsers=CHROME_LINUX

run all tests with cucumber and a tag (ex: tag @example)

$ mvn test -DCucumber.options="--tags '@example'"

run all tests with IntelliJ (or another IDE)

Right click on class: src.test.java.br.com.studies/runner/CucumberRunnerTest > Run 'CucumberRunnerTest'


Features

  • file example .feature
#language: en

@example
Feature: Access github
  As a QA
  I want to learn how to use selenium
  To be able to automate applications like the github website

  Scenario: Validate access on github website
    Given he accesses the page
    Then he checks the text on the initial page: "Why GitHub?"

Report

run all tests and to generate an allure report

$ mvn allure:serve

Support


License

License

About

Repository with automated test for UI (web) using the frameworks: selenium + cucumber and junit for java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published