<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rcoutin</id>
	<title>Expertiza_Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rcoutin"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Rcoutin"/>
	<updated>2026-10-03T14:15:27Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E17A1&amp;diff=114442</id>
		<title>CSC/ECE 517 Fall 2017/E17A1</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E17A1&amp;diff=114442"/>
		<updated>2017-12-04T20:47:41Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki page is the description of the E17A1 semester project - Let experts as well as students do reviews - for Fall 2017, CSC/ECE 517.&lt;br /&gt;
&lt;br /&gt;
Demo link: https://www.youtube.com/watch?v=MyMc1RlLEzU&amp;amp;feature=youtu.be&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
=== Expertiza ===&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Environment Setup ==&lt;br /&gt;
We have tried two different ways of setting up the Expertiza Environment, first approach used the Ubuntu-Expertiza image while the second approach involved setting up on NCSU's VCL Infrastructure. The process involving both of these approaches are detailed below. We referred the following [https://docs.google.com/document/d/1tXmwju6R7KQbvycku-bdXxa6rXSUN4BMyvjY3ROmMSw/ link].&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu-Expertiza image (.OVA) [Recommended]''' &amp;lt;br&amp;gt;&lt;br /&gt;
:This is the link for the image. (https://drive.google.com/a/ncsu.edu/file/d/0B2vDvVjH76uEUmNKVncxRUhUVVE/view?usp=sharing) &amp;lt;br&amp;gt;&lt;br /&gt;
:And you can install VirtualBox (free) and import this image into VirtualBox. &amp;lt;br&amp;gt;&lt;br /&gt;
'''Some machine may require you to enable virtualization and then run the following commands.'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;cd expertiza&lt;br /&gt;
bash ./setup.sh&lt;br /&gt;
bundle install&lt;br /&gt;
rake db:migrate&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''VCL Setup'''&lt;br /&gt;
The process of getting expertiza up and running on VCL is well detailed in the following [https://youtu.be/AStOjov7EQk video].&lt;br /&gt;
After completing the steps mentioned in the video, Additionally, we had to install Redis and NodeJS separately to get the expertiza site running. The process is detailed below:&lt;br /&gt;
* Steps to install Redis:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://download.redis.io/redis-stable.tar.gz&lt;br /&gt;
tar xvzf redis-stable.tar.gz&lt;br /&gt;
cd redis-stable&lt;br /&gt;
make&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run the redis-server using:&lt;br /&gt;
&amp;lt;pre&amp;gt;redis-server&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Steps to install NodeJS on CentOS:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://nodejs.org/dist/v0.10.30/node-v0.10.30.tar.gz&lt;br /&gt;
tar xzvf node-v* &amp;amp;&amp;amp; cd node-v*&lt;br /&gt;
sudo yum install gcc gcc-c++&lt;br /&gt;
./configure&lt;br /&gt;
make&lt;br /&gt;
sudo make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Run the expertiza Rails server&lt;br /&gt;
&amp;lt;pre&amp;gt;thin start&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*For logging in as an instructor:- &amp;lt;br&amp;gt;&lt;br /&gt;
:Username: instructor6 &amp;lt;br&amp;gt;&lt;br /&gt;
:Password: password &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*For logging in as an student:- &amp;lt;br&amp;gt;&lt;br /&gt;
:Username: student17 &amp;lt;br&amp;gt;&lt;br /&gt;
:Password: password &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Problem Statement and Project Purpose =&lt;br /&gt;
=== Existing Limitations ===&lt;br /&gt;
At present the calibration functionality is limited, the following points present the scenarios where the current implementation is lacking:&lt;br /&gt;
# No support for varying rubric by round feature.&lt;br /&gt;
# From the perspective of the student, lack of differentiation of review - whether its from an expert or otherwise. &lt;br /&gt;
# A student is not notified once an expert submits a review.&lt;br /&gt;
# Additionally, a student should be able to see how an expert rated his/her assignment - similar to how it's done in calibration results for calibrated assignments(''As seen when '''Show Calibration Results''' is clicked.''). &lt;br /&gt;
&lt;br /&gt;
=== Tasks Involved ===&lt;br /&gt;
Tasks are broken down into sub-tasks as follows:&lt;br /&gt;
* Refactoring:&lt;br /&gt;
** a checkbox in the &amp;quot;General&amp;quot; Tab from “Calibrated peer-review for training?” to “Add expert peer review?”&lt;br /&gt;
** a tab name for instructor from “Calibration” to “Expert review” on the assignment setting page&lt;br /&gt;
** partial file from “_calibration.html.erb” to “_expert_review.html.erb”&lt;br /&gt;
** the link title on student side from “show calibration results” to “show expert peer-review results”&lt;br /&gt;
** the file “response/show_calibration_results_for_student.html.erb” to “response/show_expert_review_results_for_student.html.erb”&lt;br /&gt;
** title in “response/show_calibration_results_for_student.html.erb” to start with “Expert review comparison report for”&lt;br /&gt;
* Functionality changes&lt;br /&gt;
** Vary-rubric-by-round - Currently, the functionality of calibration is limited. It does not support varying-rubric-by-round feature. We need to add support for having different rubrics for different rounds.&lt;br /&gt;
** Both TAs and instructors could do expert reviews - need to modify “response/show_calibration_results_for_student.html.erb” to make it support multiple expert reviews.&lt;br /&gt;
&lt;br /&gt;
=== Affected Codebase ===&lt;br /&gt;
==== Database Related ====&lt;br /&gt;
A new migration file needs to be written to make the following changes in the DB Schema (''And across all files using these fields''):&lt;br /&gt;
* “is_calibrated” field in assignment table to “has_expert_review”&lt;br /&gt;
* “calibrate_to” field in response_map table to “expert_review_to”&lt;br /&gt;
&lt;br /&gt;
==== Front-end Related ====&lt;br /&gt;
The following files need to be modified and/or refactored based on their respective tasks:&lt;br /&gt;
#student_review/_responses.html.erb&lt;br /&gt;
#student_review/list.html.erb&lt;br /&gt;
#assignments/edit.html.erb&lt;br /&gt;
#assignments/edit/_calibration.html.erb&lt;br /&gt;
#response/show_calibration_results_for_student.html.erb&lt;br /&gt;
&lt;br /&gt;
= Project Design =&lt;br /&gt;
For the purpose of this project, experts in the expertiza domain are Teaching Assistants(TAs) and Instructors.&lt;br /&gt;
&lt;br /&gt;
The following two patterns are implemented in the project -&lt;br /&gt;
&lt;br /&gt;
1.MVC Pattern – The project is implemented in Ruby on Rails that uses MVC architecture. It separates an application’s data model, user interface, and control logic into three distinct components (model, view, and controller, respectively).&lt;br /&gt;
&lt;br /&gt;
2.DRY Principle – We are trying to reuse the existing functionalities in Expertiza, thus avoiding code duplication. Whenever possible, code modification based on the existing classes, controllers, or tables will be done instead of creating the new one.&lt;br /&gt;
&lt;br /&gt;
The following diagram shows the User Interface changes that are to be made as part of the project.&lt;br /&gt;
&lt;br /&gt;
This diagram shows the Assignment Setting page in the General tab.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Change1 copy.jpg | center ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This diagram shows the Assignment Setting page in the Calibration tab.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:17A1Change2.png | center ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following diagram shows the flow of control in case of peer reviews.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:FlowChart.png | center ]]&lt;br /&gt;
&lt;br /&gt;
= Use Case Diagram =&lt;br /&gt;
The following is the use case diagram for the feature that we are going to implement.&lt;br /&gt;
&lt;br /&gt;
[[File:UseCaseDiagram_E17A1.jpg | center]]&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
The expertiza project uses RSpec and Capybara to test the various functionality associated with the back-end and front-end components. Hence, we will also be writing test cases for the new functionality - added as a result of this project. We would also need to add additional fixtures in '''spec/feature''' to be used in the testcases.&lt;br /&gt;
&lt;br /&gt;
There are three main actors that interact with the new functionality, these are:&lt;br /&gt;
* Instructors&lt;br /&gt;
* Teaching Assistants&lt;br /&gt;
* Students&lt;br /&gt;
Hence, we would have to write tests for each of these types of users and test the expert review functionality.&lt;br /&gt;
&lt;br /&gt;
The tests for the aforementioned changes will be incorpoirated in a new test file called 'expert_review_spec.rb' located in [https://github.com/expertiza/expertiza/tree/master/spec/features spec/features] folder. &lt;br /&gt;
&lt;br /&gt;
Some of the tests that we have in mind as of now, are as follows:&lt;br /&gt;
* '''Instructor'''&lt;br /&gt;
** Login as instructor using pre-configured credential.&lt;br /&gt;
** Go to &amp;quot;General&amp;quot; tab &lt;br /&gt;
*** Verify &amp;quot;Add expert peer review?&amp;quot; present instead of &amp;quot;Calibrated peer-review for training?&amp;quot;&lt;br /&gt;
** Verify whether the instructor can see &amp;quot;Expert Review&amp;quot; on the assignment setting page.  &lt;br /&gt;
** Perform Expert Review, based on values declared in Fixtures available to Instructor.&lt;br /&gt;
&lt;br /&gt;
* '''Teaching Assistant'''&lt;br /&gt;
** Login as TA using pre-configured credential.&lt;br /&gt;
** Go to &amp;quot;General&amp;quot; tab &lt;br /&gt;
*** Verify &amp;quot;Add expert peer review?&amp;quot; present instead of &amp;quot;Calibrated peer-review for training?&amp;quot;&lt;br /&gt;
** Verify whether the TA can see &amp;quot;Expert Review&amp;quot; on the assignment setting page.  &lt;br /&gt;
** Perform Expert Review, based on values declared in Fixtures available to TA.&lt;br /&gt;
&lt;br /&gt;
* '''Student'''&lt;br /&gt;
** Log in as Student using pre-configured credential.&lt;br /&gt;
** Verify if student can see &amp;quot;Show expert peer-review results&amp;quot; &lt;br /&gt;
*** When a new expert-review is available.&lt;br /&gt;
*** Show nothing when nothing is available.&lt;br /&gt;
** Testing to check if the reviews show up.&lt;br /&gt;
*** If added by TA.&lt;br /&gt;
*** If added by instructor.&lt;br /&gt;
*** If multiple reviews from either TA or instructor show up as a list.&lt;br /&gt;
** Testing varying-rubric-by-round feature.&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:UseCaseDiagram_E17A1.jpg&amp;diff=113242</id>
		<title>File:UseCaseDiagram E17A1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:UseCaseDiagram_E17A1.jpg&amp;diff=113242"/>
		<updated>2017-11-14T17:35:57Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: uploaded a new version of &amp;amp;quot;File:UseCaseDiagram E17A1.jpg&amp;amp;quot;: Reverted to version as of 17:34, 14 November 2017&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Use Case diagram for E17A1 - Let experts as well as students do reviews&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:UseCaseDiagram_E17A1.jpg&amp;diff=113241</id>
		<title>File:UseCaseDiagram E17A1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:UseCaseDiagram_E17A1.jpg&amp;diff=113241"/>
		<updated>2017-11-14T17:35:19Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: uploaded a new version of &amp;amp;quot;File:UseCaseDiagram E17A1.jpg&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Use Case diagram for E17A1 - Let experts as well as students do reviews&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:UseCaseDiagram_E17A1.jpg&amp;diff=113240</id>
		<title>File:UseCaseDiagram E17A1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:UseCaseDiagram_E17A1.jpg&amp;diff=113240"/>
		<updated>2017-11-14T17:34:22Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: uploaded a new version of &amp;amp;quot;File:UseCaseDiagram E17A1.jpg&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Use Case diagram for E17A1 - Let experts as well as students do reviews&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:UseCaseDiagram_E17A1.jpg&amp;diff=113239</id>
		<title>File:UseCaseDiagram E17A1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:UseCaseDiagram_E17A1.jpg&amp;diff=113239"/>
		<updated>2017-11-14T17:33:16Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: uploaded a new version of &amp;amp;quot;File:UseCaseDiagram E17A1.jpg&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Use Case diagram for E17A1 - Let experts as well as students do reviews&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E17A1&amp;diff=113238</id>
		<title>CSC/ECE 517 Fall 2017/E17A1</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E17A1&amp;diff=113238"/>
		<updated>2017-11-14T16:59:15Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: Adding use case diagram&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki page is the description of the E17A1 semester project - Let experts as well as students do reviews - for Fall 2017, CSC/ECE 517.&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
=== Expertiza ===&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Environment Setup ==&lt;br /&gt;
We have tried two different ways of setting up the Expertiza Environment, first approach used the Ubuntu-Expertiza image while the second approach involved setting up on NCSU's VCL Infrastructure. The process involving both of these approaches are detailed below. We referred the following [https://docs.google.com/document/d/1tXmwju6R7KQbvycku-bdXxa6rXSUN4BMyvjY3ROmMSw/ link].&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu-Expertiza image (.OVA) [Recommended]''' &amp;lt;br&amp;gt;&lt;br /&gt;
:This is the link for the image. (https://drive.google.com/a/ncsu.edu/file/d/0B2vDvVjH76uEUmNKVncxRUhUVVE/view?usp=sharing) &amp;lt;br&amp;gt;&lt;br /&gt;
:And you can install VirtualBox (free) and import this image into VirtualBox. &amp;lt;br&amp;gt;&lt;br /&gt;
'''Some machine may require you to enable virtualization and then run the following commands.'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;cd expertiza&lt;br /&gt;
bash ./setup.sh&lt;br /&gt;
bundle install&lt;br /&gt;
rake db:migrate&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''VCL Setup'''&lt;br /&gt;
The process of getting expertiza up and running on VCL is well detailed in the following [https://youtu.be/AStOjov7EQk video].&lt;br /&gt;
After completing the steps mentioned in the video, Additionally, we had to install Redis and NodeJS separately to get the expertiza site running. The process is detailed below:&lt;br /&gt;
* Steps to install Redis:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://download.redis.io/redis-stable.tar.gz&lt;br /&gt;
tar xvzf redis-stable.tar.gz&lt;br /&gt;
cd redis-stable&lt;br /&gt;
make&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run the redis-server using:&lt;br /&gt;
&amp;lt;pre&amp;gt;redis-server&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Steps to install NodeJS on CentOS:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://nodejs.org/dist/v0.10.30/node-v0.10.30.tar.gz&lt;br /&gt;
tar xzvf node-v* &amp;amp;&amp;amp; cd node-v*&lt;br /&gt;
sudo yum install gcc gcc-c++&lt;br /&gt;
./configure&lt;br /&gt;
make&lt;br /&gt;
sudo make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Run the expertiza Rails server&lt;br /&gt;
&amp;lt;pre&amp;gt;thin start&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*For logging in as an instructor:- &amp;lt;br&amp;gt;&lt;br /&gt;
:Username: instructor6 &amp;lt;br&amp;gt;&lt;br /&gt;
:Password: password &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*For logging in as an student:- &amp;lt;br&amp;gt;&lt;br /&gt;
:Username: student17 &amp;lt;br&amp;gt;&lt;br /&gt;
:Password: password &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Problem Statement and Project Purpose =&lt;br /&gt;
=== Existing Limitations ===&lt;br /&gt;
At present the calibration functionality is limited, the following points present the scenarios where the current implementation is lacking:&lt;br /&gt;
# No support for varying rubric by round feature.&lt;br /&gt;
# From the perspective of the student, lack of differentiation of review - whether its from an expert or otherwise. &lt;br /&gt;
# A student is not notified once an expert submits a review.&lt;br /&gt;
# Additionally, a student should be able to see how an expert rated his/her assignment - similar to how it's done in calibration results for calibrated assignments(''As seen when '''Show Calibration Results''' is clicked.''). &lt;br /&gt;
&lt;br /&gt;
=== Tasks Involved ===&lt;br /&gt;
Tasks are broken down into sub-tasks as follows:&lt;br /&gt;
* Refactoring:&lt;br /&gt;
** a checkbox in the &amp;quot;General&amp;quot; Tab from “Calibrated peer-review for training?” to “Add expert peer review?”&lt;br /&gt;
** a tab name for instructor from “Calibration” to “Expert review” on the assignment setting page&lt;br /&gt;
** partial file from “_calibration.html.erb” to “_expert_review.html.erb”&lt;br /&gt;
** the link title on student side from “show calibration results” to “show expert peer-review results”&lt;br /&gt;
** the file “response/show_calibration_results_for_student.html.erb” to “response/show_expert_review_results_for_student.html.erb”&lt;br /&gt;
** title in “response/show_calibration_results_for_student.html.erb” to start with “Expert review comparison report for”&lt;br /&gt;
* Functionality changes&lt;br /&gt;
** Vary-rubric-by-round - Currently, the functionality of calibration is limited. It does not support varying-rubric-by-round feature. We need to add support for having different rubrics for different rounds.&lt;br /&gt;
** Both TAs and instructors could do expert reviews - need to modify “response/show_calibration_results_for_student.html.erb” to make it support multiple expert reviews.&lt;br /&gt;
&lt;br /&gt;
=== Affected Codebase ===&lt;br /&gt;
==== Database Related ====&lt;br /&gt;
A new migration file needs to be written to make the following changes in the DB Schema (''And across all files using these fields''):&lt;br /&gt;
* “is_calibrated” field in assignment table to “has_expert_review”&lt;br /&gt;
* “calibrate_to” field in response_map table to “expert_review_to”&lt;br /&gt;
&lt;br /&gt;
==== Front-end Related ====&lt;br /&gt;
The following files need to be modified and/or refactored based on their respective tasks:&lt;br /&gt;
#student_review/_responses.html.erb&lt;br /&gt;
#student_review/list.html.erb&lt;br /&gt;
#assignments/edit.html.erb&lt;br /&gt;
#assignments/edit/_calibration.html.erb&lt;br /&gt;
#response/show_calibration_results_for_student.html.erb&lt;br /&gt;
&lt;br /&gt;
= Project Design =&lt;br /&gt;
For the purpose of this project, experts in the expertiza domain are Teaching Assistants(TAs) and Instructors.&lt;br /&gt;
&lt;br /&gt;
The following two patterns are implemented in the project -&lt;br /&gt;
&lt;br /&gt;
1.MVC Pattern – The project is implemented in Ruby on Rails that uses MVC architecture. It separates an application’s data model, user interface, and control logic into three distinct components (model, view, and controller, respectively).&lt;br /&gt;
&lt;br /&gt;
2.DRY Principle – We are trying to reuse the existing functionalities in Expertiza, thus avoiding code duplication. Whenever possible, code modification based on the existing classes, controllers, or tables will be done instead of creating the new one.&lt;br /&gt;
&lt;br /&gt;
The following diagram shows the User Interface changes that are to be made as part of the project.&lt;br /&gt;
&lt;br /&gt;
This diagram shows the Assignment Setting page in the General tab.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Change1 copy.jpg | center ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This diagram shows the Assignment Setting page in the Calibration tab.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:17A1Change2.png | center ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following diagram shows the flow of control in case of peer reviews.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:FlowChart.png | center ]]&lt;br /&gt;
&lt;br /&gt;
= Use Case Diagram =&lt;br /&gt;
The following is the use case diagram for the feature that we are going to implement.&lt;br /&gt;
&lt;br /&gt;
[[File:UseCaseDiagram_E17A1.jpg | center]]&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
The expertiza project uses RSpec and Capybara to test the various functionality associated with the back-end and front-end components. Hence, we will also be writing test cases for the new functionality - added as a result of this project. We would also need to add additional fixtures in '''spec/feature''' to be used in the testcases.&lt;br /&gt;
&lt;br /&gt;
There are three main actors that interact with the new functionality, these are:&lt;br /&gt;
* Instructors&lt;br /&gt;
* Teaching Assistants&lt;br /&gt;
* Students&lt;br /&gt;
Hence, we would have to write tests for each of these types of users and test the expert review functionality.&lt;br /&gt;
&lt;br /&gt;
The tests for the aforementioned changes will be incorpoirated in a new test file called 'expert_review_spec.rb' located in [https://github.com/expertiza/expertiza/tree/master/spec/features spec/features] folder. &lt;br /&gt;
&lt;br /&gt;
Some of the tests that we have in mind as of now, are as follows:&lt;br /&gt;
* '''Instructor'''&lt;br /&gt;
** Login as instructor using pre-configured credential.&lt;br /&gt;
** Go to &amp;quot;General&amp;quot; tab &lt;br /&gt;
*** Verify &amp;quot;Add expert peer review?&amp;quot; present instead of &amp;quot;Calibrated peer-review for training?&amp;quot;&lt;br /&gt;
** Verify whether the instructor can see &amp;quot;Expert Review&amp;quot; on the assignment setting page.  &lt;br /&gt;
** Perform Expert Review, based on values declared in Fixtures available to Instructor.&lt;br /&gt;
&lt;br /&gt;
* '''Teaching Assistant'''&lt;br /&gt;
** Login as TA using pre-configured credential.&lt;br /&gt;
** Go to &amp;quot;General&amp;quot; tab &lt;br /&gt;
*** Verify &amp;quot;Add expert peer review?&amp;quot; present instead of &amp;quot;Calibrated peer-review for training?&amp;quot;&lt;br /&gt;
** Verify whether the TA can see &amp;quot;Expert Review&amp;quot; on the assignment setting page.  &lt;br /&gt;
** Perform Expert Review, based on values declared in Fixtures available to TA.&lt;br /&gt;
&lt;br /&gt;
* '''Student'''&lt;br /&gt;
** Log in as Student using pre-configured credential.&lt;br /&gt;
** Verify if student can see &amp;quot;Show expert peer-review results&amp;quot; &lt;br /&gt;
*** When a new expert-review is available.&lt;br /&gt;
*** Show nothing when nothing is available.&lt;br /&gt;
** Testing to check if the reviews show up.&lt;br /&gt;
*** If added by TA.&lt;br /&gt;
*** If added by instructor.&lt;br /&gt;
*** If multiple reviews from either TA or instructor show up as a list.&lt;br /&gt;
** Testing varying-rubric-by-round feature.&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:UseCaseDiagram_E17A1.jpg&amp;diff=113237</id>
		<title>File:UseCaseDiagram E17A1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:UseCaseDiagram_E17A1.jpg&amp;diff=113237"/>
		<updated>2017-11-14T16:58:28Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: Use Case diagram for E17A1 - Let experts as well as students do reviews&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Use Case diagram for E17A1 - Let experts as well as students do reviews&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:UseCaseDiagram_E17A1.jpg.jpg&amp;diff=113236</id>
		<title>File:UseCaseDiagram E17A1.jpg.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:UseCaseDiagram_E17A1.jpg.jpg&amp;diff=113236"/>
		<updated>2017-11-14T16:56:09Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E17A1&amp;diff=112650</id>
		<title>CSC/ECE 517 Fall 2017/E17A1</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E17A1&amp;diff=112650"/>
		<updated>2017-11-08T04:07:13Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: /* Database Related */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki page is the description of the E17A1 semester project - Let experts as well as students do reviews - for Fall 2017, CSC/ECE 517.&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
=== Expertiza ===&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Environment Setup ==&lt;br /&gt;
We have tried two different ways of setting up the Expertiza Environment, first approach used the Ubuntu-Expertiza image while the second approach involved setting up on NCSU's VCL Infrastructure. The process involving both of these approaches are detailed below. We referred the following [https://docs.google.com/document/d/1tXmwju6R7KQbvycku-bdXxa6rXSUN4BMyvjY3ROmMSw/ link].&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu-Expertiza image (.OVA) [Recommended]''' &amp;lt;br&amp;gt;&lt;br /&gt;
:This is the link for the image. (https://drive.google.com/a/ncsu.edu/file/d/0B2vDvVjH76uEUmNKVncxRUhUVVE/view?usp=sharing) &amp;lt;br&amp;gt;&lt;br /&gt;
:And you can install VirtualBox (free) and import this image into VirtualBox. &amp;lt;br&amp;gt;&lt;br /&gt;
'''Some machine may require you to enable virtualization and then run the following commands.'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;cd expertiza&lt;br /&gt;
bash ./setup.sh&lt;br /&gt;
bundle install&lt;br /&gt;
rake db:migrate&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''VCL Setup'''&lt;br /&gt;
The process of getting expertiza up and running on VCL is well detailed in the following [https://youtu.be/AStOjov7EQk video].&lt;br /&gt;
After completing the steps mentioned in the video, Additionally, we had to install Redis and NodeJS separately to get the expertiza site running. The process is detailed below:&lt;br /&gt;
* Steps to install Redis:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://download.redis.io/redis-stable.tar.gz&lt;br /&gt;
tar xvzf redis-stable.tar.gz&lt;br /&gt;
cd redis-stable&lt;br /&gt;
make&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run the redis-server using:&lt;br /&gt;
&amp;lt;pre&amp;gt;redis-server&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Steps to install NodeJS on CentOS:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://nodejs.org/dist/v0.10.30/node-v0.10.30.tar.gz&lt;br /&gt;
tar xzvf node-v* &amp;amp;&amp;amp; cd node-v*&lt;br /&gt;
sudo yum install gcc gcc-c++&lt;br /&gt;
./configure&lt;br /&gt;
make&lt;br /&gt;
sudo make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Run the expertiza Rails server&lt;br /&gt;
&amp;lt;pre&amp;gt;thin start&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*For logging in as an instructor:- &amp;lt;br&amp;gt;&lt;br /&gt;
:Username: instructor6 &amp;lt;br&amp;gt;&lt;br /&gt;
:Password: password &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*For logging in as an student:- &amp;lt;br&amp;gt;&lt;br /&gt;
:Username: student17 &amp;lt;br&amp;gt;&lt;br /&gt;
:Password: password &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Action Items =&lt;br /&gt;
=== Existing Limitations ===&lt;br /&gt;
At present the calibration functionality is limited, the following points present the scenarios where the current implementation is lacking:&lt;br /&gt;
# No support for varying rubric by round feature.&lt;br /&gt;
# From the perspective of the student, lack of differentiation of review - whether its from an expert or otherwise. &lt;br /&gt;
# A student is not notified once an expert submits a review.&lt;br /&gt;
# Additionally, a student should be able to see how an expert rated his/her assignment - similar to how it's done in calibration results for calibrated assignments(''As seen when '''Show Calibration Results''' is clicked.''). &lt;br /&gt;
&lt;br /&gt;
=== Tasks Involved ===&lt;br /&gt;
Tasks are broken down into sub-tasks as follows:&lt;br /&gt;
* Refactoring:&lt;br /&gt;
** a checkbox in the &amp;quot;General&amp;quot; Tab from “Calibrated peer-review for training?” to “Add expert peer review?”&lt;br /&gt;
** a tab name for instructor from “Calibration” to “Expert review” on the assignment setting page&lt;br /&gt;
** partial file from “_calibration.html.erb” to “_expert_review.html.erb”&lt;br /&gt;
** the link title on student side from “show calibration results” to “show expert peer-review results”&lt;br /&gt;
** the file “response/show_calibration_results_for_student.html.erb” to “response/show_expert_review_results_for_student.html.erb”&lt;br /&gt;
** title in “response/show_calibration_results_for_student.html.erb” to start with “Expert review comparison report for”&lt;br /&gt;
* Functionality changes&lt;br /&gt;
** Vary-rubric-by-round - Currently, the functionality of calibration is limited. It does not support varying-rubric-by-round feature. We need to add support for having different rubrics for different rounds.&lt;br /&gt;
** Both TAs and instructors could do expert reviews - need to modify “response/show_calibration_results_for_student.html.erb” to make it support multiple expert reviews.&lt;br /&gt;
&lt;br /&gt;
=== Affected Codebase ===&lt;br /&gt;
==== Database Related ====&lt;br /&gt;
A new migration file needs to be written to make the following changes in the DB Schema (''And across all files using these fields''):&lt;br /&gt;
* “is_calibrated” field in assignment table to “has_expert_review”&lt;br /&gt;
* “calibrate_to” field in response_map table to “expert_review_to”&lt;br /&gt;
&lt;br /&gt;
==== Front-end Related ====&lt;br /&gt;
The following files need to be modified and/or refactored based on their respective tasks:&lt;br /&gt;
#student_review/_responses.html.erb&lt;br /&gt;
#student_review/list.html.erb&lt;br /&gt;
#assignments/edit.html.erb&lt;br /&gt;
#assignments/edit/_calibration.html.erb&lt;br /&gt;
#response/show_calibration_results_for_student.html.erb&lt;br /&gt;
&lt;br /&gt;
= Design Overview =&lt;br /&gt;
For the purpose of this project, experts in the expertiza domain are Teaching Assistants(TAs) and Instructors.&lt;br /&gt;
&lt;br /&gt;
The following two patterns are implemented in the project -&lt;br /&gt;
&lt;br /&gt;
1.MVC Pattern – The project is implemented in Ruby on Rails that uses MVC architecture. It separates an application’s data model, user interface, and control logic into three distinct components (model, view, and controller, respectively).&lt;br /&gt;
&lt;br /&gt;
2.DRY Principle – We are trying to reuse the existing functionalities in Expertiza, thus avoiding code duplication. Whenever possible, code modification based on the existing classes, controllers, or tables will be done instead of creating the new one.&lt;br /&gt;
&lt;br /&gt;
The following diagram shows the control flow of reviews in expertiza.&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
The expertiza project uses RSpec and Capybara to test the various functionality associated with the back-end and front-end components. Hence, we will also be writing test cases for the new functionality - added as a result of this project. We would also need to add additional fixtures in '''spec/feature''' to be used in the testcases.&lt;br /&gt;
&lt;br /&gt;
There are three main actors that interact with the new functionality, these are:&lt;br /&gt;
* Instructors&lt;br /&gt;
* Teaching Assistants&lt;br /&gt;
* Students&lt;br /&gt;
Hence, we would have to write tests for each of these types of users and test the expert review functionality.&lt;br /&gt;
&lt;br /&gt;
The tests for the aforementioned changes will be incorpoirated in a new test file called 'expert_review_spec.rb' located in [https://github.com/expertiza/expertiza/tree/master/spec/features spec/features] folder. &lt;br /&gt;
&lt;br /&gt;
Some of the tests that we have in mind as of now, are as follows:&lt;br /&gt;
* '''Instructor'''&lt;br /&gt;
** Login as instructor using pre-configured credential.&lt;br /&gt;
** Go to &amp;quot;General&amp;quot; tab &lt;br /&gt;
*** Verify &amp;quot;Add expert peer review?&amp;quot; present instead of &amp;quot;Calibrated peer-review for training?&amp;quot;&lt;br /&gt;
** Verify whether the instructor can see &amp;quot;Expert Review&amp;quot; on the assignment setting page.  &lt;br /&gt;
** Perform Expert Review, based on values declared in Fixtures available to Instructor.&lt;br /&gt;
&lt;br /&gt;
* '''Teaching Assistant'''&lt;br /&gt;
** Login as TA using pre-configured credential.&lt;br /&gt;
** Go to &amp;quot;General&amp;quot; tab &lt;br /&gt;
*** Verify &amp;quot;Add expert peer review?&amp;quot; present instead of &amp;quot;Calibrated peer-review for training?&amp;quot;&lt;br /&gt;
** Verify whether the TA can see &amp;quot;Expert Review&amp;quot; on the assignment setting page.  &lt;br /&gt;
** Perform Expert Review, based on values declared in Fixtures available to TA.&lt;br /&gt;
&lt;br /&gt;
* '''Student'''&lt;br /&gt;
** Log in as Student using pre-configured credential.&lt;br /&gt;
** Verify if student can see &amp;quot;Show expert peer-review results&amp;quot; &lt;br /&gt;
*** When a new expert-review is available.&lt;br /&gt;
*** Show nothing when nothing is available.&lt;br /&gt;
** Testing to check if the reviews show up.&lt;br /&gt;
*** If added by TA.&lt;br /&gt;
*** If added by instructor.&lt;br /&gt;
*** If multiple reviews from either TA or instructor show up as a list.&lt;br /&gt;
** Testing varying-rubric-by-round feature.&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E17A1&amp;diff=112647</id>
		<title>CSC/ECE 517 Fall 2017/E17A1</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E17A1&amp;diff=112647"/>
		<updated>2017-11-08T04:06:32Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: /* Tasks Involved */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki page is the description of the E17A1 semester project - Let experts as well as students do reviews - for Fall 2017, CSC/ECE 517.&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
=== Expertiza ===&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Environment Setup ==&lt;br /&gt;
We have tried two different ways of setting up the Expertiza Environment, first approach used the Ubuntu-Expertiza image while the second approach involved setting up on NCSU's VCL Infrastructure. The process involving both of these approaches are detailed below. We referred the following [https://docs.google.com/document/d/1tXmwju6R7KQbvycku-bdXxa6rXSUN4BMyvjY3ROmMSw/ link].&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu-Expertiza image (.OVA) [Recommended]''' &amp;lt;br&amp;gt;&lt;br /&gt;
:This is the link for the image. (https://drive.google.com/a/ncsu.edu/file/d/0B2vDvVjH76uEUmNKVncxRUhUVVE/view?usp=sharing) &amp;lt;br&amp;gt;&lt;br /&gt;
:And you can install VirtualBox (free) and import this image into VirtualBox. &amp;lt;br&amp;gt;&lt;br /&gt;
'''Some machine may require you to enable virtualization and then run the following commands.'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;cd expertiza&lt;br /&gt;
bash ./setup.sh&lt;br /&gt;
bundle install&lt;br /&gt;
rake db:migrate&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''VCL Setup'''&lt;br /&gt;
The process of getting expertiza up and running on VCL is well detailed in the following [https://youtu.be/AStOjov7EQk video].&lt;br /&gt;
After completing the steps mentioned in the video, Additionally, we had to install Redis and NodeJS separately to get the expertiza site running. The process is detailed below:&lt;br /&gt;
* Steps to install Redis:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://download.redis.io/redis-stable.tar.gz&lt;br /&gt;
tar xvzf redis-stable.tar.gz&lt;br /&gt;
cd redis-stable&lt;br /&gt;
make&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run the redis-server using:&lt;br /&gt;
&amp;lt;pre&amp;gt;redis-server&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Steps to install NodeJS on CentOS:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://nodejs.org/dist/v0.10.30/node-v0.10.30.tar.gz&lt;br /&gt;
tar xzvf node-v* &amp;amp;&amp;amp; cd node-v*&lt;br /&gt;
sudo yum install gcc gcc-c++&lt;br /&gt;
./configure&lt;br /&gt;
make&lt;br /&gt;
sudo make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Run the expertiza Rails server&lt;br /&gt;
&amp;lt;pre&amp;gt;thin start&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*For logging in as an instructor:- &amp;lt;br&amp;gt;&lt;br /&gt;
:Username: instructor6 &amp;lt;br&amp;gt;&lt;br /&gt;
:Password: password &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*For logging in as an student:- &amp;lt;br&amp;gt;&lt;br /&gt;
:Username: student17 &amp;lt;br&amp;gt;&lt;br /&gt;
:Password: password &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Action Items =&lt;br /&gt;
=== Existing Limitations ===&lt;br /&gt;
At present the calibration functionality is limited, the following points present the scenarios where the current implementation is lacking:&lt;br /&gt;
# No support for varying rubric by round feature.&lt;br /&gt;
# From the perspective of the student, lack of differentiation of review - whether its from an expert or otherwise. &lt;br /&gt;
# A student is not notified once an expert submits a review.&lt;br /&gt;
# Additionally, a student should be able to see how an expert rated his/her assignment - similar to how it's done in calibration results for calibrated assignments(''As seen when '''Show Calibration Results''' is clicked.''). &lt;br /&gt;
&lt;br /&gt;
=== Tasks Involved ===&lt;br /&gt;
Tasks are broken down into sub-tasks as follows:&lt;br /&gt;
* Refactoring:&lt;br /&gt;
** a checkbox in the &amp;quot;General&amp;quot; Tab from “Calibrated peer-review for training?” to “Add expert peer review?”&lt;br /&gt;
** a tab name for instructor from “Calibration” to “Expert review” on the assignment setting page&lt;br /&gt;
** partial file from “_calibration.html.erb” to “_expert_review.html.erb”&lt;br /&gt;
** the link title on student side from “show calibration results” to “show expert peer-review results”&lt;br /&gt;
** the file “response/show_calibration_results_for_student.html.erb” to “response/show_expert_review_results_for_student.html.erb”&lt;br /&gt;
** title in “response/show_calibration_results_for_student.html.erb” to start with “Expert review comparison report for”&lt;br /&gt;
* Functionality changes&lt;br /&gt;
** Vary-rubric-by-round - Currently, the functionality of calibration is limited. It does not support varying-rubric-by-round feature. We need to add support for having different rubrics for different rounds.&lt;br /&gt;
** Both TAs and instructors could do expert reviews - need to modify “response/show_calibration_results_for_student.html.erb” to make it support multiple expert reviews.&lt;br /&gt;
&lt;br /&gt;
=== Affected Codebase ===&lt;br /&gt;
==== Database Related ====&lt;br /&gt;
A new migration file needs to written to make the following changes in the DB Schema (''And across all files using these fields''):&lt;br /&gt;
* “is_calibrated” field in assignment table to “has_expert_review”&lt;br /&gt;
* “calibrate_to” field in response_map table to “expert_review_to”&lt;br /&gt;
&lt;br /&gt;
==== Front-end Related ====&lt;br /&gt;
The following files need to be modified and/or refactored based on their respective tasks:&lt;br /&gt;
#student_review/_responses.html.erb&lt;br /&gt;
#student_review/list.html.erb&lt;br /&gt;
#assignments/edit.html.erb&lt;br /&gt;
#assignments/edit/_calibration.html.erb&lt;br /&gt;
#response/show_calibration_results_for_student.html.erb&lt;br /&gt;
&lt;br /&gt;
= Design Overview =&lt;br /&gt;
For the purpose of this project, experts in the expertiza domain are Teaching Assistants(TAs) and Instructors.&lt;br /&gt;
&lt;br /&gt;
The following two patterns are implemented in the project -&lt;br /&gt;
&lt;br /&gt;
1.MVC Pattern – The project is implemented in Ruby on Rails that uses MVC architecture. It separates an application’s data model, user interface, and control logic into three distinct components (model, view, and controller, respectively).&lt;br /&gt;
&lt;br /&gt;
2.DRY Principle – We are trying to reuse the existing functionalities in Expertiza, thus avoiding code duplication. Whenever possible, code modification based on the existing classes, controllers, or tables will be done instead of creating the new one.&lt;br /&gt;
&lt;br /&gt;
The following diagram shows the control flow of reviews in expertiza.&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
The expertiza project uses RSpec and Capybara to test the various functionality associated with the back-end and front-end components. Hence, we will also be writing test cases for the new functionality - added as a result of this project. We would also need to add additional fixtures in '''spec/feature''' to be used in the testcases.&lt;br /&gt;
&lt;br /&gt;
There are three main actors that interact with the new functionality, these are:&lt;br /&gt;
* Instructors&lt;br /&gt;
* Teaching Assistants&lt;br /&gt;
* Students&lt;br /&gt;
Hence, we would have to write tests for each of these types of users and test the expert review functionality.&lt;br /&gt;
&lt;br /&gt;
The tests for the aforementioned changes will be incorpoirated in a new test file called 'expert_review_spec.rb' located in [https://github.com/expertiza/expertiza/tree/master/spec/features spec/features] folder. &lt;br /&gt;
&lt;br /&gt;
Some of the tests that we have in mind as of now, are as follows:&lt;br /&gt;
* '''Instructor'''&lt;br /&gt;
** Login as instructor using pre-configured credential.&lt;br /&gt;
** Go to &amp;quot;General&amp;quot; tab &lt;br /&gt;
*** Verify &amp;quot;Add expert peer review?&amp;quot; present instead of &amp;quot;Calibrated peer-review for training?&amp;quot;&lt;br /&gt;
** Verify whether the instructor can see &amp;quot;Expert Review&amp;quot; on the assignment setting page.  &lt;br /&gt;
** Perform Expert Review, based on values declared in Fixtures available to Instructor.&lt;br /&gt;
&lt;br /&gt;
* '''Teaching Assistant'''&lt;br /&gt;
** Login as TA using pre-configured credential.&lt;br /&gt;
** Go to &amp;quot;General&amp;quot; tab &lt;br /&gt;
*** Verify &amp;quot;Add expert peer review?&amp;quot; present instead of &amp;quot;Calibrated peer-review for training?&amp;quot;&lt;br /&gt;
** Verify whether the TA can see &amp;quot;Expert Review&amp;quot; on the assignment setting page.  &lt;br /&gt;
** Perform Expert Review, based on values declared in Fixtures available to TA.&lt;br /&gt;
&lt;br /&gt;
* '''Student'''&lt;br /&gt;
** Log in as Student using pre-configured credential.&lt;br /&gt;
** Verify if student can see &amp;quot;Show expert peer-review results&amp;quot; &lt;br /&gt;
*** When a new expert-review is available.&lt;br /&gt;
*** Show nothing when nothing is available.&lt;br /&gt;
** Testing to check if the reviews show up.&lt;br /&gt;
*** If added by TA.&lt;br /&gt;
*** If added by instructor.&lt;br /&gt;
*** If multiple reviews from either TA or instructor show up as a list.&lt;br /&gt;
** Testing varying-rubric-by-round feature.&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E17A1&amp;diff=112320</id>
		<title>CSC/ECE 517 Fall 2017/E17A1</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E17A1&amp;diff=112320"/>
		<updated>2017-11-07T17:14:26Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: /* Design Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki page is the description of the E17A1 semester project - Let experts as well as students do reviews - for Fall 2017, CSC/ECE 517.&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
=== Expertiza ===&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
=== Environment Setup ===&lt;br /&gt;
We have tried two different ways of setting up the Expertiza Environment, first approach used the Ubuntu-Expertiza image while the second approach involved setting up on NCSU's VCL Infrastructure. The process involving both of these approaches are detailed below. We referred the following [https://docs.google.com/document/d/1tXmwju6R7KQbvycku-bdXxa6rXSUN4BMyvjY3ROmMSw/ link].&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu-Expertiza image (.OVA) [Recommended]''' &amp;lt;br&amp;gt;&lt;br /&gt;
:This is the link for the image. (https://drive.google.com/a/ncsu.edu/file/d/0B2vDvVjH76uEUmNKVncxRUhUVVE/view?usp=sharing) &amp;lt;br&amp;gt;&lt;br /&gt;
:And you can install VirtualBox (free) and import this image into VirtualBox. &amp;lt;br&amp;gt;&lt;br /&gt;
'''Some machine may require you to enable virtualization and then run the following commands.'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;cd expertiza&lt;br /&gt;
bash ./setup.sh&lt;br /&gt;
bundle install&lt;br /&gt;
rake db:migrate&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''VCL Setup'''&lt;br /&gt;
The process of getting expertiza up and running on VCL is well detailed in the following [https://youtu.be/AStOjov7EQk video].&lt;br /&gt;
After completing the steps mentioned in the video, Additionally, we had to install Redis and NodeJS separately to get the expertiza site running. The process is detailed below:&lt;br /&gt;
* Steps to install Redis:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://download.redis.io/redis-stable.tar.gz&lt;br /&gt;
tar xvzf redis-stable.tar.gz&lt;br /&gt;
cd redis-stable&lt;br /&gt;
make&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run the redis-server using:&lt;br /&gt;
&amp;lt;pre&amp;gt;redis-server&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Steps to install NodeJS on CentOS:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://nodejs.org/dist/v0.10.30/node-v0.10.30.tar.gz&lt;br /&gt;
tar xzvf node-v* &amp;amp;&amp;amp; cd node-v*&lt;br /&gt;
sudo yum install gcc gcc-c++&lt;br /&gt;
./configure&lt;br /&gt;
make&lt;br /&gt;
sudo make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*For logging in as an instructor:- &amp;lt;br&amp;gt;&lt;br /&gt;
:Username: instructor6 &amp;lt;br&amp;gt;&lt;br /&gt;
:Password: password &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Action Items =&lt;br /&gt;
=== Existing Limitations ===&lt;br /&gt;
At present the calibration functionality is limited, the following points present the scenarios where the current implementation is lacking:&lt;br /&gt;
# No support for varying rubric by round feature.&lt;br /&gt;
# From the perspective of the student, lack of differentiation of review - whether its from an expert or otherwise. &lt;br /&gt;
# A student is not notified once an expert submits a review.&lt;br /&gt;
# Additionally, a student should be able to see how an expert rated his/her assignment - similar to how it's done in calibration results for calibrated assignments(''As seen when '''Show Calibration Results''' is clicked.''). &lt;br /&gt;
&lt;br /&gt;
=== Tasks Involved ===&lt;br /&gt;
Tasks are broken down into sub-tasks as follows:&lt;br /&gt;
* Refactoring:&lt;br /&gt;
** a checkbox in the &amp;quot;General&amp;quot; Tab from “Calibrated peer-review for training?” to “Add expert peer review?”&lt;br /&gt;
** a tab name for instructor from “Calibration” to “Expert review” on the assignment setting page&lt;br /&gt;
** partial file from “_calibration.html.erb” to “_expert_review.html.erb”&lt;br /&gt;
** the link title on student side from “show calibration results” to “show expert peer-review results”&lt;br /&gt;
** the file “response/show_calibration_results_for_student.html.erb” to “response/show_expert_review_results_for_student.html.erb”&lt;br /&gt;
** title in “response/show_calibration_results_for_student.html.erb” to start with “Expert review comparison report for”&lt;br /&gt;
* Functionality changes&lt;br /&gt;
** Vary-rubric-by-round - Currently, the functionality of calibration is limited. It does not support varying-rubric-by-round feature&lt;br /&gt;
** Both TAs and instructors could do expert reviews - need to modify “response/show_calibration_results_for_student.html.erb” to make it support multiple expert reviews&lt;br /&gt;
&lt;br /&gt;
=== Affected Codebase ===&lt;br /&gt;
==== Database Related ====&lt;br /&gt;
A new migration file needs to written to make the following changes in the DB Schema (''And across all files using these fields''):&lt;br /&gt;
* “is_calibrated” field in assignment table to “has_expert_review”&lt;br /&gt;
* “calibrate_to” field in response_map table to “expert_review_to”&lt;br /&gt;
&lt;br /&gt;
==== Front-end Related ====&lt;br /&gt;
The following files need to be modified and/or refactored based on their respective tasks:&lt;br /&gt;
#student_review/_responses.html.erb&lt;br /&gt;
#student_review/list.html.erb&lt;br /&gt;
#assignments/edit.html.erb&lt;br /&gt;
#assignments/edit/_calibration.html.erb&lt;br /&gt;
#response/show_calibration_results_for_student.html.erb&lt;br /&gt;
&lt;br /&gt;
= Design Overview =&lt;br /&gt;
For the purpose of this project, experts in the expertiza domain are Teaching Assistants(TAs) and Instructors.&lt;br /&gt;
&lt;br /&gt;
The following two patterns are implemented in the project -&lt;br /&gt;
&lt;br /&gt;
1.MVC Pattern – The project is implemented in Ruby on Rails that uses MVC architecture. It separates an application’s data model, user interface, and control logic into three distinct components (model, view, and controller, respectively).&lt;br /&gt;
&lt;br /&gt;
2.DRY Principle – We are trying to reuse the existing functionalities in Expertiza, thus avoiding code duplication. Whenever possible, code modification based on the existing classes, controllers, or tables will be done instead of creating the new one.&lt;br /&gt;
&lt;br /&gt;
The following diagram shows the control flow of reviews in expertiza.&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
To test aforementioned changes a new test file would be created called 'expert_review_spec.rb' file in [https://github.com/expertiza/expertiza/tree/master/spec/features spec/features] folder. Based on the new functionality added, we will perform the following tests:&lt;br /&gt;
* Login as instructor or TA using their respective credentials.&lt;br /&gt;
* &amp;quot;General&amp;quot; tab has &amp;quot;Add expert peer review?&amp;quot; instead of &amp;quot;Calibrated peer-review for training?&amp;quot;&lt;br /&gt;
* An instructor should be able to see &amp;quot;Expert Review&amp;quot; on the assignment setting page.  &lt;br /&gt;
* When logging in as a student, the student should get &amp;quot;show expert peer-review results&amp;quot; link when a new expert-review is available.&lt;br /&gt;
* Testing varying-rubric-by-round feature &lt;br /&gt;
* Testing to check if the reviews added by TA also show up in expert-peer review along with the review from instructor.&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E17A1&amp;diff=112319</id>
		<title>CSC/ECE 517 Fall 2017/E17A1</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E17A1&amp;diff=112319"/>
		<updated>2017-11-07T17:13:50Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: /* Design Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki page is the description of the E17A1 semester project - Let experts as well as students do reviews - for Fall 2017, CSC/ECE 517.&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
=== Expertiza ===&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
=== Environment Setup ===&lt;br /&gt;
We have tried two different ways of setting up the Expertiza Environment, first approach used the Ubuntu-Expertiza image while the second approach involved setting up on NCSU's VCL Infrastructure. The process involving both of these approaches are detailed below. We referred the following [https://docs.google.com/document/d/1tXmwju6R7KQbvycku-bdXxa6rXSUN4BMyvjY3ROmMSw/ link].&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu-Expertiza image (.OVA) [Recommended]''' &amp;lt;br&amp;gt;&lt;br /&gt;
:This is the link for the image. (https://drive.google.com/a/ncsu.edu/file/d/0B2vDvVjH76uEUmNKVncxRUhUVVE/view?usp=sharing) &amp;lt;br&amp;gt;&lt;br /&gt;
:And you can install VirtualBox (free) and import this image into VirtualBox. &amp;lt;br&amp;gt;&lt;br /&gt;
'''Some machine may require you to enable virtualization and then run the following commands.'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;cd expertiza&lt;br /&gt;
bash ./setup.sh&lt;br /&gt;
bundle install&lt;br /&gt;
rake db:migrate&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''VCL Setup'''&lt;br /&gt;
The process of getting expertiza up and running on VCL is well detailed in the following [https://youtu.be/AStOjov7EQk video].&lt;br /&gt;
After completing the steps mentioned in the video, Additionally, we had to install Redis and NodeJS separately to get the expertiza site running. The process is detailed below:&lt;br /&gt;
* Steps to install Redis:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://download.redis.io/redis-stable.tar.gz&lt;br /&gt;
tar xvzf redis-stable.tar.gz&lt;br /&gt;
cd redis-stable&lt;br /&gt;
make&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run the redis-server using:&lt;br /&gt;
&amp;lt;pre&amp;gt;redis-server&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Steps to install NodeJS on CentOS:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://nodejs.org/dist/v0.10.30/node-v0.10.30.tar.gz&lt;br /&gt;
tar xzvf node-v* &amp;amp;&amp;amp; cd node-v*&lt;br /&gt;
sudo yum install gcc gcc-c++&lt;br /&gt;
./configure&lt;br /&gt;
make&lt;br /&gt;
sudo make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*For logging in as an instructor:- &amp;lt;br&amp;gt;&lt;br /&gt;
:Username: instructor6 &amp;lt;br&amp;gt;&lt;br /&gt;
:Password: password &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Action Items =&lt;br /&gt;
=== Existing Limitations ===&lt;br /&gt;
At present the calibration functionality is limited, the following points present the scenarios where the current implementation is lacking:&lt;br /&gt;
# No support for varying rubric by round feature.&lt;br /&gt;
# From the perspective of the student, lack of differentiation of review - whether its from an expert or otherwise. &lt;br /&gt;
# A student is not notified once an expert submits a review.&lt;br /&gt;
# Additionally, a student should be able to see how an expert rated his/her assignment - similar to how it's done in calibration results for calibrated assignments(''As seen when '''Show Calibration Results''' is clicked.''). &lt;br /&gt;
&lt;br /&gt;
=== Tasks Involved ===&lt;br /&gt;
Tasks are broken down into sub-tasks as follows:&lt;br /&gt;
* Refactoring:&lt;br /&gt;
** a checkbox in the &amp;quot;General&amp;quot; Tab from “Calibrated peer-review for training?” to “Add expert peer review?”&lt;br /&gt;
** a tab name for instructor from “Calibration” to “Expert review” on the assignment setting page&lt;br /&gt;
** partial file from “_calibration.html.erb” to “_expert_review.html.erb”&lt;br /&gt;
** the link title on student side from “show calibration results” to “show expert peer-review results”&lt;br /&gt;
** the file “response/show_calibration_results_for_student.html.erb” to “response/show_expert_review_results_for_student.html.erb”&lt;br /&gt;
** title in “response/show_calibration_results_for_student.html.erb” to start with “Expert review comparison report for”&lt;br /&gt;
* Functionality changes&lt;br /&gt;
** Vary-rubric-by-round - Currently, the functionality of calibration is limited. It does not support varying-rubric-by-round feature&lt;br /&gt;
** Both TAs and instructors could do expert reviews - need to modify “response/show_calibration_results_for_student.html.erb” to make it support multiple expert reviews&lt;br /&gt;
&lt;br /&gt;
=== Affected Codebase ===&lt;br /&gt;
==== Database Related ====&lt;br /&gt;
A new migration file needs to written to make the following changes in the DB Schema (''And across all files using these fields''):&lt;br /&gt;
* “is_calibrated” field in assignment table to “has_expert_review”&lt;br /&gt;
* “calibrate_to” field in response_map table to “expert_review_to”&lt;br /&gt;
&lt;br /&gt;
==== Front-end Related ====&lt;br /&gt;
The following files need to be modified and/or refactored based on their respective tasks:&lt;br /&gt;
#student_review/_responses.html.erb&lt;br /&gt;
#student_review/list.html.erb&lt;br /&gt;
#assignments/edit.html.erb&lt;br /&gt;
#assignments/edit/_calibration.html.erb&lt;br /&gt;
#response/show_calibration_results_for_student.html.erb&lt;br /&gt;
&lt;br /&gt;
= Design Overview =&lt;br /&gt;
For the purpose of this project, experts in the expertiza domain are Teaching Assistants(TAs) and Instructors.&lt;br /&gt;
&lt;br /&gt;
The following two patterns are implemented in the project -&lt;br /&gt;
1.MVC Design Pattern – The project is implemented in Ruby on Rails that uses MVC architecture. It separates an application’s data model, user interface, and control logic into three distinct components (model, view, and controller, respectively).&lt;br /&gt;
2.DRY Principle – We are trying to reuse the existing functionalities in Expertiza, thus avoiding code duplication. Whenever possible, code modification based on the existing classes, controllers, or tables will be done instead of creating the new one.&lt;br /&gt;
&lt;br /&gt;
The following diagram shows the control flow of reviews in expertiza.&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
To test aforementioned changes a new test file would be created called 'expert_review_spec.rb' file in [https://github.com/expertiza/expertiza/tree/master/spec/features spec/features] folder. Based on the new functionality added, we will perform the following tests:&lt;br /&gt;
* Login as instructor or TA using their respective credentials.&lt;br /&gt;
* &amp;quot;General&amp;quot; tab has &amp;quot;Add expert peer review?&amp;quot; instead of &amp;quot;Calibrated peer-review for training?&amp;quot;&lt;br /&gt;
* An instructor should be able to see &amp;quot;Expert Review&amp;quot; on the assignment setting page.  &lt;br /&gt;
* When logging in as a student, the student should get &amp;quot;show expert peer-review results&amp;quot; link when a new expert-review is available.&lt;br /&gt;
* Testing varying-rubric-by-round feature &lt;br /&gt;
* Testing to check if the reviews added by TA also show up in expert-peer review along with the review from instructor.&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E17A1&amp;diff=112315</id>
		<title>CSC/ECE 517 Fall 2017/E17A1</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E17A1&amp;diff=112315"/>
		<updated>2017-11-07T17:09:16Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: /* Design Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki page is the description of the E17A1 semester project - Let experts as well as students do reviews - for Fall 2017, CSC/ECE 517.&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
=== Expertiza ===&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
=== Environment Setup ===&lt;br /&gt;
We have tried two different ways of setting up the Expertiza Environment, first approach used the Ubuntu-Expertiza image while the second approach involved setting up on NCSU's VCL Infrastructure. The process involving both of these approaches are detailed below. We referred the following [https://docs.google.com/document/d/1tXmwju6R7KQbvycku-bdXxa6rXSUN4BMyvjY3ROmMSw/ link].&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu-Expertiza image (.OVA) [Recommended]''' &amp;lt;br&amp;gt;&lt;br /&gt;
:This is the link for the image. (https://drive.google.com/a/ncsu.edu/file/d/0B2vDvVjH76uEUmNKVncxRUhUVVE/view?usp=sharing) &amp;lt;br&amp;gt;&lt;br /&gt;
:And you can install VirtualBox (free) and import this image into VirtualBox. &amp;lt;br&amp;gt;&lt;br /&gt;
'''Some machine may require you to enable virtualization and then run the following commands.'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;cd expertiza&lt;br /&gt;
bash ./setup.sh&lt;br /&gt;
bundle install&lt;br /&gt;
rake db:migrate&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''VCL Setup'''&lt;br /&gt;
The process of getting expertiza up and running on VCL is well detailed in the following [https://youtu.be/AStOjov7EQk video].&lt;br /&gt;
After completing the steps mentioned in the video, Additionally, we had to install Redis and NodeJS separately to get the expertiza site running. The process is detailed below:&lt;br /&gt;
* Steps to install Redis:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://download.redis.io/redis-stable.tar.gz&lt;br /&gt;
tar xvzf redis-stable.tar.gz&lt;br /&gt;
cd redis-stable&lt;br /&gt;
make&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run the redis-server using:&lt;br /&gt;
&amp;lt;pre&amp;gt;redis-server&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Steps to install NodeJS on CentOS:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://nodejs.org/dist/v0.10.30/node-v0.10.30.tar.gz&lt;br /&gt;
tar xzvf node-v* &amp;amp;&amp;amp; cd node-v*&lt;br /&gt;
sudo yum install gcc gcc-c++&lt;br /&gt;
./configure&lt;br /&gt;
make&lt;br /&gt;
sudo make install&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*For logging in as an instructor:- &amp;lt;br&amp;gt;&lt;br /&gt;
:Username: instructor6 &amp;lt;br&amp;gt;&lt;br /&gt;
:Password: password &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Action Items =&lt;br /&gt;
=== Existing Limitations ===&lt;br /&gt;
At present the calibration functionality is limited, the following points present the scenarios where the current implementation is lacking:&lt;br /&gt;
# No support for varying rubric by round feature.&lt;br /&gt;
# From the perspective of the student, lack of differentiation of review - whether its from an expert or otherwise. &lt;br /&gt;
# A student is not notified once an expert submits a review.&lt;br /&gt;
# Additionally, a student should be able to see how an expert rated his/her assignment - similar to how it's done in calibration results for calibrated assignments(''As seen when '''Show Calibration Results''' is clicked.''). &lt;br /&gt;
&lt;br /&gt;
=== Tasks Involved ===&lt;br /&gt;
Tasks are broken down into sub-tasks as follows:&lt;br /&gt;
* Refactoring:&lt;br /&gt;
** a checkbox in the &amp;quot;General&amp;quot; Tab from “Calibrated peer-review for training?” to “Add expert peer review?”&lt;br /&gt;
** a tab name for instructor from “Calibration” to “Expert review” on the assignment setting page&lt;br /&gt;
** partial file from “_calibration.html.erb” to “_expert_review.html.erb”&lt;br /&gt;
** the link title on student side from “show calibration results” to “show expert peer-review results”&lt;br /&gt;
** the file “response/show_calibration_results_for_student.html.erb” to “response/show_expert_review_results_for_student.html.erb”&lt;br /&gt;
** title in “response/show_calibration_results_for_student.html.erb” to start with “Expert review comparison report for”&lt;br /&gt;
* Functionality changes&lt;br /&gt;
** Vary-rubric-by-round - Currently, the functionality of calibration is limited. It does not support varying-rubric-by-round feature&lt;br /&gt;
** Both TAs and instructors could do expert reviews - need to modify “response/show_calibration_results_for_student.html.erb” to make it support multiple expert reviews&lt;br /&gt;
&lt;br /&gt;
=== Affected Codebase ===&lt;br /&gt;
==== Database Related ====&lt;br /&gt;
A new migration file needs to written to make the following changes in the DB Schema (''And across all files using these fields''):&lt;br /&gt;
* “is_calibrated” field in assignment table to “has_expert_review”&lt;br /&gt;
* “calibrate_to” field in response_map table to “expert_review_to”&lt;br /&gt;
&lt;br /&gt;
==== Front-end Related ====&lt;br /&gt;
The following files need to be modified and/or refactored based on their respective tasks:&lt;br /&gt;
#student_review/_responses.html.erb&lt;br /&gt;
#student_review/list.html.erb&lt;br /&gt;
#assignments/edit.html.erb&lt;br /&gt;
#assignments/edit/_calibration.html.erb&lt;br /&gt;
#response/show_calibration_results_for_student.html.erb&lt;br /&gt;
&lt;br /&gt;
= Design Overview =&lt;br /&gt;
For the purpose of this project, experts in the expertiza domain are Teaching Assistants(TAs) and Instructors.&lt;br /&gt;
&lt;br /&gt;
The following diagram shows the control flow of reviews in expertiza.&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
To test aforementioned changes a new test file would be created called 'expert_review_spec.rb' file in [https://github.com/expertiza/expertiza/tree/master/spec/features spec/features] folder. Based on the new functionality added, we will perform the following tests:&lt;br /&gt;
* Login as instructor or TA using their respective credentials.&lt;br /&gt;
* &amp;quot;General&amp;quot; tab has &amp;quot;Add expert peer review?&amp;quot; instead of &amp;quot;Calibrated peer-review for training?&amp;quot;&lt;br /&gt;
* An instructor should be able to see &amp;quot;Expert Review&amp;quot; on the assignment setting page.  &lt;br /&gt;
* When logging in as a student, the student should get &amp;quot;show expert peer-review results&amp;quot; link when a new expert-review is available.&lt;br /&gt;
* Testing varying-rubric-by-round feature &lt;br /&gt;
* Testing to check if the reviews added by TA also show up in expert-peer review along with the review from instructor.&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E17A1&amp;diff=112059</id>
		<title>CSC/ECE 517 Fall 2017/E17A1</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E17A1&amp;diff=112059"/>
		<updated>2017-11-06T23:47:20Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: /* Action Items */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki page is the description of the E17A1 semester project - Let experts as well as students do reviews - for Fall 2017, CSC/ECE 517.&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
=== Expertiza ===&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
=== Environment Setup ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Action Items =&lt;br /&gt;
=== Tasks Involved ===&lt;br /&gt;
Tasks are broken down into sub-tasks as follows:&lt;br /&gt;
* Refactoring:&lt;br /&gt;
** a checkbox in the &amp;quot;General&amp;quot; Tab from “Calibrated peer-review for training?” to “Add expert peer review?”&lt;br /&gt;
** a tab name for instructor from “Calibration” to “Expert review” on the assignment setting page&lt;br /&gt;
** partial file from “_calibration.html.erb” to “_expert_review.html.erb”&lt;br /&gt;
** the link title on student side from “show calibration results” to “show expert peer-review results”&lt;br /&gt;
** the file “response/show_calibration_results_for_student.html.erb” to “response/show_expert_review_results_for_student.html.erb”&lt;br /&gt;
** title in “response/show_calibration_results_for_student.html.erb” to start with “Expert review comparison report for”&lt;br /&gt;
* Functionality changes&lt;br /&gt;
** Vary-rubric-by-round - Currently, the functionality of calibration is limited. It does not support varying-rubric-by-round feature&lt;br /&gt;
** Both TAs and instructors could do expert reviews - need to modify “response/show_calibration_results_for_student.html.erb” to make it support multiple expert reviews&lt;br /&gt;
&lt;br /&gt;
=== Existing Limitations ===&lt;br /&gt;
At present the calibration functionality is limited, the following points present the scenarios where the current implementation is lacking:&lt;br /&gt;
# No support for varying rubric by round feature.&lt;br /&gt;
# From the perspective of the student, lack of differentiation of review - whether its from an expert or otherwise. &lt;br /&gt;
# A student is not notified once an expert submits a review.&lt;br /&gt;
# Additionally, a student should be able to see how an expert rated his/her assignment - similar to how it's done in calibration results for calibrated assignments(''As seen when '''Show Calibration Results''' is clicked.''). &lt;br /&gt;
&lt;br /&gt;
=== Affected Codebase ===&lt;br /&gt;
==== Database Related ====&lt;br /&gt;
A new migration file needs to written to make the following changes in the DB Schema (''And across all files using these fields''):&lt;br /&gt;
* “is_calibrated” field in assignment table to “has_expert_review”&lt;br /&gt;
* “calibrate_to” field in response_map table to “expert_review_to”&lt;br /&gt;
&lt;br /&gt;
==== Front-end Related ====&lt;br /&gt;
The following files need to be modified and/or refactored based on their respective tasks:&lt;br /&gt;
#student_review/_responses.html.erb&lt;br /&gt;
#student_review/list.html.erb&lt;br /&gt;
#assignments/edit.html.erb&lt;br /&gt;
#assignments/edit/_calibration.html.erb&lt;br /&gt;
#response/show_calibration_results_for_student.html.erb&lt;br /&gt;
&lt;br /&gt;
= Design Overview =&lt;br /&gt;
For the purpose of this project, experts in the expertiza domain are Teaching Assistants(TAs) and Instructors.&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017&amp;diff=112054</id>
		<title>CSC/ECE 517 Fall 2017</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017&amp;diff=112054"/>
		<updated>2017-11-06T23:17:22Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: Adding E17A1 to the list&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Design Project Documentation'''&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E17A8. Use a profiler to identify the problems / pages that take some time to load &amp;amp; fix them]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1793. Help students find teams to join]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E17A4 Allow calibration to be part of an assignment]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E17A0 Team-based reviewing]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1793. Help students find teams to join_Team1964]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1799 Improve self-review Link peer review &amp;amp; self-review to derive grades]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1797_Timestamps_for_students_submissions]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E17A1|CSC/ECE_517_Fall_2017/E17A1 - Let experts as well as students do reviews]]&lt;br /&gt;
'''Writing Assignment 2'''&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1779. Fix teammate advertisements and requests to join a team]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1773 Investigate and Fix Expertiza Production Version Runtime Exceptions.rb]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1774 Metareview fixes and improvements.rb]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1788 OSS project Maroon Heatmap fixes]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1781 Topic Management]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1745_Refactor_response_controller.rb]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1752 Refactor assignments controller]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1776_Enhance_Imports]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1756 TLD Refactor response.rb]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1772_Refactor reputation_web_service_controller.rb]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/M1754_Mutation Testing on Servo]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1753 OSS project bidding tests]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1766_Test team functionality]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1767 Improve imports]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1786_OSS project Juniper Bookmark Enhancements]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1787_OSS project Bronze Score calculations]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1763 Fix Staggered-Deadline Assignments]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1757 Introduce a Student View for instructors]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1769_Refactor assignment_form.rb]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1754_Feature_test_of_rubric_advice]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1782 OSS Project Red Assignment Directories]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1748 Add past-due assignments to task list]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1761 Test First Development Refactor assignment.rb]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1780_OSS_Project_Teal_Email_Notification_Enhancements]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1762 Test various kinds of response-map hierarchies]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1759 ]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1749_Test First Development Refactor questionnaire_controller.rb]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1777 Coherent specification of review requirements.rb]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1771_Refactor_team.rb]]&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E1754_Feature_test_of_rubric_advice&amp;diff=110080</id>
		<title>CSC/ECE 517 Fall 2017/E1754 Feature test of rubric advice</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E1754_Feature_test_of_rubric_advice&amp;diff=110080"/>
		<updated>2017-10-27T20:29:13Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Expertiza is a web application which provides a dashboard to the students where they can submit and peer-review assignments, projects, codes, and other such objects. It allows students to review each other’s work and improve their work upon this feedback. Rubric advice allows reviewers to see what characteristics of work merit a particular score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The problem statement ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rubric advice lets a user see what criterion or characteristics of work merit a particular score. An instructor can retrieve peer review assignments and leave some advice or give scores based on some criteria. Similarly, students can log in and retrieve the rubric advice left by the instructor. We mocked the behavior of the user (both as an instructor and student) to see how different scenarios work, like modifying, saving and retrieving advice and building feature tests for it. The testing frameworks used for the same were Selenium and Capybara.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tasks identified ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Student Side:'''&lt;br /&gt;
A student, when filling a peer review should be able to see the rubric advice associated with a particular test score. We test this task through adding a test case in the peer_review_spec.rb since Peer Review is superset of the Rubric Advice feature as it is a task where a student uses the rubric advice and submit it.&lt;br /&gt;
&lt;br /&gt;
Files changed: peer_review_spec.rb&lt;br /&gt;
The test case checks if student is able to select a rubric advice that the instructor has created and then submit it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  it &amp;quot;able to view and use rubric advice&amp;quot;, :js =&amp;gt; true do&lt;br /&gt;
    load_questionnaire&lt;br /&gt;
    expect(page).to have_content &amp;quot;Show advice&amp;quot;&lt;br /&gt;
    page.find('#showAdivce_1').click&lt;br /&gt;
    expect(page).to have_content &amp;quot;5 - Good&amp;quot;&lt;br /&gt;
    page.find(&amp;quot;a&amp;quot;, :text =&amp;gt; &amp;quot;5 - Good&amp;quot;).click&lt;br /&gt;
    click_button &amp;quot;Save Review&amp;quot;&lt;br /&gt;
    expect(page).to have_content &amp;quot;Your response was successfully saved.&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The existing code given creates the required environment for the test student. It sets up a team, assignment and other required elements for the test student to submit a review.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
before(:each) do&lt;br /&gt;
    create(:assignment, name: &amp;quot;TestAssignment&amp;quot;, directory_path: 'test_assignment')&lt;br /&gt;
    create_list(:participant, 3)&lt;br /&gt;
    create(:assignment_node)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;submission&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;review&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;metareview&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;drop_topic&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;signup&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;team_formation&amp;quot;)&lt;br /&gt;
    create(:deadline_right)&lt;br /&gt;
    create(:deadline_right, name: 'Late')&lt;br /&gt;
    create(:deadline_right, name: 'OK')&lt;br /&gt;
    create(:assignment_due_date, deadline_type: DeadlineType.where(name: 'review').first, due_at: Time.now.in_time_zone + 1.day)&lt;br /&gt;
    create(:topic)&lt;br /&gt;
    create(:topic, topic_name: &amp;quot;TestReview&amp;quot;)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).first)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).second)&lt;br /&gt;
    create(:assignment_team)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).third, team: AssignmentTeam.second)&lt;br /&gt;
    create(:signed_up_team)&lt;br /&gt;
    create(:signed_up_team, team_id: 2, topic: SignUpTopic.second)&lt;br /&gt;
    create(:assignment_questionnaire)&lt;br /&gt;
    create(:question)&lt;br /&gt;
    create(:question_advices)&lt;br /&gt;
   end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rubric advice is prepared in factory.rb with the following code addition . This allows our test Student to get a ready rubric advice that he can choose.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  factory :question_advices, class: QuestionAdvice do&lt;br /&gt;
    question_id 1&lt;br /&gt;
    score 5&lt;br /&gt;
    advice &amp;quot;Good work&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Instructor side:'''&lt;br /&gt;
&lt;br /&gt;
Edit a certain review rubric, and add advice to it.&lt;br /&gt;
Test that when advice is added for a particular criterion, the advice can be retrieved and that it is exactly the advice that was added. Files added: review_rubric_spec.rb&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
describe &amp;quot;Edit a rubric advice&amp;quot; do&lt;br /&gt;
    it &amp;quot;is able to edit a review rubric advice&amp;quot; do&lt;br /&gt;
      # creating a new rubric advice&lt;br /&gt;
      load_question 'Criterion'&lt;br /&gt;
      click_button &amp;quot;Edit/View advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('Edit an existing questionnaire')&lt;br /&gt;
      # setting intital advice in the field&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;Initial advice&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
      expect(page).to have_content('Initial advice')&lt;br /&gt;
      # editing a review rubric - Setting any element with new data&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;Edited the advice&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
      expect(page).to have_content('Edited the advice')&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  describe &amp;quot;Remove a rubric advice&amp;quot; do&lt;br /&gt;
    it &amp;quot;should be able to delete a rubric advice&amp;quot; do&lt;br /&gt;
      load_question 'Criterion'&lt;br /&gt;
      click_button &amp;quot;Edit/View advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('Edit an existing questionnaire')&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;Initial advice&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
      expect(page).to have_content('Initial advice')&lt;br /&gt;
      # edit review advice to set to blank i.e. delete rubric advice&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Apart from the major test case for Rubric advice, it is essential to test if the logged in instructor is an authorized instructor. To test this, we have added the following test in review_rubric_spec.rb. &lt;br /&gt;
Also, the task of loading the questionnaire and the question types is implemented in separate methods to allow reuse.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
include InstructorInterfaceHelperSpec&lt;br /&gt;
&lt;br /&gt;
# Feature test of rubric advice&lt;br /&gt;
describe &amp;quot;Edit rubric advice&amp;quot; do&lt;br /&gt;
  before(:each) do&lt;br /&gt;
    assignment_setup&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  # Login test&lt;br /&gt;
  describe &amp;quot;Login as instructor&amp;quot; do&lt;br /&gt;
    it &amp;quot;logs in with valid username and password&amp;quot; do&lt;br /&gt;
      login_as(&amp;quot;instructor6&amp;quot;)&lt;br /&gt;
      visit '/tree_display/list'&lt;br /&gt;
      expect(page).to have_content(&amp;quot;Manage content&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    it &amp;quot;logs in with invalid username and password&amp;quot; do&lt;br /&gt;
      visit root_path&lt;br /&gt;
      fill_in 'login_name', with: 'instructor6'&lt;br /&gt;
      fill_in 'login_password', with: 'wrongpassword'&lt;br /&gt;
      click_button 'SIGN IN'&lt;br /&gt;
      expect(page).to have_text('Your username or password is incorrect.')&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  def load_questionnaire&lt;br /&gt;
    login_as(&amp;quot;instructor6&amp;quot;)&lt;br /&gt;
    visit '/questionnaires/new?model=ReviewQuestionnaire&amp;amp;private=0'&lt;br /&gt;
    fill_in('questionnaire_name', with: 'DummyReview')&lt;br /&gt;
    fill_in('questionnaire_min_question_score', with: '0')&lt;br /&gt;
    fill_in('questionnaire_max_question_score', with: '5')&lt;br /&gt;
    select('no', from: 'questionnaire_private')&lt;br /&gt;
    click_button &amp;quot;Create&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  def load_question question_type&lt;br /&gt;
    load_questionnaire&lt;br /&gt;
    fill_in('question_total_num', with: '1')&lt;br /&gt;
    select(question_type, from: 'question_type')&lt;br /&gt;
    click_button &amp;quot;Add&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing Instructions ==&lt;br /&gt;
* [https://github.com/expertiza/expertiza Clone Expertiza on local Repository]&lt;br /&gt;
* [http://wiki.expertiza.ncsu.edu/index.php/Expertiza_documentation#Development_Environment_Setup_Guides Setup expertiza on your local machine]&lt;br /&gt;
* Run the test cases: spec/features/peer_review_spec.rb and spec/features/review_rubric_spec.rb using [https://relishapp.com/rspec Rspec]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/rcoutin/expertiza Forked Github Expertiza Repository]&lt;br /&gt;
* [https://github.com/expertiza/expertiza Github Expertiza Repository]&lt;br /&gt;
* [https://relishapp.com/rspec Rspec Documentation]&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E1754_Feature_test_of_rubric_advice&amp;diff=110078</id>
		<title>CSC/ECE 517 Fall 2017/E1754 Feature test of rubric advice</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E1754_Feature_test_of_rubric_advice&amp;diff=110078"/>
		<updated>2017-10-27T20:24:35Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Expertiza is a web application which provides a dashboard to the students where they can submit and peer-review assignments, projects, codes, and other such objects. It allows students to review each other’s work and improve their work upon this feedback. Rubric advice allows reviewers to see what characteristics of work merit a particular score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The problem statement ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rubric advice lets a user see what criterion or characteristics of work merit a particular score. An instructor can retrieve peer review assignments and leave some advice or give scores based on some criteria. Similarly, students can log in and retrieve the rubric advice left by the instructor. We mocked the behavior of the user (both as an instructor and student) to see how different scenarios work, like modifying, saving and retrieving advice and building feature tests for it. The testing frameworks used for the same were Selenium and Capybara.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tasks identified ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Student Side:'''&lt;br /&gt;
A student, when filling a peer review should be able to see the rubric advice associated with a particular test score. We test this task through adding a test case in the peer_review_spec.rb since Peer Review is superset of the Rubric Advice feature as it is a task where a student uses the rubric advice and submit it.&lt;br /&gt;
&lt;br /&gt;
Files changed: peer_review_spec.rb&lt;br /&gt;
The test case checks if student is able to select a rubric advice that the instructor has created and then submit it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  it &amp;quot;able to view and use rubric advice&amp;quot;, :js =&amp;gt; true do&lt;br /&gt;
    load_questionnaire&lt;br /&gt;
    expect(page).to have_content &amp;quot;Show advice&amp;quot;&lt;br /&gt;
    page.find('#showAdivce_1').click&lt;br /&gt;
    expect(page).to have_content &amp;quot;5 - Good&amp;quot;&lt;br /&gt;
    page.find(&amp;quot;a&amp;quot;, :text =&amp;gt; &amp;quot;5 - Good&amp;quot;).click&lt;br /&gt;
    click_button &amp;quot;Save Review&amp;quot;&lt;br /&gt;
    expect(page).to have_content &amp;quot;Your response was successfully saved.&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The existing code given creates the required environment for the test student. It sets up a team, assignment and other required elements for the test student to submit a review.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
before(:each) do&lt;br /&gt;
    create(:assignment, name: &amp;quot;TestAssignment&amp;quot;, directory_path: 'test_assignment')&lt;br /&gt;
    create_list(:participant, 3)&lt;br /&gt;
    create(:assignment_node)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;submission&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;review&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;metareview&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;drop_topic&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;signup&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;team_formation&amp;quot;)&lt;br /&gt;
    create(:deadline_right)&lt;br /&gt;
    create(:deadline_right, name: 'Late')&lt;br /&gt;
    create(:deadline_right, name: 'OK')&lt;br /&gt;
    create(:assignment_due_date, deadline_type: DeadlineType.where(name: 'review').first, due_at: Time.now.in_time_zone + 1.day)&lt;br /&gt;
    create(:topic)&lt;br /&gt;
    create(:topic, topic_name: &amp;quot;TestReview&amp;quot;)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).first)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).second)&lt;br /&gt;
    create(:assignment_team)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).third, team: AssignmentTeam.second)&lt;br /&gt;
    create(:signed_up_team)&lt;br /&gt;
    create(:signed_up_team, team_id: 2, topic: SignUpTopic.second)&lt;br /&gt;
    create(:assignment_questionnaire)&lt;br /&gt;
    create(:question)&lt;br /&gt;
    create(:question_advices)&lt;br /&gt;
   end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rubric advice is prepared in factory.rb with the following code addition . This allows our test Student to get a ready rubric advice that he can choose.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  factory :question_advices, class: QuestionAdvice do&lt;br /&gt;
    question_id 1&lt;br /&gt;
    score 5&lt;br /&gt;
    advice &amp;quot;Good work&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Instructor side:'''&lt;br /&gt;
&lt;br /&gt;
Edit a certain review rubric, and add advice to it.&lt;br /&gt;
Test that when advice is added for a particular criterion, the advice can be retrieved and that it is exactly the advice that was added. Files added: review_rubric_spec.rb&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
describe &amp;quot;Edit a rubric advice&amp;quot; do&lt;br /&gt;
    it &amp;quot;is able to edit a review rubric advice&amp;quot; do&lt;br /&gt;
      # creating a new rubric advice&lt;br /&gt;
      load_question 'Criterion'&lt;br /&gt;
      click_button &amp;quot;Edit/View advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('Edit an existing questionnaire')&lt;br /&gt;
      # setting intital advice in the field&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;Initial advice&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
      expect(page).to have_content('Initial advice')&lt;br /&gt;
      # editing a review rubric - Setting any element with new data&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;Edited the advice&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
      expect(page).to have_content('Edited the advice')&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  describe &amp;quot;Remove a rubric advice&amp;quot; do&lt;br /&gt;
    it &amp;quot;should be able to delete a rubric advice&amp;quot; do&lt;br /&gt;
      load_question 'Criterion'&lt;br /&gt;
      click_button &amp;quot;Edit/View advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('Edit an existing questionnaire')&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;Initial advice&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
      expect(page).to have_content('Initial advice')&lt;br /&gt;
      # edit review advice to set to blank i.e. delete rubric advice&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
include InstructorInterfaceHelperSpec&lt;br /&gt;
&lt;br /&gt;
# Feature test of rubric advice&lt;br /&gt;
describe &amp;quot;Edit rubric advice&amp;quot; do&lt;br /&gt;
  before(:each) do&lt;br /&gt;
    assignment_setup&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  # Login test&lt;br /&gt;
  describe &amp;quot;Login as instructor&amp;quot; do&lt;br /&gt;
    it &amp;quot;logs in with valid username and password&amp;quot; do&lt;br /&gt;
      login_as(&amp;quot;instructor6&amp;quot;)&lt;br /&gt;
      visit '/tree_display/list'&lt;br /&gt;
      expect(page).to have_content(&amp;quot;Manage content&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    it &amp;quot;logs in with invalid username and password&amp;quot; do&lt;br /&gt;
      visit root_path&lt;br /&gt;
      fill_in 'login_name', with: 'instructor6'&lt;br /&gt;
      fill_in 'login_password', with: 'wrongpassword'&lt;br /&gt;
      click_button 'SIGN IN'&lt;br /&gt;
      expect(page).to have_text('Your username or password is incorrect.')&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  def load_questionnaire&lt;br /&gt;
    login_as(&amp;quot;instructor6&amp;quot;)&lt;br /&gt;
    visit '/questionnaires/new?model=ReviewQuestionnaire&amp;amp;private=0'&lt;br /&gt;
    fill_in('questionnaire_name', with: 'DummyReview')&lt;br /&gt;
    fill_in('questionnaire_min_question_score', with: '0')&lt;br /&gt;
    fill_in('questionnaire_max_question_score', with: '5')&lt;br /&gt;
    select('no', from: 'questionnaire_private')&lt;br /&gt;
    click_button &amp;quot;Create&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  def load_question question_type&lt;br /&gt;
    load_questionnaire&lt;br /&gt;
    fill_in('question_total_num', with: '1')&lt;br /&gt;
    select(question_type, from: 'question_type')&lt;br /&gt;
    click_button &amp;quot;Add&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing Instructions ==&lt;br /&gt;
* [https://github.com/expertiza/expertiza Clone Expertiza on local Repository]&lt;br /&gt;
* [http://wiki.expertiza.ncsu.edu/index.php/Expertiza_documentation#Development_Environment_Setup_Guides Setup expertiza on your local machine]&lt;br /&gt;
* Run the test cases: spec/features/peer_review_spec.rb and spec/features/review_rubric_spec.rb using [https://relishapp.com/rspec Rspec]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/rcoutin/expertiza Forked Github Expertiza Repository]&lt;br /&gt;
* [https://github.com/expertiza/expertiza Github Expertiza Repository]&lt;br /&gt;
* [https://relishapp.com/rspec Rspec Documentation]&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E1754_Feature_test_of_rubric_advice&amp;diff=110075</id>
		<title>CSC/ECE 517 Fall 2017/E1754 Feature test of rubric advice</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E1754_Feature_test_of_rubric_advice&amp;diff=110075"/>
		<updated>2017-10-27T20:21:27Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Expertiza is a web application which provides a dashboard to the students where they can submit and peer-review assignments, projects, codes, and other such objects. It allows students to review each other’s work and improve their work upon this feedback. Rubric advice allows reviewers to see what characteristics of work merit a particular score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The problem statement ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rubric advice lets a user see what criterion or characteristics of work merit a particular score. An instructor can retrieve peer review assignments and leave some advice or give scores based on some criteria. Similarly, students can log in and retrieve the rubric advice left by the instructor. We mocked the behavior of the user (both as an instructor and student) to see how different scenarios work, like modifying, saving and retrieving advice and building feature tests for it. The testing frameworks used for the same were Selenium and Capybara.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tasks identified ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Student Side:'''&lt;br /&gt;
