-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.lasso
68 lines (50 loc) · 1.9 KB
/
index.lasso
1
<?LassoScript // Globalise L-Debug namespace_using:namespace_global; library: '/__classes/debug/debug.ctyp'; // Activate by default to demo true ? debug->activate( -js = '/__classes/debug/debug.js', -css = '/__classes/debug/debug.css', ); /namespace_using; // Define Constants define_constant:'unit_filesUser', ''; define_constant:'unit_filesPswd', ''; define_constant:'unit_resultsGlobal', '_unit_results_'; // define_constant:'unit_tagPath', '/__functions/'; define_constant:'unit_classPath', '/__classes/'; define_constant:'unit_htmlPath', '/_html/'; define_constant:'unit_suitesPath', '/testSuites/'; define_constant:'unit_casesPath', '/testCases/'; define_constant:'unit_appPath', '/appClasses/'; define_constant:'unit_localPath', string(Response_LocalPath)->split('/')->removelast&join('/')'/'; // Source file access check protect; inline: -username = unit_filesUser, -password = unit_filesPswd; local('filecheck') = file_readline(unit_localPath'__classes/testCase.ctyp',3) != string ; /inline; /protect; ! local('fileCheck') ? fail:-3, 'User 'unit_filesUser' could not read from: 'unit_localPath ' - Please enable this path in both serverAdmin, siteAdmin and set Allow Any File Extension to Yes'; local_remove('fileCheck'); // Load L-Revolver - Async thread management library: unit_classPath + 'revolver/revolver.ctyp'; // Isolate all L-Unit classes namespace_using:'unit'; // Tags library: unit_tagPath + 'core/core.ctag'; // Types library: unit_classPath + 'assertions.ctyp'; library: unit_classPath + 'classAnalyser.ctyp'; library: unit_classPath + 'controller.ctyp'; library: unit_classPath + 'testCase.ctyp'; library: unit_classPath + 'testSuite.ctyp'; library: unit_classPath + 'testMetrics.ctyp'; /namespace_using; debug:client_params; // Initialise the controller unit_controller;?>