Skip to content

Instantly share code, notes, and snippets.

@babysyifa
Last active January 20, 2022 11:01
Show Gist options
  • Save babysyifa/0db7a2c1d4ba40a87673b2226f294ed4 to your computer and use it in GitHub Desktop.
Save babysyifa/0db7a2c1d4ba40a87673b2226f294ed4 to your computer and use it in GitHub Desktop.
Q1 : Test Case for Create, Edit and Delete Gists
Scenario 1 : Create Public Gist
Test Date : 21/01/2022
Test Case : As a user, I can't create public gist without login/register
Test Type : Negative
Precondition : -
Test Steps : 1. Go to https://gist.github.com
Data Input : -
Expected Result : 1. Direct to Discover Gist
2. There is no feature to create Gist
3. Only shows features for Sign In Sign Search bar, Back to GitHub, All Gists, Forked Gists and Starred Gists.
Actual Result : 1. Direct to Discover Gist
2. There is no feature to create Gist
3. Only shows features for Sign In Sign Search bar, Back to GitHub, All Gists, Forked Gists and Starred Gists.
Status : PASSED
Scenario 1 : Create Public Gist
Test Date : 21/01/2022
Test Case : As a user, I want to create public gist using active account
Test Type : Positive
Precondition : 1. Account must be registered on GitHub
Test Steps : 1. Go to https://gist.github.com
2. Click Sign In
3. Input username or email and password then sign in
4. Click icon '+'
5. Input Gists value : description, file name and details
6. Click dropdown beside Create Gist button
7. Choose Public
8. Click Create public gist button
Data Input : 1. Gist description = Create, Edit and Delete Gists
2. Gist file name = create2.js
3. Gist details = Test case for create public gist using active account
Expected Result : 1. Direct to Discover Gist
2. Redirect to Login page
3. Feature add Gist appear
4. User can create Gists with different extensions such as .js, .md, .txt, etc.
5. User can create public gist
6. Gist that was made will appears on Gist Github Discover
7. Everyone who has access to GitHub could see the gist
Actual Result : 1. Direct to Discover Gist
2. Redirect to Login page
3. Feature add Gist appear
4. User can create Gists with different extensions such as .js, .md, .txt, etc.
5. User can create public gist
6. Gist that was made will appears on Gist Github Discover
7. Everyone who has access to GitHub could see the gist
Status : PASSED
Scenario 1 : Create Public Gist
Test Date : 21/01/2022
Test Case : As a user, I want to create public gist using .js as the extension
Test Type : Positive
Precondition : 1. User already signed in to https://gist.github.com
Test Steps : 1. Click icon '+'
2. Input Gists value : description, file name and details
3. Click dropdown beside Create Gist button
4. Choose Public
5. Click Create public gist button
Data Input : 1. Gist description = Create, Edit and Delete Gists
2. Gist file name = create3.js
3. Gist details = Test case for create public gist using .js as the extension
Expected Result : 1. Feature add Gist appear
2. User can create Gists with extensions such as .js.
3. User can create public gist
4. Gist that was made will appears on Gist Github Discover
5. Everyone who has access to GitHub could see the gist
Actual Result : 1. Feature add Gist appear
2. User can create Gists with extensions such as .js.
3. User can create public gist
4. Gist that was made will appears on Gist Github Discover
5. Everyone who has access to GitHub could see the gist
Status : PASSED
Scenario 1 : Create Public Gist
Test Date : 21/01/2022
Test Case : As a user, I want to create public gist using .txt as the extension
Test Type : Positive
Precondition : 1. User already signed in to https://gist.github.com
Test Steps : 1. Click icon '+'
2. Input Gists value : description, file name and details
3. Click dropdown beside Create Gist button
4. Choose Public
5. Click Create public gist button
Data Input : 1. Gist description = Create, Edit and Delete Gists
2. Gist file name = create4.txt
3. Gist details = Test case for create public gist using .txt as the extension
Expected Result : 1. Feature add Gist appear
2. User can create Gists with extensions such as .txt.
3. User can create public gist
4. Gist that was made will appears on Gist Github Discover
5. Everyone who has access to GitHub could see the gist
Actual Result : 1. Feature add Gist appear
2. User can create Gists with extensions such as .txt.
3. User can create public gist
4. Gist that was made will appears on Gist Github Discover
5. Everyone who has access to GitHub could see the gist
Status : PASSED

Scenario 1 : Create Public Gist Test Date : 21/01/2022

Test Case : As a user, I want to create public gist using .md as the extension Test Type : Positive

Precondition : 1. User already signed in to https://gist.github.com

Test Steps : 1. Click icon '+' 2. Input Gists value : description, file name and details 3. Click dropdown beside Create Gist button 4. Choose Public 5. Click Create public gist button

Data Input : 1. Gist description = Create, Edit and Delete Gists 2. Gist file name = create5.md 3. Gist details = Test case for create public gist using .md as the extension

Expected Result : 1. Feature add Gist appear 2. User can create Gists with extensions such as .md. 3. Feature Preview appear 4. User can create public gist 5. Edit new file appear 6. Gist that was made will appears on Gist Github Discover 7. Everyone who has access to GitHub could see the gist

Actual Result : 1. Feature add Gist appear 2. User can create Gists with extensions such as .md. 3. Feature Preview appear 4. User can create public gist 5. Edit new file appear 6. Gist that was made will appears on Gist Github Discover 7. Everyone who has access to GitHub could see the gist

Status : PASSED

Scenario 1 : Create Public Gist
Test Date : 21/01/2022
Test Case : As a user, I want to create public gist using .js as the extension
Test Type : Positive
Precondition : 1. User already signed in to https://gist.github.com
Test Steps : 1. Click icon '+'
2. Input Gists value : description, file name and details
3. Click dropdown beside Create Gist button
4. Choose Public
5. Click Create public gist button
Data Input : 1. Gist description = Create, Edit and Delete Gists
2. Gist file name = create3.js
3. Gist details = Test case for create public gist using .js as the extension
Expected Result : 1. Feature add Gist appear
2. User can create Gists with extensions such as .js.
3. User can create public gist
4. Gist that was made will appears on Gist Github Discover
5. Everyone who has access to GitHub could see the gist
Actual Result : 1. Feature add Gist appear
2. User can create Gists with extensions such as .js.
3. User can create public gist
4. Gist that was made will appears on Gist Github Discover
5. Everyone who has access to GitHub could see the gist
Status : PASSED
Scenario 1 : Create Public Gist
Test Date : 21/01/2022
Test Case : As a user, I can't create public gist without input the details
Test Type : Negative
Precondition : 1. User already signed in to https://gist.github.com
Test Steps : 1. Click icon '+'
2. Click dropdown beside Create Gist button
3. Choose Public
4. Click Create public gist button
Data Input : 1. Gist description = Create, Edit and Delete Gists
2. Gist file name = create7.js
Expected Result : 1. Feature add Gist appear
2. Warning message "Contents can't be empty" appear
Actual Result : 1. Feature add Gist appear
2. Warning message "Contents can't be empty" appear
Status : PASSED
Scenario 1 : Edit Public Gist
Test Date : 21/01/2022
Test Case : As a user, I want to delete an existing folder of public gist from gist folder page
Test Type : Positive
Precondition : 1. User already signed in to https://gist.github.com
2. Public gist was created
Test Steps : 1. Click Profile
2. Click Your gists
3. Click All Gists
4. Choose folder = Create, Edit and Delete Gists
5. Click Delete, right-up above the header
6. Click OK in the pop up
Data Input : -
Expected Result : 1. Redirect to User's Gist page
2. Deleted folder wasn't appear in Gist list
3. Pop up notification "Gist deleted successfully." appear
Actual Result : 1. Redirect to User's Gist page
2. Deleted folder wasn't appear in Gist list
3. Pop up notification "Gist deleted successfully." appear
Status : PASSED
Scenario 1 : Edit Public Gist
Test Date : 21/01/2022
Test Case : As a user, I want to delete all existing file in one public gist folder
Test Type : Positive
Precondition : 1. User already signed in to https://gist.github.com
2. Public gist was created
Test Steps : 1. Click Profile
2. Click Your gists
3. Click All Gists
4. Choose folder = Create, Edit and Delete Gists
5. Click the file
6. Click Edit
7. Click Delete, right-up above the header
8. Click OK in the pop up
Data Input : -
Expected Result : 1. Redirect to User's Gist page
2. Deleted folder wasn't appear in Gist list
3. Pop up notification "Gist deleted successfully." appear
Actual Result : 1. Redirect to User's Gist page
2. Deleted folder wasn't appear in Gist list
3. Pop up notification "Gist deleted successfully." appear
Status : PASSED
Scenario 1 : Edit Public Gist
Test Date : 21/01/2022
Test Case : As a user, I want to cancel deleting an existing public gist
Test Type : Negative
Precondition : 1. User already signed in to https://gist.github.com
2. Public gist was created
Test Steps : 1. Click Profile
2. Click Your gists
3. Click All Gists
4. Choose folder = Create, Edit and Delete Gists
5. Click Delete, right-up above the header
6. Click Cancel in the pop up
Data Input : -
Expected Result : 1. Gist still appears on Gist Github Discover
2. Everyone who has access to GitHub could see the gist
Actual Result : 1. Gist still appears on Gist Github Discover
2. Everyone who has access to GitHub could see the gist
Status : PASSED
Scenario 1 : Edit Public Gist
Test Date : 21/01/2022
Test Case : As a user, I want to edit an existing public gist
Test Type : Positive
Precondition : 1. User already signed in to https://gist.github.com
2. Public gist was created
Test Steps : 1. Click Profile
2. Click Your gists
3. Click All Gists
4. Choose folder = Create, Edit and Delete Gists
5. Click Edit
6. Write or edit a few words in the details or file name
7. Click dropdown beside Create Gist button
8. Choose Public
9. Click Create public gist button
Data Input : 1. Gist description = Create, Edit and Delete Gists
2. Edit gist file name = edit1.js
3. Edit gist details = Test case for editing an existing public gist
Expected Result : 1. Redirect to gist folder page after editing
2. User can edit Gists file name with different extensions such as .js, .md, .txt, etc.
3. Edited gist will appears on Gist Github Discover
4. Everyone who has access to GitHub could see the edited gist
Actual Result : 1. Redirect to gist folder page after editing
2. User can edit Gists file name with different extensions such as .js, .md, .txt, etc.
3. Edited gist will appears on Gist Github Discover
4. Everyone who has access to GitHub could see the edited gist
Status : PASSED
Scenario 1 : Edit Public Gist
Test Date : 21/01/2022
Test Case : As a user, I want to cancel an edited existing public gist
Test Type : Negative
Precondition : 1. User already signed in to https://gist.github.com
2. Public gist was created
Test Steps : 1. Click Profile
2. Click Your gists
3. Click All Gists
4. Choose folder = Create, Edit and Delete Gists
5. Click Edit
6. Write or edit a few words in the details or file name
7. Click Cancel
Data Input : 1. Gist description = Create, Edit and Delete Gists
2. Edit gist file name = edit2.js
3. Edit gist details = Test case for canceling an edited existing public gist
Expected Result : 1. Redirect to gist folder page after canceling edit
2. Previous Gist wasn't changed at all
3. Gist still appears on Gist Github Discover
4. Everyone who has access to GitHub could see the gist
Actual Result : 1. Redirect to gist folder page after canceling edit
2. Previous Gist wasn't changed at all
3. Gist still appears on Gist Github Discover
4. Everyone who has access to GitHub could see the gist
Status : PASSED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment