This repository has been archived on 2022-05-04. You can view files and clone it, but cannot push or open issues or pull requests.
tso-sw/docs
surtur 4b929e2d59
All checks were successful
continuous-integration/drone/push Build is passing
feat: added manual test specs + updated .drone.yml accordingly
2020-07-06 02:08:07 +02:00

743 lines
24 KiB
Plaintext

# vim:fileencoding=utf-8:ff=unix:ft=conf:foldmethod=marker:noexpandtab
# the code is available at https://git.dotya.ml/wanderer/tso-sw
test set
desktop - Testing a webpage with desktop browser
test case
- id - 00
- name - just a page GET
- opens the specified webpage
- expected result - webpage is successfully loaded (screenshot proof)
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 01
- name - open page and maximize
- opens the specified webpage and maximizes the browser window
- expected result - webpage is successfully loaded and browser is maximized (screenshot proof)
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 02
- name - attempt login without creds
- opens the specified webpage and attempts to log in with no
credentials (at all), which should (obviously) fail
- expected result - webpage is loaded, login page displayed and login fails
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 03
- name - open page, click Explore button and sort by "Most stars"
- opens the specified webpage, clicks on a button to browse
repositories, clicks on a dropdown, selects an option
- expected result - repositories page should be ordered by "Most stars"
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 04
- name - attempt login without password
- opens the specified webpage, clicks on a tabbar button to get to
login page, inputs a username and clicks on a 'Sign In' button
- expected result - login fails, error message is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 05
- name - attempt login without username
- opens the specified webpage, clicks on a tabbar button to get to
login page, inputs a password and clicks on a 'Sign In' button
- expected result - login fails, error message is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 06
- name - attempt login with bogus creds
- opens the specified webpage, clicks on a tabbar button to get to
login page, inputs a bogus username and bogus password and clicks
on a 'Sign In' button
- expected result - login fails, error message is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 07
- name - attempt to register short password
- opens the specified webpage, clicks on a tabbar button to get to
login page, clicks on a 'Need to register' link, inputs a username,
email and a *short* password (this Gitea instance has got a password
length requirement), retypes it for confirmation and clicks on
the 'Register Account' button
- expected result - account registration fails, error message is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 08
- name - attempt to register weak password
- opens the specified webpage, clicks on a tabbar button to get to
login page, clicks on a 'Need to register' link, inputs a username,
email and a password that is now long enough but *weak* (this
Gitea instance has also got a password 'strength' requirement),
retypes it for confirmation and clicks on the 'Register Account'
button
- expected result - account registration fails, error message is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 09
- name - attempt to register (semi-)legit password
- opens the specified webpage, clicks on a tabbar button to get to
login page, clicks on a 'Need to register' link, inputs a username,
an email and a semi-legitimate password (while technically compliant
with requirements of this Gitea instance, it could be better;
however, for testing purposes will do), retypes it for confirmation
and clicks on the 'Register Account' button
- expected result - account registration is successful, user Dashboard page is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 10
- name - log in to an account using username
- opens the specified webpage, clicks on a tabbar button to get to
login page, inputs username and password, hits Enter, logs in
- Pre-conditions
- user registered (test09)
- expected result - user login is successful, user Dashboard page is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 11
- name - log in to an account using email
- opens the specified webpage, clicks on a tabbar button to get to
login page, inputs email and password, hits Enter, logs in
- Pre-conditions
- user registered (test09)
- expected result - user login is successful, user Dashboard page is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 12
- name - show Milestones page
- robot user logs in using username and password,
clicks on a tabbar button to get to the Milestones page
- Pre-conditions
- user registered (test09)
- expected result - Milestones page is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 13
- name - show Pull Requests page
- robot user logs in using username and password,
clicks on a tabbar button to get to the Pull Requests page
- Pre-conditions
- user registered (test09)
- expected result - Pull Requests page is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 14
- name - show Issues page
- robot user logs in using username and password,
clicks on a tabbar button to get to the Issues page
- Pre-conditions
- user registered (test09)
- expected result - Issues page is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 15
- name - show user profile page
- robot user logs in using username and password,
clicks on a tabbar user menu button, selects Profile entry
to get to the user profile page
- Pre-conditions
- user registered (test09)
- expected result - user profile page is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 16
- name - star wanderer's dotfiles repo
- robot user logs in using username and password,
clicks on Explore tabbar button, searches for dotfiles repo,
selects the one by 'wanderer' and stars it
- Pre-conditions
- user registered (test09)
- expected result - wanderer's dotfiles repo is starred by robot user
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 17
- name - unstar wanderer's dotfiles repo
- robot user logs in using username and password,
clicks on Explore tabbar button, searches for dotfiles repo,
selects the one by 'wanderer' and unstars it
- Pre-conditions
- user registered (test09)
- wanderer's repo is starred by the robot user
- expected result - wanderer's dotfiles repo is not starred by robot user
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 18
- name - create a mirror of a repository
- robot user logs in using username and password,
creates a mirror of the BLAKE3 repository
- Pre-conditions
- user registered (test09)
- expected result - local mirror of BLAKE3 is created
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 19
- name - delete a migrated repo
- robot user logs in using username and password,
deletes a previously created mirror repository
- Pre-conditions
- user registered (test09)
- mirror created (test18)
- expected result - mirror repo is deleted
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
test set
mobile - Testing a webpage with (emulated) mobile browser
test case
- id - 00
- name - open homepage (mobile)
- opens the specified webpage
- expected result - webpage is loaded
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 02
- name - attempt login without creds (mobile)
- attempts login without creds
- expected result - login fails
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 03
- name - sort repos by "Most stars" (mobile)
- opens the specified webpage, clicks on the burger menu, then
clicks on the Explore button to browse through repositories,
clicks on a dropdown and selects an option to sort repos by
most stars
- expected result - repositories page should be ordered by "Most stars"
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 04
- name - attempt login without password (mobile)
- attempts login using only username (no password)
- expected result - login fails
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 05
- name - attempt login without username (mobile)
- attempts login using only password (no username)
- expected result - login fails
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 06
- name - attempt login with bogus creds (mobile)
- robot attempts login using bogus creds
- expected result - login fails
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 07
- name - attempt to register short password (mobile)
- robot attempts to register an account using a short password
- expected result - registration fails
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 08
- name - attempt to register weak password (mobile)
- robot attempts to register an account using a weak password
- expected result - registration fails
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 09
- name - attempt to register (semi-)legit password (mobile)
- opens the specified webpage, clicks on burger menu, selects
'Log In' to get to login page, taps on a 'Need to register' link,
inputs a username, an email and a semi-legitimate password
retypes it for confirmation and clicks on 'Register Account'
- expected result - account registration is successful, user Dashboard page is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 10
- name - log in to an account using username (mobile)
- opens the specified webpage, taps on the "burger menu", selects
'Sign In', inputs username and password, taps on 'Sign In' button
- Pre-conditions
- user registered (test09)
- expected result - user login is successful, user Dashboard page is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 11
- name - log in to an account using email (mobile)
- opens the specified webpage, taps on the "burger menu", selects
'Sign In', inputs email and password, taps on 'Sign In' button
- Pre-conditions
- user registered (test09)
- expected result - user login is successful, user Dashboard page is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 12
- name - show Milestones page (mobile)
- robot user signs in, taps on the burger menu, selects
'Milestones'
- Pre-conditions
- user registered (test09)
- expected result - user's 'Milestones' page is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 13
- name - show Pull Requests page (mobile)
- robot user signs in, taps on the burger menu, selects
'Pull Requests'
- Pre-conditions
- user registered (test09)
- expected result - user's 'Pull Requests' page is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 14
- name - show Issues page (mobile)
- robot user signs in, taps on the burger menu, selects 'Issues'
- Pre-conditions
- user registered (test09)
- expected result - user's 'Issues' page is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 15
- name - show user profile page (mobile)
- robot user signs in, taps on the burger menu, taps on a dropdown
to have user menu shown, selects 'Profile'
- Pre-conditions
- user registered (test09)
- expected result - user profile page is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 16
- name - star wanderer's repo (mobile)
- robot user logs in, taps on the burger menu, selects Explore
button, searches for dotfiles repo, selects the one by 'wanderer'
and stars it
- Pre-conditions
- user registered (test09)
- expected result - user profile page is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 17
- name - unstar wanderer's repo (mobile)
- robot user logs in, taps on the burger menu, selects Explore
button, searches for dotfiles repo, selects the one by 'wanderer'
and unstars it
- Pre-conditions
- user registered (test09)
- expected result - user profile page is shown
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 18
- name - create a mirror of a repository (mobile)
- robot user logs in using username and password,
creates a mirror of the BLAKE3 repository
- Pre-conditions
- user registered (test09)
- expected result - local mirror of BLAKE3 is created
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
- id - 19
- name - delete a migrated repo (mobile)
- robot user logs in using username and password,
deletes a previously created mirror repository
- Pre-conditions
- user registered (test09)
- mirror created (m-test18)
- expected result - mirror repo is deleted
- steps:
see test{{tc_id}}.robot
- Post-conditions
- close browser
- execution - automatic (robotframework)
- execution time - variable, see test results
- author - ...
- date - see test results
test set
manual
- id - 00
- name - add a collaborator (mobile)
- user goes to the 'Explore' page, searches for their favourite repo
and selects it, taps on the repo 'Settings' button, taps on
'Collaborators', inputs the username of a collaborator, taps
on 'Add Collaborator' button and selects the collaborators access
level using the provided dropdown on the next screen (Read, Write, Admin)
- Pre-conditions
- user registered (automated test09)
- user has write access to a repo
- collaborator has an account
- user is logged in
- expected result - collaborator is added
- Post-conditions
- close browser
- execution - manual
- execution time - variable
- id - 01
- name - open a new issue (mobile)
- user goes to the 'Explore' page, searches for a favourite repo,
taps on the repo name, taps on the 'Issues' (if available) tab in the repo (next
to the 'Code' tab, that is selected by default), taps on
the'New Issue' button, inputs the issue title, describes the issue
into the description input box, if possible selects an assignee, if available
adds issue badges of choice, if available sets a milestone,
if applicable specifies branch or tag, previews the issue, optionally
uploads a file via provided drag-and-drop and finally taps
on the 'Create Issue' button
- Pre-conditions
- user registered (automated test09)
- user is logged in
- expected result - new issue is open
- Post-conditions
- close browser
- execution - manual
- execution time - variable
- id - 02
- name - create a milestone (mobile)
- user goes to the 'Explore' page, searches for a favourite repo,
taps on the repo name, taps on the 'Issues' tab in the repo,
taps on the 'Milestones' button (right next to the 'Labels'
button), taps on 'New Milestone', inputs milestone title and
description, optionally also due date and taps on 'Create Milestone'
- Pre-conditions
- user registered (automated test09)
- user is logged in
- expected result - milestone is created
- Post-conditions
- close browser
- execution - manual
- execution time - variable
- id - 03
- name - create a file using webui (mobile)
- user goes to the 'Explore' page, searches for a repo they own,
taps on the repo name, then taps on 'New File', inputs file name
to the filename input box, inputs content to the file body input,
sets off to commit a change, inputs a commit message and finally
commits the changes made
- Pre-conditions
- user registered (automated test09)
- user has a write access to the repo
- user is logged in
- expected result - a file at {file name} is created (from the scratch)
- Post-conditions
- close browser
- execution - manual
- execution time - variable
- id - 04
- name - upload a file using webui (mobile)
- user goes to the 'Explore' page, searches for a repo they own,
taps on the repo name, then taps on 'Upload File', selects the
file from the filesystem or uses drag-and-drop, inputs commit
message, branch and file name and commits the file
- Pre-conditions
- user registered (automated test09)
- user has a write access to the repo
- user is logged in
- expected result - a file is uploaded
- Post-conditions
- close browser
- execution - manual
- execution time - variable
- id - 05
- name - edit a file using webui (mobile)
- user goes to the 'Explore' page, searches for a repo they own,
taps on the repo name, then taps on the file they wish to edit,
taps on the 'Edit file' icon in the file header ribbon, makes
changes, inputs commit message and finally commits the changes
to the repo once they're done
- Pre-conditions
- user registered (automated test09)
- user is logged in
- expected result - edited file is commited to the repo
- Post-conditions
- close browser
- execution - manual
- execution time - variable
- id - 06
- name - set user email visibility to hidden (mobile)
- user taps on the burger menu, then taps on their avatar to show
a dropdown, taps on 'Settings', in the 'Profile' section checks
the 'Hide Email Address' checkbox, if unchecked
- Pre-conditions
- user registered (automated test09)
- user is logged in
- expected result - user email is hidden from other users
- Post-conditions
- close browser
- execution - manual
- execution time - variable
- id - 07
- name - change user avatar (mobile)
- user taps on the burger menu, then taps on their avatar to show
a dropdown, taps on 'Settings', in the 'Profile' section scrolls down,
selects 'Use Custom Avatar' radio button and after tapping on 'Browse'
button selects a custom avatar from the filesystem and finally
taps 'Update Avatar' button.
- Pre-conditions
- user registered (automated test09)
- user is logged in
- expected result - user email is hidden from other users
- Post-conditions
- close browser
- execution - manual
- execution time - variable