###### tags: `軟工` # SEP_Final Project (preserve) :::danger --- Red block means **Assertion** --- ::: ## TestCase 1 - Open Blog Page - `git pull` - pull newest version from github - `php artisan serve` - open port 8000 - open chrome - new tabe - type URL `localhost:8000` :::danger **Open blog home page successfully** - ![](https://i.imgur.com/sXsfxKG.png) ::: ## TestCase 2 - Tester Login - click **LOGIN** btn in index - type username & password - click **Login** btn as *Tester* :::danger **Correct user name** - ![](https://i.imgur.com/dNcJtau.png) - ![](https://i.imgur.com/bpIFd0s.png) ::: :::danger **No post in blog** - ![](https://i.imgur.com/EIuV0kB.png) ::: ## TestCase 3 - Tester Add Post - Click **Add Now** button | *Case No.* | no Title | over Title | normal Title | |:----------------:|:--------:|:----------:|:------------:| | **no Content** | 1 | 2 | 3 | | **over Content** | 4 | 5 | 6 | |**normal Content**| 7 | 8 | 9.10 | ### Case 1~8 Incorrect Post - click Post :::danger **Warning message box should be displayed** ::: ### Case 9 - Test Reset btn - Type in title & content - click **reset** :::danger **Empty title & content** ::: ### Case 10 - Correct Post - Type in title & content - click Post :::danger **Only one post** ::: :::danger **Correct pose creater name** ::: ## TestCase 4 - leave comment and delete - click **Read More** on the previous post ### Case4_1 - no comment - click reply without typing any thing in comment box :::danger **Warning message displayed** ::: ### Case4_2 - over comment - click reply with comment over 30 letters :::danger **Warning message displayed** ::: ### Case4_3 - normal comment & delete - click reply with legal comment :::danger **Correct reply & creater name** ::: - click **delete** to delete the reply :::danger **No reply** ::: - logout :::danger **Index page with no credential** ::: ## TestCase 5 - Viewer - login as *Viewer* :::danger **Correct user name** ::: - click **Read More** on the previous post :::danger **No Delete btn for the post** ::: - leave reply :::danger **Correct reply & creater name** ::: - logout :::danger **Index page with no credential** ::: ## TestCase 6 - Tester delete post - login as *Tester* - click **Read More** on the previous post :::danger **No Delete btn for the reply created by *Viewer*** ::: - click **delete** to delete the whole post :::danger **No post in blog** - ![](https://i.imgur.com/EIuV0kB.png) ::: - logout :::danger **Index page with no credential** ::: - close the tab - close the CLI to close the php port 8000 :::success **Test complete !** :::