Skip to content

davidryv/OracleAutomationTest

Repository files navigation

Oracle Twitter LogIn Example

  1. Open a terminal window/command prompt
  2. Clone this project.
  3. cd Selenium-Maven-Template (Or whatever folder you cloned it into)
  4. mvn clean verify

All dependencies should now be downloaded and the example google cheese test will have run successfully (Assuming you have Firefox installed in the default location)

What should I know?

  • To run any unit tests that test your Selenium framework you just need to ensure that all unit test file names end, or start with "test" and they will be run as part of the build.

  • The maven failsafe plugin has been used to create a profile with the id "selenium-tests". This is active by default, but if you want to perform a build without running your selenium tests you can disable it using:

      mvn clean verify -P-selenium-tests
    
  • The maven-failsafe-plugin will pick up any files that end in IT by default. You can customise this is you would prefer to use a custom identifier for your Selenium tests.

Yes you can specify which browser to use by using one of the following switches:

  • -Dbrowser=firefox
  • -Dbrowser=chrome
  • -Dbrowser=ie
  • -Dbrowser=edge
  • -Dbrowser=opera
  • -Dbrowser=htmlunit
  • -Dbrowser=phantomjs

You don't need to worry about downloading the IEDriverServer, MicrosoftWebDriver, chromedriver , operachromium, or wires binaries, this project will do that for you automatically.

You can specify a grid to connect to where you can choose your browser, browser version and platform:

  • -Dremote=true
  • -DseleniumGridURL=http://{username}:{accessKey}@ondemand.saucelabs.com:80/wd/hub
  • -Dplatform=xp
  • -Dbrowser=firefox
  • -DbrowserVersion=44

You can even specify multiple threads:

  • -Dthreads=2

You can also specify a proxy to use

  • -DproxyEnabled=true
  • -DproxyHost=localhost
  • -DproxyPort=8080

If the tests fail screenshots will be saved in ${project.basedir}/target/screenshots

If you need to force a binary overwrite you can do:

  • -Doverwrite.binaries=true

Add new tests

If you want to add new test to run, go to ${project.basedir}/test/java/OracleAutomationTest/tests and add a class ending in "IT" All classes without IT at the end will be skipped.

It's Failing

Right now it does not manage login after forgot password is sent, so even it goes through Forgot Password , is skipped because it won't allow to log in latter , until recover password process is completed, is expected , for now, for testing purposes.

About

Atomation Example of Twitter LogIn

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages