AutorÃa | Ultima modificación | Ver Log |
@mod @mod_h5pactivity @core_h5p @core_xapiFeature: Report different types of interactions.In order to let users to review attemptsAs a userI need to view all valid interactions in the reportBackground:Given the following "users" exist:| username | firstname | lastname | email || student1 | Student | 1 | student1@example.com |And the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 |And the following "course enrolments" exist:| user | course | role || student1 | C1 | student |# This test is only about reporting, we don't need to specify any valid H5P file for it.And the following "activities" exist:| activity | name | intro | course | idnumber || h5pactivity | H5P package | Test H5P description | C1 | h5ppackage |Scenario: General success attempt informationGiven the following "mod_h5pactivity > attempts" exist:| user | h5pactivity | attempt | interactiontype | rawscore | maxscore | duration | completion | success || student1 | H5P package | 1 | compound | 2 | 2 | 4 | 1 | 1 |When I am on the "H5P package" "h5pactivity activity" page logged in as student1And I navigate to "Attempts report" in current page administrationAnd I follow "View report"Then I should see "2 out of 2"And I should see "Pass"And I should see "4 seconds"And I should see "This attempt is completed"Scenario: General failed attempt statementGiven the following "mod_h5pactivity > attempts" exist:| user | h5pactivity | attempt | interactiontype | rawscore | maxscore | duration | completion | success || student1 | H5P package | 1 | compound | 0 | 2 | 4 | 1 | 0 |When I am on the "H5P package" "h5pactivity activity" page logged in as student1And I navigate to "Attempts report" in current page administrationAnd I follow "View report"Then I should see "0 out of 2"And I should see "Fail"And I should see "4 seconds"And I should see "This attempt is completed"Scenario: View a success choice statementGiven the following "mod_h5pactivity > attempts" exist:| user | h5pactivity | attempt | interactiontype | rawscore | maxscore | duration | completion | success || student1 | H5P package | 1 | choice | 2 | 2 | 1 | 1 | 1 || student1 | H5P package | 1 | compound | 2 | 2 | 4 | 1 | 1 |When I am on the "H5P package" "h5pactivity activity" page logged in as student1And I navigate to "Attempts report" in current page administrationAnd I follow "View report"Then I should see "Select the correct answers"And "Correct answer" "icon" should exist in the "This is also a correct answer" "table_row"And I should see "Score: 2 out of 2"Scenario: View a failed choice statementGiven the following "mod_h5pactivity > attempts" exist:| user | h5pactivity | attempt | interactiontype | rawscore | maxscore | duration | completion | success || student1 | H5P package | 1 | choice | 0 | 2 | 1 | 1 | 0 || student1 | H5P package | 1 | compound | 0 | 2 | 4 | 1 | 0 |When I am on the "H5P package" "h5pactivity activity" page logged in as student1And I navigate to "Attempts report" in current page administrationAnd I follow "View report"Then I should see "Select the correct answers"And "Incorrect answer" "icon" should exist in the "Another wrong answer" "table_row"And I should see "Score: 0 out of 2"Scenario: View a success matching statementGiven the following "mod_h5pactivity > attempts" exist:| user | h5pactivity | attempt | interactiontype | rawscore | maxscore | duration | completion | success || student1 | H5P package | 1 | matching | 2 | 2 | 1 | 1 | 1 || student1 | H5P package | 1 | compound | 2 | 2 | 4 | 1 | 1 |When I am on the "H5P package" "h5pactivity activity" page logged in as student1And I navigate to "Attempts report" in current page administrationAnd I follow "View report"Then I should see "Drag and Drop example 1"And "Your answer is correct" "icon" should exist in the "Drop item A" "table_row"And I should see "Score: 2 out of 2"Scenario: View a failed matching statementGiven the following "mod_h5pactivity > attempts" exist:| user | h5pactivity | attempt | interactiontype | rawscore | maxscore | duration | completion | success || student1 | H5P package | 1 | matching | 0 | 2 | 1 | 1 | 1 || student1 | H5P package | 1 | compound | 0 | 2 | 4 | 1 | 1 |When I am on the "H5P package" "h5pactivity activity" page logged in as student1And I navigate to "Attempts report" in current page administrationAnd I follow "View report"Then I should see "Drag and Drop example 1"And "Your answer is incorrect" "icon" should exist in the "Drop item A" "table_row"And I should see "Score: 0 out of 2"Scenario: View a success true-false statementGiven the following "mod_h5pactivity > attempts" exist:| user | h5pactivity | attempt | interactiontype | rawscore | maxscore | duration | completion | success || student1 | H5P package | 1 | true-false | 2 | 2 | 1 | 1 | 1 || student1 | H5P package | 1 | compound | 2 | 2 | 4 | 1 | 1 |When I am on the "H5P package" "h5pactivity activity" page logged in as student1And I navigate to "Attempts report" in current page administrationAnd I follow "View report"Then I should see "The correct answer is true"And "Correct answer" "icon" should exist in the "True" "table_row"And I should see "Score: 2 out of 2"Scenario: View a failed true-false statementGiven the following "mod_h5pactivity > attempts" exist:| user | h5pactivity | attempt | interactiontype | rawscore | maxscore | duration | completion | success || student1 | H5P package | 1 | true-false | 0 | 2 | 1 | 1 | 0 || student1 | H5P package | 1 | compound | 0 | 2 | 4 | 1 | 0 |When I am on the "H5P package" "h5pactivity activity" page logged in as student1And I navigate to "Attempts report" in current page administrationAnd I follow "View report"Then I should see "The correct answer is true"And "Incorrect answer" "icon" should exist in the "False" "table_row"And I should see "Score: 0 out of 2"Scenario: View a success fill-in statementGiven the following "mod_h5pactivity > attempts" exist:| user | h5pactivity | attempt | interactiontype | rawscore | maxscore | duration | completion | success || student1 | H5P package | 1 | fill-in | 2 | 2 | 1 | 1 | 1 || student1 | H5P package | 1 | compound | 2 | 2 | 4 | 1 | 1 |When I am on the "H5P package" "h5pactivity activity" page logged in as student1And I navigate to "Attempts report" in current page administrationAnd I follow "View report"Then I should see "This an example of missing word text"And "Your answer is correct" "icon" should exist in the "Gap #1" "table_row"And I should see "first" in the "Gap #1" "table_row"And "Your answer is correct" "icon" should exist in the "Gap #2" "table_row"And I should see "second" in the "Gap #2" "table_row"And I should see "Score: 2 out of 2"Scenario: View a failed fill-in statementGiven the following "mod_h5pactivity > attempts" exist:| user | h5pactivity | attempt | interactiontype | rawscore | maxscore | duration | completion | success || student1 | H5P package | 1 | fill-in | 0 | 2 | 1 | 1 | 0 || student1 | H5P package | 1 | compound | 0 | 2 | 4 | 1 | 0 |When I am on the "H5P package" "h5pactivity activity" page logged in as student1And I navigate to "Attempts report" in current page administrationAnd I follow "View report"Then I should see "This an example of missing word text"And "Your answer is incorrect" "icon" should exist in the "Gap #1" "table_row"And I should see "first" in the "Gap #1" "table_row"And I should see "something" in the "Gap #1" "table_row"And "Your answer is incorrect" "icon" should exist in the "Gap #2" "table_row"And I should see "second" in the "Gap #2" "table_row"And I should see "else" in the "Gap #2" "table_row"And I should see "Score: 0 out of 2"Scenario: View a success long-fill-in statementGiven the following "mod_h5pactivity > attempts" exist:| user | h5pactivity | attempt | interactiontype | rawscore | maxscore | duration | completion | success || student1 | H5P package | 1 | long-fill-in | 2 | 2 | 1 | 1 | 1 || student1 | H5P package | 1 | compound | 2 | 2 | 4 | 1 | 1 |When I am on the "H5P package" "h5pactivity activity" page logged in as student1And I navigate to "Attempts report" in current page administrationAnd I follow "View report"Then I should see "Please describe the novel The Hobbit"And I should see "The Hobbit is book"# Fill-in does not have a partial scope indicador, we only check the general one.And I should see "2 out of 2"Scenario: View a failed long-fill-in statementGiven the following "mod_h5pactivity > attempts" exist:| user | h5pactivity | attempt | interactiontype | rawscore | maxscore | duration | completion | success || student1 | H5P package | 1 | long-fill-in | 0 | 2 | 1 | 1 | 0 || student1 | H5P package | 1 | compound | 0 | 2 | 4 | 1 | 0 |When I am on the "H5P package" "h5pactivity activity" page logged in as student1And I navigate to "Attempts report" in current page administrationAnd I follow "View report"Then I should see "Please describe the novel The Hobbit"And I should see "Who cares?"# Fill-in does not have a partial scope indicador, we only check the general one.And I should see "0 out of 2"# The current H5P implementation does not send a complete sequencing interaction statement# we check only the warning and the final result.Scenario: View a success sequencing statementGiven the following "mod_h5pactivity > attempts" exist:| user | h5pactivity | attempt | interactiontype | rawscore | maxscore | duration | completion | success || student1 | H5P package | 1 | sequencing | 2 | 2 | 1 | 1 | 1 || student1 | H5P package | 1 | compound | 2 | 2 | 4 | 1 | 1 |When I am on the "H5P package" "h5pactivity activity" page logged in as student1And I navigate to "Attempts report" in current page administrationAnd I follow "View report"Then I should see "This interaction (sequencing) does not provide tracking information"# Sequencing does not have a partial scope indicador, we only check the general one.And I should see "2 out of 2"# The current H5P implementation does not send a complete sequencing interaction statement# we check only the warning and the final result.Scenario: View a failed sequencing statementGiven the following "mod_h5pactivity > attempts" exist:| user | h5pactivity | attempt | interactiontype | rawscore | maxscore | duration | completion | success || student1 | H5P package | 1 | sequencing | 2 | 2 | 1 | 1 | 0 || student1 | H5P package | 1 | compound | 0 | 2 | 4 | 1 | 0 |When I am on the "H5P package" "h5pactivity activity" page logged in as student1And I navigate to "Attempts report" in current page administrationAnd I follow "View report"Then I should see "This interaction (sequencing) does not provide tracking information"# Sequencing does not have a partial scope indicador, we only check the general one.And I should see "0 out of 2"# The current H5P implementation does not send a complete sequencing interaction statement# we check only the warning and the final result.Scenario: View a success other statementGiven the following "mod_h5pactivity > attempts" exist:| user | h5pactivity | attempt | interactiontype | rawscore | maxscore | duration | completion | success || student1 | H5P package | 1 | other | 2 | 2 | 1 | 1 | 1 || student1 | H5P package | 1 | compound | 2 | 2 | 4 | 1 | 1 |When I am on the "H5P package" "h5pactivity activity" page logged in as student1And I navigate to "Attempts report" in current page administrationAnd I follow "View report"Then I should see "This interaction (other) does not provide tracking information"# Other does not have a partial scope indicador, we only check the general one.And I should see "2 out of 2"# The current H5P implementation does not send a complete sequencing interaction statement# we check only the warning and the final result.Scenario: View a failed other statementGiven the following "mod_h5pactivity > attempts" exist:| user | h5pactivity | attempt | interactiontype | rawscore | maxscore | duration | completion | success || student1 | H5P package | 1 | other | 2 | 2 | 1 | 1 | 0 || student1 | H5P package | 1 | compound | 0 | 2 | 4 | 1 | 0 |When I am on the "H5P package" "h5pactivity activity" page logged in as student1And I navigate to "Attempts report" in current page administrationAnd I follow "View report"Then I should see "This interaction (other) does not provide tracking information"# Other does not have a partial scope indicador, we only check the general one.And I should see "0 out of 2"