Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
@tool @tool_task @javascript
2
Feature: Manage adhoc task
3
  In order to manage adhoc tasks
4
  As an admin
5
  I need to be able to view and delete adhoc tasks
6
 
7
  Scenario Outline: View adhoc tasks next run time
8
    Given the following "tool_task > adhoc tasks" exist:
9
      | classname                            | seconds | hostname     | pid  | nextruntime   |
10
      | \core\task\asynchronous_backup_task  | 0       | c69335460f7f | 1915 | <nextruntime> |
11
    When I log in as "admin"
12
    And I navigate to "Server > Tasks > Ad hoc tasks" in site administration
13
    Then the following should exist in the "Ad hoc tasks" table:
14
      | Component / Class name   | Next run         |
15
      | asynchronous_backup_task | <nextruntimestr> |
16
    And I click on "asynchronous_backup_task" "link" in the "Ad hoc tasks" "table"
17
    And the following should exist in the "\core\task\asynchronous_backup_task Ad hoc tasks" table:
18
      | Next run         |
19
      | <nextruntimestr> |
20
    Examples:
21
      | nextruntime       | nextruntimestr                         |
22
      | ##yesterday##     | ASAP                                   |
23
      | ##tomorrow noon## | ##tomorrow noon##%A, %d %B %Y, %I:%M## |
24
 
25
  Scenario: Delete an existing adhoc task
26
    Given I log in as "admin"
27
    And the following "tool_task > adhoc tasks" exist:
28
      | classname                            | seconds | hostname     | pid  |
29
      | \core\task\asynchronous_backup_task  | 7201    | c69335460f7f | 1915 |
30
      | \core\task\asynchronous_restore_task | 172800  | c69335460f7f | 1916 |
31
    And I navigate to "Server > Tasks > Ad hoc tasks" in site administration
32
    Then "asynchronous_backup_task" "table_row" should exist
33
    And "asynchronous_restore_task" "table_row" should exist
34
    And I follow "asynchronous_backup_task"
35
    When I follow "Delete"
36
    And I click on "Delete" "button" in the ".modal-dialog" "css_element"
37
    Then I navigate to "Server > Tasks > Ad hoc tasks" in site administration
38
    And "asynchronous_backup_task" "table_row" should not exist
39
    And "asynchronous_restore_task" "table_row" should exist