CSC/ECE 517 Fall 2017/E1759: Difference between revisions
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
:Username: instructor6 <br> | :Username: instructor6 <br> | ||
:Password: password <br> | :Password: password <br> | ||
= Expertiza Survey Design = | |||
Expertiza should be able to distribute surveys to the users. <br /> | |||
The survey can be one of the following: 1. Course survey (all the participants of the course can take it). 2. Global survey (all the users in Expertiza can take it). <br /> | |||
The survey can also be targeted (the admin can specify a group of people who will receive this survey). <br /> | |||
The three kinds of surveys in this project are: <br /> | |||
1. Assignment Survey questionnaire <br /> | |||
2. Global survey questionnaire <br /> | |||
3. Course evaluation questionnaire <br /> | |||
[[File:Survey.png | center ]] | |||
== Tasks Assigned == | == Tasks Assigned == | ||
Line 31: | Line 42: | ||
## Deploying survey. | ## Deploying survey. | ||
# Created multiple tests to check valid and invalid cases. For example, to test valid_start_end_time? by checking that if the start time is later than the end time, the test returns false. | # Created multiple tests to check valid and invalid cases. For example, to test valid_start_end_time? by checking that if the start time is later than the end time, the test returns false. | ||
= Files modified = | = Files modified = |
Revision as of 20:30, 30 October 2017
This wiki page is the description of tests performed under E1759 OSS Assignment - Test surveys and survey deployment, for Fall 2017, CSC/ECE 517.
Introduction
Expertiza
Expertiza is an open source project based on Ruby on Rails framework. Expertiza allows the instructor to create new assignments and customize new or existing assignments. It also allows the instructor to create a list of topics the students can sign up for. Students can form teams in Expertiza to work on various projects and assignments. Students can also peer review other students' submissions. Expertiza supports submission across various document types, including the URLs and wiki pages.
Setting Up The Working Environment
One of several ways to set up the environment and the one we adopted is:-
Ubuntu-Expertiza image (.OVA) [Recommended]
- This is the link for the image. (https://drive.google.com/a/ncsu.edu/file/d/0B2vDvVjH76uEUmNKVncxRUhUVVE/view?usp=sharing)
- And you can install VirtualBox (free) and import this image into VirtualBox.
Some machine may require you to enable virtualization and then run the following commands.
cd expertiza
bash ./setup.sh
bundle install
rake db:migrate
- For logging in as an instructor:-
- Username: instructor6
- Password: password
Expertiza Survey Design
Expertiza should be able to distribute surveys to the users.
The survey can be one of the following: 1. Course survey (all the participants of the course can take it). 2. Global survey (all the users in Expertiza can take it).
The survey can also be targeted (the admin can specify a group of people who will receive this survey).
The three kinds of surveys in this project are:
1. Assignment Survey questionnaire
2. Global survey questionnaire
3. Course evaluation questionnaire
Tasks Assigned
The following tasks were performed by us as part of our project:
- Understood the flow of the survey creation and deployment function.
- Updated the RSpec file in /spec/features/ folder.
- Used fixtures to create the student record in test DB.
- Used Capybara to write functional tests for:
- Creating a new survey.
- Creating different types of questions.
- Editing different types of questions.
- Deleting different types of questions.
- Deploying survey.
- Created multiple tests to check valid and invalid cases. For example, to test valid_start_end_time? by checking that if the start time is later than the end time, the test returns false.
Files modified
- spec/features/survey_spec.rb
- spec/features/assignment_survey_spec.rb
- spec/features/global_survey_spec.rb
- spec/features/course_survey_spec.rb
- spec/features/helpers/instructor_interface_helper.rb
Testing
Login as an instructor:
1. Use credentials username: instructor6, password: password.
2. Click on Manage -> Questionnaires-> Survey / Global Survey/ Course evaluation.
3. Create a new Survey/ Global Survey/ Course evaluation filling in the parameters asked for.
4. Test if the survey is created and deployed and the questions can be added, deleted and modified.
Conclusion
After completion of this project, the creation, deployment, and deletion of surveys will be fully tested.