CSC/ECE 517 Fall 2015/oss E1574 BKS: Difference between revisions
Jump to navigation
Jump to search
(Created page with "'''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 ...") |
|||
Line 5: | Line 5: | ||
===Assumptions=== | ===Assumptions=== | ||
To implement each scenario in the test, the following assumptions | To implement each scenario in the test, the following assumptions are taken: | ||
# The feature test will use the development environment. | # The feature test will use the development environment. In particular, it will use the '''expertiza_development''' database. | ||
# A | # A student entry is assumed to be present in the database. The credentials for this student is '''student13''' as username and '''password''' as password. | ||
# | # An instructor entry is also assumed to be present in the database. Its credentials are username: '''instructor6''' and password: '''password'''. | ||
# | # A simple assignment is created wherein there are no teams and topics. | ||
# It requires user to first run the "assignment_creation.rb", so that the student becomes eligible to submit his/her work. | |||
===Pre-requisites=== | ===Pre-requisites=== | ||
Line 18: | Line 18: | ||
# Login with valid username and password | # Login with valid username and password | ||
# Click on an assignment to submit | # Click on an assignment to submit | ||
# Click on "Your Work" | # Click on "Your Work" | ||
# Paste the link or browse the file to upload | |||
# Click on "Upload Link" or "Upload File" to submit deliverable. | # Click on "Upload Link" or "Upload File" to submit deliverable. | ||
===Feature test scenarios covered=== | ===Feature test scenarios covered=== | ||
Scenarios | Scenarios | ||
# scenario 'student with valid credentials' | # scenario 'student with valid credentials' | ||
# scenario 'no assignment available to submit' | # scenario 'no assignment available to submit' |
Revision as of 02:00, 1 November 2015
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 are taken:
- The feature test will use the development environment. In particular, it will use the expertiza_development database.
- A student entry is assumed to be present in the database. The credentials for this student is student13 as username and password as password.
- An instructor entry is also assumed to be present in the database. Its credentials are username: instructor6 and password: password.
- A simple assignment is created wherein there are no teams and topics.
- It requires user to first run the "assignment_creation.rb", so that the student becomes eligible to submit his/her work.
Pre-requisites
Steps for manual submission
Steps
- Login with valid username and password
- Click on an assignment to submit
- Click on "Your Work"
- Paste the link or browse the file to upload
- Click on "Upload Link" or "Upload File" to submit deliverable.
Feature test scenarios covered
Scenarios
- 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