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.
Índice
README.
environment variables and bash_profile
###Java
-
Mac:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home -
Windows: https://confluence.atlassian.com/doc/setting-the-java_home-variable-in-windows-8895.html
###Maven
-
Mac:
export PATH=/opt/apache-maven-3.5.3/bin:$PATH -
Windows: https://www.mkyong.com/maven/how-to-install-maven-in-windows/
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
Tips
- Use pom.xml to install the project dependencies
run test Maven
$ mvn clean testrun test Cucumber
$ mvn clean -Dtest=CucumberRunnerTest testrun test choose browser (ex: Chrome for Mac)
$ mvn clean test -Dbrowser=CHROME_MACrun test Eclipse
Right click on class CucumberRunnerTest.java> Run as> JUnit Test
- 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 2011 – parte 1 |
| Lucas Fraga | Utilizando async/await com Protractor |run allure report
$ mvn allure:serve-
Twitter at
@ulucasfraga -
Facebook at
Facebook: Lucas Fraga -
Linkedin at
Linkedin: Lucas Fraga -
E-mail:
lucass.fragaa@gmail.com -
Skype:
live:lucass.fragaa
- MIT license
- Copyright 2018 © Lucas Fraga.
