CSC/ECE 517 Fall 2015/oss E1574 BKS
Expertiza is a web application where students can submit and peer-review learning objects (articles, code, web sites, etc). It is used in select courses at NC State and by professors at several other colleges and universities. <ref>Template:Expertiza GitHub Page</ref>
Introduction
Our contribution in this project is to write feature test for assignment submission by student. The test would mock steps taken by the student to manually submit the assignment.
Assumptions
To implement each scenario in the test, the following assumptions were taken:
- The feature test will use the development environment.
- A particular student (used in testing) entry is already done in the database. TODO explain that he is already enrolled.
- A particular instructor entry is present in the database. TODO provide credentials Name: instructor6 Password: password
- The instructor requires to create a new assignment and add the student as a participant to that assignment. These instructions are provided on Expertiza Wiki Page [ref | http://wikis.lib.ncsu.edu/index.php/Expertiza]
- Student has a topic selected from the sign up sheet.
Pre-requisites
Steps for manual submission
Steps
- Login with valid username and password
- Click on an assignment to submit
- Click on "Your Work" to submit link or upload file
- Click on "Upload Link" or "Upload File" to submit deliverable.
Feature test scenarios covered
Scenarios
- scenario 'student with invalid credentials'
- scenario 'student with valid credentials'
- scenario 'no assignment available to submit'
- scenario 'submitting link for finished assignment'
- scenario 'submitting file for finished assignment'
- scenario 'submitting link to ongoing assignment'
- scenario 'submitting file to ongoing assignment'
Gems involved
Rspec
Capybara
Files changed
Code written for feature test
How to run the feature test
How to review the feature test
Steps
- Git fork
- bundle install
- db:migrate
- use command rspec spec/features/student_assignment_submission_spec.rb