Computer name edge TC - sirdir/computer-database GitHub Wiki

1) Create computer with single character name

test data

  • single number
  • single specific character

steps

  1. open form of creating new computer base page of application (e.g. http://computer-database.herokuapp.com/computers/new)
  2. Fill "Computer name" with provided test name and submit form.
  3. Search computer by name.

expected results

Computer created successfully. For created computer in columns must appear data that was provided in step-2.


2) Create computer with tooooooo long name

steps

  1. open form of creating new computer base page of application (e.g. http://computer-database.herokuapp.com/computers/new)
  2. Fill "Computer name" with string of 8192 characters length and submit form.
  3. Search computer by name.

expected results

Must appear heroku fail page.


3) Cant create computer without name

test data

steps

  1. open form of creating new computer base page of application (e.g. http://computer-database.herokuapp.com/computers/new)
  2. Didn't fill "Computer name" and submit form.

expected results

Validation of submitting test data must fail and highlight name field.

4) Cant update existed computer with empty name

test data

steps

  1. open form of creating new computer base page of application (e.g. http://computer-database.herokuapp.com/computers/new)
  2. Fill "Computer name" with valid string and submit form.
  3. Open created computer.
  4. Delete data in "Computer name" field and submit form.

expected results

Validation of submitting test data must fail and highlight name field.