Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_quiz
2
Feature: Display of information before starting a quiz
3
  As a student
4
  In order to start a quiz with confidence
5
  I need information about the quiz settings before I start an attempt
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email               |
10
      | student  | Student   | One      | student@example.com |
11
    And the following "courses" exist:
12
      | fullname | shortname | category |
13
      | Course 1 | C1        | 0        |
14
    And the following "course enrolments" exist:
15
      | user     | course | role    |
16
      | student  | C1     | student |
1441 ariadna 17
    And the following "activities" exist:
18
      | activity | name          | course | idnumber |
19
      | qbank    | Qbank 1       | C1     | qbank1   |
1 efrain 20
    And the following "question categories" exist:
1441 ariadna 21
      | contextlevel    | reference | name           |
22
      | Activity module | qbank1    | Test questions |
1 efrain 23
    And the following "questions" exist:
24
      | questioncategory | qtype       | name  | questiontext               |
25
      | Test questions   | truefalse   | TF1   | Text of the first question |
26
 
27
  Scenario: Check the pass grade is displayed
28
    Given the following "activities" exist:
29
      | activity   | name   | intro              | course | idnumber | gradepass |
30
      | quiz       | Quiz 1 | Quiz 1 description | C1     | quiz1    | 60.00     |
31
    And quiz "Quiz 1" contains the following questions:
32
      | question | page |
33
      | TF1      | 1    |
34
    When I am on the "Quiz 1" "mod_quiz > View" page logged in as "student"
35
    Then I should see "Grade to pass: 60.00 out of 100.00"
36
 
37
  Scenario: Check the pass grade is displayed with custom decimal separator
38
    Given the following "language customisations" exist:
39
      | component       | stringid | value |
40
      | core_langconfig | decsep   | #     |
41
    And the following "activities" exist:
42
      | activity   | name   | intro              | course | idnumber | gradepass |
43
      | quiz       | Quiz 1 | Quiz 1 description | C1     | quiz1    | 60#00     |
44
    And quiz "Quiz 1" contains the following questions:
45
      | question | page |
46
      | TF1      | 1    |
47
    When I am on the "Quiz 1" "mod_quiz > View" page logged in as "student"
48
    Then I should see "Grade to pass: 60#00 out of 100#00"
49
 
50
  Scenario: Check the pass grade is not displayed if not set
51
    Given the following "activities" exist:
52
      | activity   | name   | intro              | course | idnumber | gradepass |
53
      | quiz       | Quiz 1 | Quiz 1 description | C1     | quiz1    |           |
54
    And quiz "Quiz 1" contains the following questions:
55
      | question | page |
56
      | TF1      | 1    |
57
    When I am on the "Quiz 1" "mod_quiz > View" page logged in as "student"
58
    Then I should not see "Grade to pass: 0.00"