Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 23... Línea 23...
23
 */
23
 */
Línea 24... Línea 24...
24
 
24
 
25
use tool_generator\local\testscenario\runner;
25
use tool_generator\local\testscenario\runner;
26
use tool_generator\form\featureimport;
26
use tool_generator\form\featureimport;
-
 
27
use tool_generator\output\parsingresult;
Línea 27... Línea 28...
27
use tool_generator\output\parsingresult;
28
use tool_generator\output\stepsinformation;
28
 
29
 
29
require(__DIR__ . '/../../../config.php');
30
require(__DIR__ . '/../../../config.php');
Línea 52... Línea 53...
52
    echo $output->notification(get_string('testscenario_notready', 'tool_generator'), null, false);
53
    echo $output->notification(get_string('testscenario_notready', 'tool_generator'), null, false);
53
    echo $output->footer();
54
    echo $output->footer();
54
    die;
55
    die;
55
}
56
}
Línea 56... Línea 57...
56
 
57
 
Línea 57... Línea 58...
57
echo $output->paragraph(get_string('testscenario_filedesc', 'tool_generator'));
58
echo $output->render(new stepsinformation($runner));
Línea 58... Línea 59...
58
 
59
 
59
$mform = new featureimport();
60
$mform = new featureimport();
Línea 77... Línea 78...
77
    echo $output->footer();
78
    echo $output->footer();
78
    die;
79
    die;
79
}
80
}
Línea 80... Línea 81...
80
 
81
 
-
 
82
try {
-
 
83
    if ($data->executecleanup) {
-
 
84
        $parsedfeature = $runner->parse_cleanup($content);
81
try {
85
    } else {
-
 
86
        $parsedfeature = $runner->parse_feature($content);
82
    $parsedfeature = $runner->parse_feature($content);
87
    }
83
} catch (\Throwable $th) {
88
} catch (\Throwable $th) {
84
    echo $output->notification(get_string('testscenario_errorparsing', 'tool_generator', $th->getMessage()));
89
    echo $output->notification(get_string('testscenario_errorparsing', 'tool_generator', $th->getMessage()));
Línea 85... Línea 90...
85
    echo $output->continue_button($currenturl);
90
    echo $output->continue_button($currenturl);