Skip to content

shou98/testauto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Automated test example in Java with Cucumber and Selenium WebDriver # This project is an example of UI automated functional test for Google home page and search using Selenium and Cucumber. Test scenarios are described in the feature files located here ./src/test/resources/com/automatedtest/sample. For more info about this project, read the article ["UI automated test project example with Selenium, Cucumber and Java"](https://medium.com/@lucie.duchemin/ui-automated-test-project-example-with-selenium-cucumber-and-java-b33788bd11c4) ## Installation ## You need to have [Java 8 JDK](https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) installed along with [maven](https://maven.apache.org/download.cgi). To run the tests locally with Chrome, install ChromeDriver from [here](http://chromedriver.chromium.org), add its location to your system PATH and add webdriver.chrome.driver=path/to/the/driver to your local variables. To run the tests locally with Firefox, install GeckoDriver from [here](https://github.com/mozilla/geckodriver/releases) and add its location to your system PATH. To install all dependencies, run ```console $ mvn clean install ``` ## Running tests ## ```console $ mvn test ``` By default, tests will run on Chrome. To change that, specify `-Dbrowser={browser}` where `{browser}` is either `chrome` or `firefox`. If you haven't added the chrome driver path to your local variables, you can add it directly in the run command with the option `-Dwebdriver.chrome.driver=path/to/the/driver`. You can also select specific scenarios to execute using `-Dcucumber.options="--tags @your_tag"`. More info about tags and how to combine them [here](https://github.com/cucumber/cucumber/tree/master/tag-expressions). ## Cucumber Studio (Hiptest) ## Feature files can be handled with Cucumber Studio (previously called Hiptest), a test management platform. To get started with Cucumber Studio, go [here](https://cucumber.io/tools/cucumberstudio/getting-started-with-behavior-driven-development/). Features files in this project were exported directly from an [Hiptest project](https://studio.cucumber.io/projects/102008) using [Hiptest publisher](https://github.com/hiptest/hiptest-publisher). Credentials to access the project are the following. - _login:_ [email protected] - _password:_ Eth7S9# # testauto

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors