[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/question/format/webct/tests/behat/ -> importcalculated.feature (source)

   1  @qformat @qformat_webct
   2  Feature: Test importing calculated question from WebCT format.
   3    In order to reuse calculated questions from a commercial LMS
   4    As a teacher
   5    I need to be able to import them in WebCT format.
   6  
   7    Background:
   8      Given the following "courses" exist:
   9        | fullname | shortname | format |
  10        | Course 1 | C1        | topics |
  11      And the following "users" exist:
  12        | username | firstname |
  13        | teacher  | Teacher   |
  14      And the following "course enrolments" exist:
  15        | user    | course | role           |
  16        | teacher | C1     | editingteacher |
  17      And I log in as "teacher"
  18      And I follow "Course 1"
  19  
  20    @javascript @_file_upload
  21    Scenario: import a WebCT calculated question
  22      When I navigate to "Import" node in "Course administration > Question bank"
  23      And I set the field "id_format_webct" to "1"
  24      And I upload "question/format/webct/tests/fixtures/sample_calculated_webct.txt" file to "Import" filemanager
  25      And I press "id_submitbutton"
  26      Then I should see "Parsing questions from import file."
  27      And I should see "Importing 1 questions from file"
  28      And I should see "Find the area in m2 of a square with sides of length {l} m."
  29      When I press "Continue"
  30      Then I should see "calculated: Square area"


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1