Test plan, test cases, and automated test scripts for auto load calculator found at https://www.bankrate.com/calculators/auto/auto-loan-calculator.aspx. The automated scripts are written in Cypress, a javascript test framework.
page load
- loads defaults
page refresh
- loads defaults
principal
- alpha
- less than 1000
- more than 100000
term
- select length
new/used
- select type
rate
- alpha
- multiple "."
- negative
- 99% or greater
find rate
- click
help
- principal
- term
output
- payment
- total princ
- total interest
algorithm
- 36 new/used
- 48 new/used
- 60 new/used
- 72 new
Steps:
- Load page from URL.
Expect results:
- Fields should be filled in and outputs displays.
- principal = 15000
- term = 60 months
- type = used
- rate = 3
Steps:
- Load page from URL.
- Change values.
- Reload page.
Expect results:
- Fields should be filled in and outputs displays.
- principal = 15000
- term = 60 months
- type = used
- rate = 3
Steps:
- Load page from URL
- Enter a number from 1000 to 100000 (inclusive) in the "How much are you looking to borrow?" field.
Expected results:
- Value is displayed in black font color with blue line under text box
Steps:
- Load page from URL
- Enter invalid input in the "How much are you looking to borrow?" field.
Expected results:
- Non-numerical characters are not displayed. A number less that 1000 or greater than 100000 is displayed in orange font color and bar under text entry box is orange.
Steps:
- Load page from URL
- Click on entry field for "For how long?"
- Click on any value
Expected results:
- Value is displayed in the field
Steps:
- Load page from URL
- Click on the entry field for "Is your vehicle new or used?"
- Click on any value.
Expected results:
- Value is displayed in the field
Steps:
- Load page from URL
- Enter a decimal number between 0.0 and 99.0 in the "Interest rate" text input box.
- Hit enter of click outside the text input box
Expected results:
- Entered value is displayed in black font with a blue line under the text box
Steps:
- Load page from URL
- Enter a non-numerical number, more than one "." (decimal point), a value 0 or less, or a value 99 or greater.
Expected results:
- Entered value is displayed in orange font color, orange line is under the text box, and "Invalid rate" is displayed under the text box.
Steps:
- Load page from URL
- Click on "Find rate box"
Expected results: Dropdown is displayed with "Choose an available rate from a lender below"
Steps:
- Load page from URL
- Click on "i" to the right of "How much are you looking to borrow?"
Expected results:
- Text box is displayed with the help text
Steps:
- Load page from URL
- Click on "i" to the right of "For how long?"
Expected results:
- Text box is displayed with the help text
Steps:
- Load page from URL
- Change any of the principal, term, type, or rate fields to a new value
Expected results:
- Monthly payment, Total principal paid, and Total interest paid, should update.
Steps: Enter values for inputs. Compare results with output from the following formulae:
- Monthly payment: A=P*(r(1+r)^{n})/((1+r)^{n}-1)}
One set of inputs:
- principal = 15000
- term = 60 months
- type = used
- rate = 3
Expected results:
- payment = 270
- princ paid = 15000
- intereset paid = 1172