Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.41 KB

JStesterTest.md

File metadata and controls

27 lines (17 loc) · 1.41 KB

Southbank Software tester JS test

Part 1:

Write a test suite that validates the data contained in the file (https://raw.githubusercontent.com/SouthbankSoftware/SBSPublic/master/JStesterTestData.json).

The test suite can be written in a Javascript framework of your choice or as native Javascript code. It should be runnable in nodeJS: we'll try and run it against 8.9.1. You should include a package.json file that contains any dependencies.

The test suite should accept the file name from the command line, an environment variable or a configuration file.

There are three test cases to write:

  1. The case sensitive value of the proofType attribute should be "full" or "incremental."
  2. The date value in submitTimestamp should be no ealier than one year ago
  3. The value of the Country attribute should be a valid country code. Use the rest service at (http://services.groupkt.com/country/get/iso3code) to validate this

Part 2:

Using framework you like, write a test case that checks the following:

  1. The website http://wwww.dbkoda.com is reachable.
  2. The Download link at the top of the page navigates to the downloads section,
  3. Clicking on the Windows download button causes 'dbkoda-latest.exe' to be downloaded.
  4. The "Subscribe" button is visible
  5. Clicking subscribe brings up the username/email dialogue
  6. The email field rejects obviously incorrect emails (ones not containing an "@" symbol for instance.