/**
  * Start test plan.
  *
  * @param string $size size of the site.
  */
 public static function start_testplan($size)
 {
     global $CFG;
     $urlcomponents = parse_url($CFG->wwwroot);
     if (empty($urlcomponents['path'])) {
         $urlcomponents['path'] = '';
     }
     // Update fixed attributes.
     $propertiestoupdate = array('moodleversion' => $CFG->version, 'dataplansize' => get_config('core', 'performancesitedata'), 'host' => $urlcomponents['host'], 'sitepath' => $urlcomponents['path'], 'dataplanversion' => dataplanutil::get_tool_version(), 'testplansize' => $size, 'testplanversion' => util::get_tool_version());
     foreach ($propertiestoupdate as $prop => $value) {
         $list['//elementProp[@name=\'' . $prop . '\']//stringProp[@name=\'Argument.value\']'] = $value;
     }
     // Update throughput and any other global value found.
     $globalconfig = util::get_config();
     $globalconfig = $globalconfig['global'];
     foreach ($globalconfig as $key => $value) {
         if (is_array($value)) {
             $value = $value[$size];
         }
         $list['//stringProp[@name=\'' . $key . '\']'] = '${__property(throughput,throughput,' . $value . ')}';
     }
     self::replace_append_xml_in_testplan($list);
 }