Task - Writing Integration Tests
Your task is to implement the following integration tests and enter the results in the quiz given at the end:
Test ID: 1
- Test Description: Create a Post;
- Prerequisite: An account called "testuser1" exists in the database;
- Steps:
- Login to "testuser1" account;
- Enter "An example sentence" in the input field;
- Click "Post";
- Refresh the page;
- Verify a post by user "testuser1" and content "An example sentence" exists on the page;
Test ID: 2
- Test Description: Like a Post;
- Prerequisite:
- An account called "testuser1" exists in the database;
- At least one post exists in the database;
- Steps:
- Login to "testuser1" account;
- Read the number of likes for the latest post;
- Click the like button for the latest post;
- Read and verify that the number of likes of the latest post increased by 1;
Test ID: 3
- Test Description: Posts can be liked only Once;
- Prerequisite:
- An account called "testuser1" exists in the database;
- At least one post exists in the database;
- Steps:
- Login to "testuser1" account;
- Enter "An example post for testing likes" in the input field;
- Click "Post";
- Click the Like button for the newly created post;
- Verify that the likes have increased by 1;
- Click the Like button again;
- Verify that the likes have decreased by 1;
1. What was the result of Test Case 1 ?
2. What was the result of Test Case 2 ?
3. What was the result of Test Case 3 ?
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 7
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Awesome!
Completion rate improved to 3.85
Task - Writing Integration Tests
Sveip for å vise menyen
Your task is to implement the following integration tests and enter the results in the quiz given at the end:
Test ID: 1
- Test Description: Create a Post;
- Prerequisite: An account called "testuser1" exists in the database;
- Steps:
- Login to "testuser1" account;
- Enter "An example sentence" in the input field;
- Click "Post";
- Refresh the page;
- Verify a post by user "testuser1" and content "An example sentence" exists on the page;
Test ID: 2
- Test Description: Like a Post;
- Prerequisite:
- An account called "testuser1" exists in the database;
- At least one post exists in the database;
- Steps:
- Login to "testuser1" account;
- Read the number of likes for the latest post;
- Click the like button for the latest post;
- Read and verify that the number of likes of the latest post increased by 1;
Test ID: 3
- Test Description: Posts can be liked only Once;
- Prerequisite:
- An account called "testuser1" exists in the database;
- At least one post exists in the database;
- Steps:
- Login to "testuser1" account;
- Enter "An example post for testing likes" in the input field;
- Click "Post";
- Click the Like button for the newly created post;
- Verify that the likes have increased by 1;
- Click the Like button again;
- Verify that the likes have decreased by 1;
1. What was the result of Test Case 1 ?
2. What was the result of Test Case 2 ?
3. What was the result of Test Case 3 ?
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 7