A student, when filling a peer review should be able to see the rubric advice associated with a particular test score. We test this task through adding a test case in the peer_review_spec.rb since Peer Review is superset of the Rubric Advice feature as it is a task where a student uses the rubric advice and submit it.&lt;br /&gt;
&lt;br /&gt;
Files changed: peer_review_spec.rb&lt;br /&gt;
The test case checks if student is able to select a rubric advice that the instructor has created and then submit it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  it &amp;quot;able to view and use rubric advice&amp;quot;, :js =&amp;gt; true do&lt;br /&gt;
    load_questionnaire&lt;br /&gt;
    expect(page).to have_content &amp;quot;Show advice&amp;quot;&lt;br /&gt;
    page.find('#showAdivce_1').click&lt;br /&gt;
    expect(page).to have_content &amp;quot;5 - Good&amp;quot;&lt;br /&gt;
    page.find(&amp;quot;a&amp;quot;, :text =&amp;gt; &amp;quot;5 - Good&amp;quot;).click&lt;br /&gt;
    click_button &amp;quot;Save Review&amp;quot;&lt;br /&gt;
    expect(page).to have_content &amp;quot;Your response was successfully saved.&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The existing code given creates the required environment for the test student. It sets up a team, assignment and other required elements for the test student to submit a review.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
before(:each) do&lt;br /&gt;
    create(:assignment, name: &amp;quot;TestAssignment&amp;quot;, directory_path: 'test_assignment')&lt;br /&gt;
    create_list(:participant, 3)&lt;br /&gt;
    create(:assignment_node)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;submission&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;review&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;metareview&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;drop_topic&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;signup&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;team_formation&amp;quot;)&lt;br /&gt;
    create(:deadline_right)&lt;br /&gt;
    create(:deadline_right, name: 'Late')&lt;br /&gt;
    create(:deadline_right, name: 'OK')&lt;br /&gt;
    create(:assignment_due_date, deadline_type: DeadlineType.where(name: 'review').first, due_at: Time.now.in_time_zone + 1.day)&lt;br /&gt;
    create(:topic)&lt;br /&gt;
    create(:topic, topic_name: &amp;quot;TestReview&amp;quot;)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).first)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).second)&lt;br /&gt;
    create(:assignment_team)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).third, team: AssignmentTeam.second)&lt;br /&gt;
    create(:signed_up_team)&lt;br /&gt;
    create(:signed_up_team, team_id: 2, topic: SignUpTopic.second)&lt;br /&gt;
    create(:assignment_questionnaire)&lt;br /&gt;
    create(:question)&lt;br /&gt;
    create(:question_advices)&lt;br /&gt;
   end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rubric advice is prepared in factory.rb with the following code addition . This allows our test Student to get a ready rubric advice that he can choose.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  factory :question_advices, class: QuestionAdvice do&lt;br /&gt;
    question_id 1&lt;br /&gt;
    score 5&lt;br /&gt;
    advice &amp;quot;Good work&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Instructor side:'''&lt;br /&gt;
&lt;br /&gt;
Edit a certain review rubric, and add advice to it.&lt;br /&gt;
Test that when advice is added for a particular criterion, the advice can be retrieved and that it is exactly the advice that was added. Files added: review_rubric_spec.rb&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
describe &amp;quot;Edit a rubric advice&amp;quot; do&lt;br /&gt;
    it &amp;quot;is able to edit a review rubric advice&amp;quot; do&lt;br /&gt;
      # creating a new rubric advice&lt;br /&gt;
      load_question 'Criterion'&lt;br /&gt;
      click_button &amp;quot;Edit/View advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('Edit an existing questionnaire')&lt;br /&gt;
      # setting intital advice in the field&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;Initial advice&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
      expect(page).to have_content('Initial advice')&lt;br /&gt;
      # editing a review rubric - Setting any element with new data&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;Edited the advice&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
      expect(page).to have_content('Edited the advice')&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  describe &amp;quot;Remove a rubric advice&amp;quot; do&lt;br /&gt;
    it &amp;quot;should be able to delete a rubric advice&amp;quot; do&lt;br /&gt;
      load_question 'Criterion'&lt;br /&gt;
      click_button &amp;quot;Edit/View advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('Edit an existing questionnaire')&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;Initial advice&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
      expect(page).to have_content('Initial advice')&lt;br /&gt;
      # edit review advice to set to blank i.e. delete rubric advice&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing Instructions ==&lt;br /&gt;
* [https://github.com/expertiza/expertiza Clone Expertiza on local Repository]&lt;br /&gt;
* [http://wiki.expertiza.ncsu.edu/index.php/Expertiza_documentation#Development_Environment_Setup_Guides Setup expertiza on your local machine]&lt;br /&gt;
* Run the test cases: spec/features/peer_review_spec.rb and spec/features/review_rubric_spec.rb using [https://relishapp.com/rspec Rspec]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/rcoutin/expertiza Forked Github Expertiza Repository]&lt;br /&gt;
* [https://github.com/expertiza/expertiza Github Expertiza Repository]&lt;br /&gt;
* [https://relishapp.com/rspec Rspec Documentation]&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E1754_Feature_test_of_rubric_advice&amp;diff=110074</id>
		<title>CSC/ECE 517 Fall 2017/E1754 Feature test of rubric advice</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E1754_Feature_test_of_rubric_advice&amp;diff=110074"/>
		<updated>2017-10-27T20:19:52Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Expertiza is a web application which provides a dashboard to the students where they can submit and peer-review assignments, projects, codes, and other such objects. It allows students to review each other’s work and improve their work upon this feedback. Rubric advice allows reviewers to see what characteristics of work merit a particular score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The problem statement ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rubric advice lets a user see what criterion or characteristics of work merit a particular score. An instructor can retrieve peer review assignments and leave some advice or give scores based on some criteria. Similarly, students can log in and retrieve the rubric advice left by the instructor. We mocked the behavior of the user (both as an instructor and student) to see how different scenarios work, like modifying, saving and retrieving advice and building feature tests for it. The testing frameworks used for the same were Selenium and Capybara.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tasks identified ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Student Side:'''&lt;br /&gt;
A student, when filling a peer review should be able to see the rubric advice associated with a particular test score. We test this task through adding a test case in the peer_review_spec.rb since Peer Review is superset of the Rubric Advice feature as it is a task where a student uses the rubric advice and submit it.&lt;br /&gt;
&lt;br /&gt;
Files changed: peer_review_spec.rb&lt;br /&gt;
The test case checks if student is able to select a rubric advice that the instructor has created and then submit it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  it &amp;quot;able to view and use rubric advice&amp;quot;, :js =&amp;gt; true do&lt;br /&gt;
    load_questionnaire&lt;br /&gt;
    expect(page).to have_content &amp;quot;Show advice&amp;quot;&lt;br /&gt;
    page.find('#showAdivce_1').click&lt;br /&gt;
    expect(page).to have_content &amp;quot;5 - Good&amp;quot;&lt;br /&gt;
    page.find(&amp;quot;a&amp;quot;, :text =&amp;gt; &amp;quot;5 - Good&amp;quot;).click&lt;br /&gt;
    click_button &amp;quot;Save Review&amp;quot;&lt;br /&gt;
    expect(page).to have_content &amp;quot;Your response was successfully saved.&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The existing code given creates the required environment for the test student. It sets up a team, assignment and other required elements for the test student to submit a review.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
before(:each) do&lt;br /&gt;
    create(:assignment, name: &amp;quot;TestAssignment&amp;quot;, directory_path: 'test_assignment')&lt;br /&gt;
    create_list(:participant, 3)&lt;br /&gt;
    create(:assignment_node)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;submission&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;review&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;metareview&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;drop_topic&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;signup&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;team_formation&amp;quot;)&lt;br /&gt;
    create(:deadline_right)&lt;br /&gt;
    create(:deadline_right, name: 'Late')&lt;br /&gt;
    create(:deadline_right, name: 'OK')&lt;br /&gt;
    create(:assignment_due_date, deadline_type: DeadlineType.where(name: 'review').first, due_at: Time.now.in_time_zone + 1.day)&lt;br /&gt;
    create(:topic)&lt;br /&gt;
    create(:topic, topic_name: &amp;quot;TestReview&amp;quot;)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).first)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).second)&lt;br /&gt;
    create(:assignment_team)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).third, team: AssignmentTeam.second)&lt;br /&gt;
    create(:signed_up_team)&lt;br /&gt;
    create(:signed_up_team, team_id: 2, topic: SignUpTopic.second)&lt;br /&gt;
    create(:assignment_questionnaire)&lt;br /&gt;
    create(:question)&lt;br /&gt;
    create(:question_advices)&lt;br /&gt;
   end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rubric advice is prepared in factory.rb with the following code addition . This allows our test Student to get a ready rubric advice that he can choose.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  factory :question_advices, class: QuestionAdvice do&lt;br /&gt;
    question_id 1&lt;br /&gt;
    score 5&lt;br /&gt;
    advice &amp;quot;Good work&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Instructor side:'''&lt;br /&gt;
&lt;br /&gt;
Edit a certain review rubric, and add advice to it.&lt;br /&gt;
Test that when advice is added for a particular criterion, the advice can be retrieved and that it is exactly the advice that was added.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
describe &amp;quot;Edit a rubric advice&amp;quot; do&lt;br /&gt;
    it &amp;quot;is able to edit a review rubric advice&amp;quot; do&lt;br /&gt;
      # creating a new rubric advice&lt;br /&gt;
      load_question 'Criterion'&lt;br /&gt;
      click_button &amp;quot;Edit/View advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('Edit an existing questionnaire')&lt;br /&gt;
      # setting intital advice in the field&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;Initial advice&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
      expect(page).to have_content('Initial advice')&lt;br /&gt;
      # editing a review rubric - Setting any element with new data&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;Edited the advice&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
      expect(page).to have_content('Edited the advice')&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  describe &amp;quot;Remove a rubric advice&amp;quot; do&lt;br /&gt;
    it &amp;quot;should be able to delete a rubric advice&amp;quot; do&lt;br /&gt;
      load_question 'Criterion'&lt;br /&gt;
      click_button &amp;quot;Edit/View advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('Edit an existing questionnaire')&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;Initial advice&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
      expect(page).to have_content('Initial advice')&lt;br /&gt;
      # edit review advice to set to blank i.e. delete rubric advice&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing Instructions ==&lt;br /&gt;
* [https://github.com/expertiza/expertiza Clone Expertiza on local Repository]&lt;br /&gt;
* [http://wiki.expertiza.ncsu.edu/index.php/Expertiza_documentation#Development_Environment_Setup_Guides Setup expertiza on your local machine]&lt;br /&gt;
* Run the test cases: spec/features/peer_review_spec.rb and spec/features/review_rubric_spec.rb using [https://relishapp.com/rspec Rspec]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/rcoutin/expertiza Forked Github Expertiza Repository]&lt;br /&gt;
* [https://github.com/expertiza/expertiza Github Expertiza Repository]&lt;br /&gt;
* [https://relishapp.com/rspec Rspec Documentation]&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E1754_Feature_test_of_rubric_advice&amp;diff=110072</id>
		<title>CSC/ECE 517 Fall 2017/E1754 Feature test of rubric advice</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E1754_Feature_test_of_rubric_advice&amp;diff=110072"/>
		<updated>2017-10-27T20:19:24Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Expertiza is a web application which provides a dashboard to the students where they can submit and peer-review assignments, projects, codes, and other such objects. It allows students to review each other’s work and improve their work upon this feedback. Rubric advice allows reviewers to see what characteristics of work merit a particular score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The problem statement ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rubric advice lets a user see what criterion or characteristics of work merit a particular score. An instructor can retrieve peer review assignments and leave some advice or give scores based on some criteria. Similarly, students can log in and retrieve the rubric advice left by the instructor. We mocked the behavior of the user (both as an instructor and student) to see how different scenarios work, like modifying, saving and retrieving advice and building feature tests for it. The testing frameworks used for the same were Selenium and Capybara.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tasks identified ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Student Side:'''&lt;br /&gt;
