[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Test plan generator.
Copyright: | 2013 David Monllaó |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 330 lines (11 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
tool_generator_testplan_backend:: (10 methods):
get_size_choices()
get_course_options()
get_repourl()
create_testplan_file()
create_users_file()
generate_test_plan()
generate_users_file()
get_file_record()
get_course_test_data()
has_selected_course_any_problem()
Class: tool_generator_testplan_backend - X-Ref
Generates the files required by JMeter.get_size_choices() X-Ref |
Gets a list of size choices supported by this backend. return: array List of size (int) => text description for display |
get_course_options() X-Ref |
Gets the list of courses that can be used used to generate a test. return: array The list of options as courseid => name |
get_repourl() X-Ref |
Getter for moodle-performance-comparison project URL. return: string |
create_testplan_file($courseid, $size) X-Ref |
Creates the test plan file. param: int $courseid The target course id param: int $size The test plan size return: stored_file |
create_users_file($courseid, $updateuserspassword) X-Ref |
Creates the users data file. param: int $courseid The target course id param: bool $updateuserspassword Updates the course users password to $CFG->tool_generator_users_password return: stored_file |
generate_test_plan($targetcourseid, $size) X-Ref |
Generates the test plan according to the target course contents. param: int $targetcourseid The target course id param: int $size The test plan size return: string The test plan as a string |
generate_users_file($targetcourseid, $updateuserspassword) X-Ref |
Generates the user's credentials file with all the course's users param: int $targetcourseid param: bool $updateuserspassword Updates the course users password to $CFG->tool_generator_users_password return: string The users csv file contents. |
get_file_record($filearea, $filetype) X-Ref |
Returns a tool_generator file record param: string $filearea testplan or users param: string $filetype The file extension jmx or csv return: stdClass The file record to use when creating tool_generator files |
get_course_test_data($targetcourseid) X-Ref |
Gets the data required to fill the test plan template with the database contents. param: int $targetcourseid The target course id return: stdClass The ids required by the test plan |
has_selected_course_any_problem($course, $size) X-Ref |
Checks if the selected target course is ok. param: int|string $course param: int $size return: array Errors array or false if everything is ok |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |