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
@core @core_analytics @javascript
2
Feature: Manage analytics models
3
  In order to manage analytics models
4
  As a manager
5
  I need to create and use a model
6
 
7
  Background:
1441 ariadna 8
    Given a Python Machine Learning backend server is configured
9
    And I change the Python Machine Learning backend to use external server
1 efrain 10
    # Turn off the course welcome message, so we can easily test other messages.
1441 ariadna 11
    And the following config values are set as admin:
1 efrain 12
      | onlycli                  | 0 | analytics    |
13
      | sendcoursewelcomemessage | 0 | enrol_manual |
1441 ariadna 14
      | enableanalytics          | 1 |              |
1 efrain 15
    And the following "users" exist:
16
      | username | firstname | lastname | email                |
17
      | manager1 | Manager   | 1        | manager1@example.com |
18
    And the following "system role assigns" exist:
19
      | user     | course               | role      |
20
      | manager1 | Acceptance test site | manager   |
21
    And the following "analytics model" exist:
22
      | target                                   | indicators                                 | timesplitting                               | enabled |
23
      | \core_course\analytics\target\course_completion | \core\analytics\indicator\any_write_action,\core\analytics\indicator\read_actions |  \core\analytics\time_splitting\single_range | true    |
24
    And I log in as "manager1"
25
    And I navigate to "Analytics > Analytics models" in site administration
26
 
27
  Scenario: Create a model
28
    When I open the action menu in ".top-nav" "css_element"
29
    And I choose "Create model" in the open action menu
30
    And I set the field "Enabled" to "Enable"
31
    And I select "__core_course__analytics__target__course_completion" from the "target" singleselect
32
    And I set the field "Indicators" to "Read actions amount, Any write action in the course"
33
    And I select "__core__analytics__time_splitting__single_range" from the "timesplitting" singleselect
34
    And I press "Save changes"
35
    Then I should see "No predictions available yet" in the "Students at risk of not meeting the course completion conditions" "table_row"
36
 
37
  Scenario: Edit a model
38
    When I open the action menu in "Students at risk of not meeting the course completion conditions" "table_row"
39
    And I choose "Edit" in the open action menu
40
    And I click on "Read actions amount" "text" in the ".form-autocomplete-selection" "css_element"
41
    And I press "Save changes"
42
    And I should not see "Read actions amount"
43
 
44
  Scenario: Disable a model
45
    When I open the action menu in "Students at risk of not meeting the course completion conditions" "table_row"
46
    And I choose "Disable" in the open action menu
47
    Then I should see "Disabled model" in the "Students at risk of not meeting the course completion conditions" "table_row"
48
 
49
  Scenario: Export model
50
    When I open the action menu in "Students at risk of not meeting the course completion conditions" "table_row"
51
    And I choose "Export" in the open action menu
52
    And I click on "Actions" "link" in the "Students at risk of not meeting the course completion conditions" "table_row"
1441 ariadna 53
    And following "Export" should download a file that:
54
       | Contains file in zip | model-config.json |
1 efrain 55
 
56
  Scenario: Check invalid site elements
57
    When I open the action menu in "Students at risk of not meeting the course completion conditions" "table_row"
58
    And I choose "Invalid site elements" in the open action menu
59
    Then I should see "Invalid analysable elements"
60
 
61
  Scenario: Delete model
62
    When I open the action menu in "Students at risk of not meeting the course completion conditions" "table_row"
63
    And I choose "Delete" in the open action menu
64
    And I click on "Delete" "button" in the "Delete" "dialogue"
65
    Then I should not see "Students at risk of not meeting the course completion conditions"