A student, when filling a peer review should be able to see the rubric advice associated with a particular test score. We test this task through adding a test case in the peer_review_spec.rb since Peer Review is superset of the Rubric Advice feature as it is a task where a student uses the rubric advice and submit it.&lt;br /&gt;
&lt;br /&gt;
Files changed: peer_review_spec.rb&lt;br /&gt;
The test case checks if student is able to select a rubric advice that the instructor has created and then submit it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  it &amp;quot;able to view and use rubric advice&amp;quot;, :js =&amp;gt; true do&lt;br /&gt;
    load_questionnaire&lt;br /&gt;
    expect(page).to have_content &amp;quot;Show advice&amp;quot;&lt;br /&gt;
    page.find('#showAdivce_1').click&lt;br /&gt;
    expect(page).to have_content &amp;quot;5 - Good&amp;quot;&lt;br /&gt;
    page.find(&amp;quot;a&amp;quot;, :text =&amp;gt; &amp;quot;5 - Good&amp;quot;).click&lt;br /&gt;
    click_button &amp;quot;Save Review&amp;quot;&lt;br /&gt;
    expect(page).to have_content &amp;quot;Your response was successfully saved.&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The existing code given creates the required environment for the test student. It sets up a team, assignment and other required elements for the test student to submit a review.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
