Selenium WebDriver Testing - 1610oct24java/AssociateEvaluationSystem GitHub Wiki

#Selenium Webdriver

All Webdriver related testing files can be found in src/test/java

Test Plan

Current test implementation uses POM (Page Object Model) design pattern. Uses a utility class to connect to database directly to verify data is being entered into the database correctly in the front-end. Still needs work, but you can still manually check the database.

Currently implemented tests check that recruiters can navigate properly and register candidates.

Prerequisites

Before testing the database locally

  • Make sure to create a local copy of the AES database
  • Change username and password (in databaseconnection.java) to match the local copy

Running the Tests

Tests can be run individually by

  • Right-clicking package or individual test files
  • Run as
  • JUnit Test

Creating Tests

New Tests can be created by

  • Right click on test package
  • New -> Other -> type "junit"
  • Select "JUnit Test Case"
  • Click Next
  • Type in Name and click Finish