Skip to content

Test Data

Manuel edited this page May 23, 2024 · 6 revisions

All the currently used test data can be found under the cypress/fixtures folder.

The current data is as follows:

invalidCredentials.json

As the name implies this is used for tests that check the behavior of the system and UI with using invalid credentials as input.

{
  "shortUsername": "user1",
  "longUsername": "abcdefghijklmnopqrst",

  "invalidEmail": "Invalid Email",
  "shortEmail": "a@com",
  "longEmail": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz@example.com",

  "invalidPassword": "Invalid password",
  "shortPassword": "testpas",
  "longPassword": "P@ssw0rd123!abcdefghijklmnopqrstuvwxyABCDEFGHIJKLMNOPQRSTUVWXYabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()",

  "noUppercasePassword": "testpass",
  "noLowercasePassword": "TESTPASS",
  "noNumberPassword": "Testpass",
  "noSpecialCharPassword": "Testpass1",

  "correctPassword1": "CorrectPassword1!",
  "correctPassword2": "CorrectPassword__2!"
}

invalidDataTypeTodo.json

This is used to test todo API CRUD requests with incorrect type data.

{
  "completed": 6,
  "description": ["Run a marathon"]
}

invalidTodo.json

This is used to test todo descriptions with invalid lengths in lower and upper boundaries.

{
  "todoDescShorterThan3Chars": "No",
  "todoDescLongerThan40Chars": "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
}

resolutions.json

This is used for responsiveness tests.

[
  {
    "breakpoint": "<600px",
    "viewportWidthToUse": 414
  },
  {
    "breakpoint": ">600px",
    "viewportWidthToUse": 601
  },
  {
    "breakpoint": ">768px",
    "viewportWidthToUse": 770
  },
  {
    "breakpoint": ">992px",
    "viewportWidthToUse": 1000
  },
  {
    "breakpoint": ">1200px",
    "viewportWidthToUse": 1300
  }
]

singleTodo.json

This is used for API CRUD tests.

{
  "completed": true,
  "description": "Run a marathon (test)"
}

singleUpdatedTodo.json

This is used for API Update tests.

{
  "completed": false,
  "description": "Run a half-marathon (test)"
}

testuser.json

This used for API/Functional/Smoke tests and Custom Commands.

{
  "email": "testuser1@gmail.com",
  "username": "testuser",
  "password": "Testpass1!",
  "userLanguage": "es"
}

todo.json

This is used for Functional and Smoke tests in order to create todos with different descriptions.

{
  "validTodoDesc": "Feed the cats (test)",
  "validTodoDesc2": "Take out trash (test)",
  "validTodoDesc3": "Clean room (test)",
  "validTodoUpdateDesc": "Mow the lawn (test)",
  "validTodoToDeleteDesc": "Pick up laundry (test)",
  "validCompletedTodoDesc": "Workout (test)"
}

unexistingUser.json

This is used for API login tests.

{
  "username": "unexistingUser",
  "email": "unexistingUser@gmail.com",
  "password": "Testpass1!"
}

Clone this wiki locally