Giter Site home page Giter Site logo

maven-selenium-webdriver-testng-example-project's Introduction

How to run the Test

Prerequisite

  1. Java environment
  2. Maven

Note: Configure web-driver path and test email address.

  • Configure webdriver.

    • I used ChromeDriver but you can choose other webdriver eg. Mozilla GeckoDriver
    • So first download ChromeDriver from http://chromedriver.chromium.org/downloads.
    • Copy your downloaded chromedriver.exe file path.
    • Go to E2EUserJourney\src\test\java\testcases\mytheresa\WebdriverSettings.java file.
    • Paste the copied file path in System.setProperty("webdriver.chrome.driver","Paste path here").
  • Configure test email address.

    • Change the value of USER_EMAIL in E2EUserJourney\src\main\java\variables\mytheresa\UserVariables.java
    • Note: with same email address you can not create account , so please change the email address before every run of the test.

Project is ready to run. Execute following commands and enjoy the automatic web-driver test.

  • Go to project path in terminal. For example: C:\Users\User-Name\eclipse-workspace\E2EUserJourney>
  • Run mvn clean
  • Run mvn compile
  • Run mvn test

You can find the test result in E2EUserJourney\target\surefire-reports\index.html.

maven-selenium-webdriver-testng-example-project's People

Contributors

dependabot[bot] avatar nusratahmed avatar

Stargazers

 avatar  avatar  avatar  avatar

maven-selenium-webdriver-testng-example-project's Issues

WishListCheckAdd.WishList:23 » IllegalState The driver executable does not exi

mvn test

[ERROR] Failures:
[ERROR]   NewUserJourney.accountCreate:24 » IllegalState The driver executable does not ...
[ERROR]   WishListCheckAdd.WishList:23 » IllegalState The driver executable does not exi...
[INFO]
[ERROR] Tests run: 2, Failures: 2, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  22.853 s
[INFO] Finished at: 2020-02-19T03:01:06-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test) on project E2EUserJourney: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/syedahmed/QA/TIGERTEAM/PROJECT-SELENIUM-BROWSERSTACK/maven-selenium-webdriver-testng-example-project/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.