Skip to content

reinaldorossetti/selenium_java_for_beginners

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SELENIUM-JAVA-FOR-BEGINNERS

Fiz um fork do projeto do Lucas somente para testar o Retry do Cucumber no Java, no entanto o mesmo só tem para Ruby, a solução feita simplesmente Extend a biblioteca para retestar o teste falho, mas no entanto o mesmo repete o cenário no report do Cucumber.

Repository with examples of automation using selenium + 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_beginners.git

  • Install all dependencies (pom.xml) mvn install

Maven install example

Tips

  • Use pom.xml to install the project dependencies

Run test

run test Maven

$ mvn clean test

run test Cucumber

$ mvn clean -Dtest=CucumberRunnerTest test

run test choose browser (ex: Chrome for Mac)

$ mvn clean test -Dbrowser=CHROME_MAC

run test Eclipse

Right click on class CucumberRunnerTest.java> Run as> JUnit Test


Features

  • file example .feature
Feature: Learning to use selenium with java 
As a QA
I want to learn how to use selenium 
To be able to automate applications 

Scenario Outline: Validate texts in concrete.com.br website
Given Im on the page
When I fill in the text field with "<name>"
Then I checked if the text "<expected>" was successfully validated

  Examples: 
  | name        | expected				|
  | Concrete	| A Concrete no QCon SP 2011parte 1	|
  | Lucas Fraga	| Utilizando async/await com Protractor	|

Report

run allure report

$ mvn allure:serve

Support


License

License

About

Repository with examples of automation using selenium + java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 97.2%
  • Gherkin 2.8%