INNER CODE UNIT · TypeScript
getEnabledScenarios
eclipse-ditto/ditto · benchmark-tool/artillery-test/artillery.ts:65
function getEnabledScenarios(): any[] {
debugLog(`[Config] parsed config: ${JSON.stringify(getConfig(), null, 2)}`);
const generatedScenarios: any[] = [];
const enabledScenarios = getConfigEnabledScenarios(getConfig());
enabledScenarios.forEach(scenario => {
const functionName = SCENARIO_FUNCTION_NAMES[scenario.name];
if (!functionName) {
console.warn(`[Artillery Config] Unknown scenario: ${scenario.name}`);
return;
}
const supportedChannels = SCENARIO_SUPPORTED_CHANNELS[scenario.name];
scenario.channels.forEach(channelConfig => {
if (channelConfig.weight === 0) {
console.log(`[Artillery Config] Skipping ${scenario.name}_${channelConfig.name} - disabled by weight`);