before(:each) do&lt;br /&gt;
    create(:assignment, name: &amp;quot;TestAssignment&amp;quot;, directory_path: 'test_assignment')&lt;br /&gt;
    create_list(:participant, 3)&lt;br /&gt;
    create(:assignment_node)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;submission&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;review&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;metareview&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;drop_topic&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;signup&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;team_formation&amp;quot;)&lt;br /&gt;
    create(:deadline_right)&lt;br /&gt;
    create(:deadline_right, name: 'Late')&lt;br /&gt;
    create(:deadline_right, name: 'OK')&lt;br /&gt;
    create(:assignment_due_date, deadline_type: DeadlineType.where(name: 'review').first, due_at: Time.now.in_time_zone + 1.day)&lt;br /&gt;
    create(:topic)&lt;br /&gt;
    create(:topic, topic_name: &amp;quot;TestReview&amp;quot;)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).first)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).second)&lt;br /&gt;
    create(:assignment_team)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).third, team: AssignmentTeam.second)&lt;br /&gt;
    create(:signed_up_team)&lt;br /&gt;
    create(:signed_up_team, team_id: 2, topic: SignUpTopic.second)&lt;br /&gt;
    create(:assignment_questionnaire)&lt;br /&gt;
    create(:question)&lt;br /&gt;
    create(:question_advices)&lt;br /&gt;
   end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rubric advice is prepared in factory.rb with the following code addition . This allows our test Student to get a ready rubric advice that he can choose.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  factory :question_advices, class: QuestionAdvice do&lt;br /&gt;
    question_id 1&lt;br /&gt;
    score 5&lt;br /&gt;
    advice &amp;quot;Good work&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instructor side:&lt;br /&gt;
