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 09dd9bec9c
All checks were successful
continuous-integration/drone/push Build is passing
feat: added LICENSE file
2020-06-23 02:34:23 +02:00

547 lines
18 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
- Pre-conditions
- robotframework + selenium + chromium + chromedriver
- 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
- Pre-conditions
- robotframework + selenium + chromium + chromedriver
- 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
- Pre-conditions
- robotframework + selenium + chromium + chromedriver
- 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
- Pre-conditions
- robotframework + selenium + chromium + chromedriver
- 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
- Pre-conditions
- robotframework + selenium + chromium + chromedriver
- 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
- Pre-conditions
- robotframework + selenium + chromium + chromedriver
- 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
- Pre-conditions
- robotframework + selenium + chromium + chromedriver
- 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
- Pre-conditions
- robotframework + selenium + chromium + chromedriver
- 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
- Pre-conditions
- robotframework + selenium + chromium + chromedriver
- 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
- Pre-conditions
- robotframework + selenium + chromium + chromedriver
- 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
- robotframework + selenium + chromium + chromedriver
- 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
- robotframework + selenium + chromium + chromedriver
- 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
- robotframework + selenium + chromium + chromedriver
- 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
- robotframework + selenium + chromium + chromedriver
- 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
- robotframework + selenium + chromium + chromedriver
- 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
- robotframework + selenium + chromium + chromedriver
- 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
- robotframework + selenium + chromium + chromedriver
- 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
- robotframework + selenium + chromium + chromedriver
- 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
test set
mobile - Testing a webpage with (emulated) mobile browser
test case
- id - 00
- name - open homepage (mobile)
- opens the specified webpage
- Pre-conditions
- robotframework + selenium + (emulated) mobile chromium + chromedriver
- 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
- Pre-conditions
- robotframework + selenium + (emulated) mobile chromium + chromedriver
- 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
- Pre-conditions
- robotframework + selenium + (emulated) mobile chromium + chromedriver
- 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)
- Pre-conditions
- robotframework + selenium + (emulated) mobile chromium + chromedriver
- 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)
- Pre-conditions
- robotframework + selenium + (emulated) mobile chromium + chromedriver
- 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
- Pre-conditions
- robotframework + selenium + (emulated) mobile chromium + chromedriver
- 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
- Pre-conditions
- robotframework + selenium + (emulated) mobile chromium + chromedriver
- 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
- Pre-conditions
- robotframework + selenium + (emulated) mobile chromium + chromedriver
- 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'
- Pre-conditions
- robotframework + selenium + (emulated) mobile chromium + chromedriver
- 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
- robotframework + selenium + (emulated) mobile chromium + chromedriver
- 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
- robotframework + selenium + (emulated) mobile chromium + chromedriver
- 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
- robotframework + selenium + (emulated) mobile chromium + chromedriver
- 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
- robotframework + selenium + (emulated) mobile chromium + chromedriver
- 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
- robotframework + selenium + (emulated) mobile chromium + chromedriver
- 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
- robotframework + selenium + (emulated) mobile chromium + chromedriver
- 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