CSC/ECE 517 Fall 2016 E1684: Feature Test for Assignment Submission
Introduction to Expertiza
Expertiza is an online system that is used by students to view/submit assignments and review others' work. Expertiza also provides tools to visualize the scores and gauge the improvements made during the course semester. It also facilitates and monitors team projects. It is targeted at educational and non-profit organizations.
Expertiza is an open-source project with the source code available as a public repository on GitHub. It is developed using Ruby on Rails and is increasingly becoming robust thanks to the innumerable bugs being fixed by the community. The project has a micro-blog on SourceForge where the developer community report bugs and document updates.
Project Requirement
There should be a feature test for submission of the assignment by the student. Once the assignment is created by the instructor the only call to action for the student is assignment submission. The purpose of this project is to test whether the submission function could work properly under different scenarios.
Approach
Mock the flow of Assignment submission using Capybara and check the result of the submission.
Workflow
Insert test database: create assignment, create topic, create participant.
Student login -> click on the assignment -> upload link or upload file
Scenarios
- Upload valid link
- Upload invalid link
- Upload multiple links
- Upload empty link
- Upload file