Homework 18
- Due Oct 28, 2020 by 9am
- Points 1
- Submitting a file upload
Watch the videos about using Selenium. Install the Selenium IDE extension for Firefox or Chrome.
Make a copy of ca16-v2 from the course Dropbox folder Links to an external site.. Fire up a PHP server. Start Selenium IDE.
Think about some of the usecases of VidQuiz. In the video, we saw that a non-VidQuiz owner shouldn't be able to sign in after an owner and see artifacts from the previous editing session. There are lots of other more typical things users will do, like these:
- add a VidQuiz
- enter edit mode
- add a question
- update a question
- leave edit mode
- see a listing of VidQuizzes
- view a VidQuiz
- answer a question in a VidQuiz
Spend 30–60 minutes writing tests for each of these (it's fine if you only get through a few). Hopefully, they all pass! If not, then there may be a bug (or something wrong with your script).
Here are some somewhat helpful resources and tips:
- the commands available are listed here: https://www.selenium.dev/selenium-ide/docs/en/api/commands Links to an external site.
- execute is a great one, which allows you to execute JavaScript; enter the JavaScript code in the "Target" box
- pause is another helpful one that can be used to give the interface time to update (the IDE will yell at you when you try to use it, be warned!)
Submit screenshots of the Selenium window for any tests you completed (your screenshots should show the steps of each test).
Rubric
Criteria | Ratings | ||
---|---|---|---|
You posted a link to the specified directory on GitHub
|
|
||
You watched any required videos
|
|
||
|