Testing Procedure - NAVADMC/ADSM GitHub Wiki

Tester Responsibility

Creates Regression tests and detailed user stories as Selenium Tests.

  • Selenium IDE generates test cases by recording your actions on the website
  • Export Test Case As.. Python 2/3 / unittest / WebDriver
  • Save to the Github folder / ADSM / ScenarioCreator / tests
  • Use Github for Windows to make a new commit of one or more files
  • Syncrhonize with production-testing branch

Failing Tests

  • Create a normal test (as above) that goes through the action that should not pass and records how to replicate this action
  • Add "Failing Test: " to your commit message (as above)
  • Go to ADSM Github page and create an Issue on Tracker and reference the full ADSM version under the Settings "Gear" in the program

Developer Responsibility

  • For any tests with Issues creating, alter the tests so that they fail if the product is behaving incorrectly (assertFalse) (assertRaises).
  • Run the Selenium test suite regularly before committing to master branch.
  • See the README for instructions on downloading and installing the ChromeDriver software that is needed for running tests.
  • To run the tests, change to the directory containing manage.py and type python manage.py test.