Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 9... Línea 9...
9
      | username | firstname | lastname | email                |
9
      | username | firstname | lastname | email                |
10
      | teacher1 | Teacher   | 1        | teacher1@example.com |
10
      | teacher1 | Teacher   | 1        | teacher1@example.com |
11
    And the following "courses" exist:
11
    And the following "courses" exist:
12
      | fullname | shortname | format |
12
      | fullname | shortname | format |
13
      | Course 1 | C1        | weeks  |
13
      | Course 1 | C1        | weeks  |
14
    And the following "question categories" exist:
-
 
15
      | contextlevel | reference | name           |
-
 
16
      | Course       | C1        | Test questions |
-
 
17
    And the following "activities" exist:
14
    And the following "activities" exist:
18
      | activity | course | name           |
15
      | activity | course | name           |
19
      | quiz     | C1     | Test quiz Q001 |
16
      | quiz     | C1     | Test quiz Q001 |
20
    And the following "questions" exist:
17
    And the following "questions" exist:
21
      | questioncategory | qtype       | name |
18
      | questioncategory           | qtype       | name |
22
      | Test questions   | truefalse   | TF   |
19
      | Default for Test quiz Q001 | truefalse   | TF   |
23
      | Test questions   | shortanswer | SA   |
20
      | Default for Test quiz Q001 | shortanswer | SA   |
24
    And quiz "Test quiz Q001" contains the following questions:
21
    And quiz "Test quiz Q001" contains the following questions:
25
      | question | page | maxmark |
22
      | question | page | maxmark |
26
      | TF       | 1    | 5.0     |
23
      | TF       | 1    | 5.0     |
27
      | SA       | 1    | 5.0     |
24
      | SA       | 1    | 5.0     |
28
    And the following "course enrolments" exist:
25
    And the following "course enrolments" exist:
Línea 33... Línea 30...
33
      | Activity module | Test quiz Q001 | Quiz category |
30
      | Activity module | Test quiz Q001 | Quiz category |
Línea 34... Línea 31...
34
 
31
 
35
  Scenario: Generate general and specific report
32
  Scenario: Generate general and specific report
36
    Given I am on the "C1" "Course" page logged in as "admin"
33
    Given I am on the "C1" "Course" page logged in as "admin"
-
 
34
    And I navigate to "Reports > Question instances" in site administration
-
 
35
    # Checks the dropdown list is in alphabetical order
37
    And I navigate to "Reports > Question instances" in site administration
36
    And "Matching" "option" should appear before "Select missing words" "option" in the "Question type" "select"
38
    When I press "Get the report"
37
    When I press "Get the report"
39
    Then "Course: Course 1" row "Total" column of "generaltable" table should contain "2"
38
    Then "Quiz: Test quiz Q001" row "Total" column of "generaltable" table should contain "2"
40
    And "Course: Course 1" row "Visible" column of "generaltable" table should contain "2"
39
    And "Quiz: Test quiz Q001" row "Visible" column of "generaltable" table should contain "2"
Línea 41... Línea 40...
41
    And "Course: Course 1" row "Hidden" column of "generaltable" table should contain "0"
40
    And "Quiz: Test quiz Q001" row "Hidden" column of "generaltable" table should contain "0"
42
 
41
 
43
  Scenario: Generate report displaying hidden questions
42
  Scenario: Generate report displaying hidden questions
44
    Given I am on the "Test quiz Q001" "mod_quiz > question bank" page logged in as "admin"
43
    Given I am on the "Test quiz Q001" "mod_quiz > question bank" page logged in as "admin"
45
    And I choose "Delete" action for "TF" in the question bank
44
    And I choose "Delete" action for "TF" in the question bank
46
    And I press "Delete"
45
    And I press "Delete"
47
    And I navigate to "Reports > Question instances" in site administration
46
    And I navigate to "Reports > Question instances" in site administration
48
    When I press "Get the report"
47
    When I press "Get the report"
49
    Then "Course: Course 1" row "Total" column of "generaltable" table should contain "2"
48
    Then "Quiz: Test quiz Q001" row "Total" column of "generaltable" table should contain "2"
50
    And "Course: Course 1" row "Visible" column of "generaltable" table should contain "1"
49
    And "Quiz: Test quiz Q001" row "Visible" column of "generaltable" table should contain "1"
51
    And "Course: Course 1" row "Hidden" column of "generaltable" table should contain "1"
50
    And "Quiz: Test quiz Q001" row "Hidden" column of "generaltable" table should contain "1"
52
    And I set the field "menuqtype" to "True/False"
51
    And I set the field "menuqtype" to "True/False"
53
    And I press "Get the report"
52
    And I press "Get the report"
54
    And "Course: Course 1" row "Total" column of "generaltable" table should contain "1"
53
    And "Quiz: Test quiz Q001" row "Total" column of "generaltable" table should contain "1"