&lt;br /&gt;
Edit a certain review rubric, and add advice to it.&lt;br /&gt;
Test that when advice is added for a particular criterion, the advice can be retrieved and that it is exactly the advice that was added.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
describe &amp;quot;Edit a rubric advice&amp;quot; do&lt;br /&gt;
    it &amp;quot;is able to edit a review rubric advice&amp;quot; do&lt;br /&gt;
      # creating a new rubric advice&lt;br /&gt;
      load_question 'Criterion'&lt;br /&gt;
      click_button &amp;quot;Edit/View advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('Edit an existing questionnaire')&lt;br /&gt;
      # setting intital advice in the field&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;Initial advice&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
      expect(page).to have_content('Initial advice')&lt;br /&gt;
      # editing a review rubric - Setting any element with new data&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;Edited the advice&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
      expect(page).to have_content('Edited the advice')&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  describe &amp;quot;Remove a rubric advice&amp;quot; do&lt;br /&gt;
    it &amp;quot;should be able to delete a rubric advice&amp;quot; do&lt;br /&gt;
      load_question 'Criterion'&lt;br /&gt;
      click_button &amp;quot;Edit/View advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('Edit an existing questionnaire')&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;Initial advice&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
      expect(page).to have_content('Initial advice')&lt;br /&gt;
      # edit review advice to set to blank i.e. delete rubric advice&lt;br /&gt;
      first(:css, &amp;quot;textarea[id^='horizontal_'][id$='advice']&amp;quot;).set(&amp;quot;&amp;quot;)&lt;br /&gt;
      click_button &amp;quot;Save and redisplay advice&amp;quot;&lt;br /&gt;
      expect(page).to have_content('advice was successfully saved')&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing Instructions ==&lt;br /&gt;
* [https://github.com/expertiza/expertiza Clone Expertiza on local Repository]&lt;br /&gt;
* [http://wiki.expertiza.ncsu.edu/index.php/Expertiza_documentation#Development_Environment_Setup_Guides Setup expertiza on your local machine]&lt;br /&gt;
* Run the test cases: spec/features/peer_review_spec.rb and spec/features/review_rubric_spec.rb using [https://relishapp.com/rspec Rspec]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/rcoutin/expertiza Forked Github Expertiza Repository]&lt;br /&gt;
* [https://github.com/expertiza/expertiza Github Expertiza Repository]&lt;br /&gt;
* [https://relishapp.com/rspec Rspec Documentation]&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E1754_Feature_test_of_rubric_advice&amp;diff=110053</id>
		<title>CSC/ECE 517 Fall 2017/E1754 Feature test of rubric advice</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017/E1754_Feature_test_of_rubric_advice&amp;diff=110053"/>
		<updated>2017-10-27T19:07:04Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: /* Testing Intructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Expertiza is a web application which provides a dashboard to the students where they can submit and peer-review assignments, projects, codes, and other such objects. It allows students to review each other’s work and improve their work upon this feedback. Rubric advice allows reviewers to see what characteristics of work merit a particular score.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The problem statement ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rubric advice lets a user see what criterion or characteristics of work merit a particular score. An instructor can retrieve peer review assignments and leave some advice or give scores based on some criteria. Similarly, students can log in and retrieve the rubric advice left by the instructor. We mocked the behavior of the user (both as an instructor and student) to see how different scenarios work, like modifying, saving and retrieving advice and building feature tests for it. The testing frameworks used for the same were Selenium and Capybara.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tasks identified ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Student Side:&lt;br /&gt;
A student, when filling a peer review should be able to see the rubric advice associated with a particular test score. We test this task through adding a test case in the peer_review_spec.rb since Peer Review is superset of the Rubric Advice feature as it is a task where a student uses the rubric advice and submit it.&lt;br /&gt;
&lt;br /&gt;
Files changed: peer_review_spec.rb&lt;br /&gt;
The test case checks if student is able to select a rubric advice that the instructor has created and then submit it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  it &amp;quot;able to view and use rubric advice&amp;quot;, :js =&amp;gt; true do&lt;br /&gt;
    load_questionnaire&lt;br /&gt;
    expect(page).to have_content &amp;quot;Show advice&amp;quot;&lt;br /&gt;
    page.find('#showAdivce_1').click&lt;br /&gt;
    expect(page).to have_content &amp;quot;5 - Good&amp;quot;&lt;br /&gt;
    page.find(&amp;quot;a&amp;quot;, :text =&amp;gt; &amp;quot;5 - Good&amp;quot;).click&lt;br /&gt;
    click_button &amp;quot;Save Review&amp;quot;&lt;br /&gt;
    expect(page).to have_content &amp;quot;Your response was successfully saved.&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The existing code given creates the required environment for the test student. It sets up a team, assignment and other required elements for the test student to submit a review.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
before(:each) do&lt;br /&gt;
    create(:assignment, name: &amp;quot;TestAssignment&amp;quot;, directory_path: 'test_assignment')&lt;br /&gt;
    create_list(:participant, 3)&lt;br /&gt;
    create(:assignment_node)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;submission&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;review&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;metareview&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;drop_topic&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;signup&amp;quot;)&lt;br /&gt;
    create(:deadline_type, name: &amp;quot;team_formation&amp;quot;)&lt;br /&gt;
    create(:deadline_right)&lt;br /&gt;
    create(:deadline_right, name: 'Late')&lt;br /&gt;
    create(:deadline_right, name: 'OK')&lt;br /&gt;
    create(:assignment_due_date, deadline_type: DeadlineType.where(name: 'review').first, due_at: Time.now.in_time_zone + 1.day)&lt;br /&gt;
    create(:topic)&lt;br /&gt;
    create(:topic, topic_name: &amp;quot;TestReview&amp;quot;)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).first)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).second)&lt;br /&gt;
    create(:assignment_team)&lt;br /&gt;
    create(:team_user, user: User.where(role_id: 2).third, team: AssignmentTeam.second)&lt;br /&gt;
    create(:signed_up_team)&lt;br /&gt;
    create(:signed_up_team, team_id: 2, topic: SignUpTopic.second)&lt;br /&gt;
    create(:assignment_questionnaire)&lt;br /&gt;
    create(:question)&lt;br /&gt;
    create(:question_advices)&lt;br /&gt;
   end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rubric advice is prepared in factory.rb with the following code addition . This allows our test Student to get a ready rubric advice that he can choose.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  factory :question_advices, class: QuestionAdvice do&lt;br /&gt;
    question_id 1&lt;br /&gt;
    score 5&lt;br /&gt;
    advice &amp;quot;Good work&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instructor side:&lt;br /&gt;
&lt;br /&gt;
Edit a certain review rubric, and add advice to it.&lt;br /&gt;
Test that when advice is added for a particular criterion, the advice can be retrieved and that it is exactly the advice that was added.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing Instructions ==&lt;br /&gt;
* Clone expertiza on local repository (give link to references)&lt;br /&gt;
* Setup expertiza on your local machine (give link to references)&lt;br /&gt;
* Run the test cases: spec/features/peer_review_spec.rb and spec/features/review_rubric_spec.rb using rspec (give reference to rspec reference)&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/rcoutin/expertiza Forked Github Expertiza Repository]&lt;br /&gt;
* [https://github.com/expertiza/expertiza Github Expertiza Repository]&lt;br /&gt;
* [https://relishapp.com/rspec Rspec Documentation]&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017&amp;diff=109968</id>
		<title>CSC/ECE 517 Fall 2017</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2017&amp;diff=109968"/>
		<updated>2017-10-27T17:14:15Z</updated>

		<summary type="html">&lt;p&gt;Rcoutin: Adding feature test of rubric advice - E1754&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Writing Assignment 2'''&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1779. Fix teammate advertisements and requests to join a team]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1773 Investigate and Fix Expertiza Production Version Runtime Exceptions.rb]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1774 Metareview fixes and improvements.rb]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1788 OSS project Maroon Heatmap fixes]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1781 Topic Management]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1745_Refactor_response_controller.rb]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1752 Refactor assignments controller]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1776_Enhance_Imports]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1756 TLD Refactor response.rb]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1772_Refactor reputation_web_service_controller.rb]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/M1754_Mutation Testing on Servo]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1753 OSS project bidding tests]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1766_Test team functionality]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1787_OSS project Bronze Score calculations]]&lt;br /&gt;
*[[CSC/ECE_517_Fall_2017/E1763 Fix Staggered-Deadline Assignments]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1757 Introduce a Student View for instructors]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1769_Refactor assignment_form.rb]]&lt;br /&gt;
*[[CSC/ECE 517 Fall 2017/E1754_Feature_test_of_rubric_advice]]&lt;/div&gt;</summary>
		<author><name>Rcoutin</name></author>
	</entry>
</feed>