CSC/ECE 517 Fall 2017/E1759: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 44: Line 44:


[[File:Useri.png | center ]]
[[File:Useri.png | center ]]
= Conclusion =
After completion of this project, the creation, deployment, and deletion of surveys will be fully tested.

Revision as of 19:26, 27 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.

Problem Statement

The following tasks were performed by us as part of our project:

  1. Understood the flow of the survey creation and deployment function.
  2. Updated the RSpec file in /spec/features/ folder.
  3. Used fixtures to create the student record in test DB.
  4. Used Capybara to write functional tests for:
    1. Creating a new survey.
    2. Creating different types of questions.
    3. Editing different types of questions.
    4. Deleting different types of questions.
    5. Deploying survey.
  5. 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.

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

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.