Refactor K6 test script to use template based code generation 75/141475/8
authorsourabh_sourabh <sourabh.sourabh@est.tech>
Mon, 7 Jul 2025 12:40:51 +0000 (13:40 +0100)
committersourabh_sourabh <sourabh.sourabh@est.tech>
Wed, 16 Jul 2025 13:03:31 +0000 (14:03 +0100)
commit3e1bd16853106a5bb7939f6777b4ea085ebcefde
treec3dec2948e4799279b23cfd4faad8c3bfbae52f8
parent97b8f4265773fabdedfdbaf8c2d48b98e0ee464d
Refactor K6 test script to use template based code generation

- Introduced templates for kpi config and scenario config.
- Used these templates to generate thresholds and trends.

Issue-ID: CPS-2867
Change-Id: Ia6b6627950ca61c602eef34a08b87e5ab2e9d3c7
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
.gitignore
k6-tests/ncmp/common/utils.js
k6-tests/ncmp/config/endurance-scenario-execution-definition.json [moved from k6-tests/ncmp/config/endurance.json with 100% similarity]
k6-tests/ncmp/config/scenario-metadata.json [moved from k6-tests/ncmp/config/test-kpi-metadata.json with 100% similarity]
k6-tests/ncmp/create-scenario-execution-definition.sh [new file with mode: 0644]
k6-tests/ncmp/create-scenario-javascript.sh [new file with mode: 0644]
k6-tests/ncmp/execute-k6-scenarios.sh
k6-tests/ncmp/templates/scenario-execution-definition.tmpl [moved from k6-tests/ncmp/config/kpi.json with 99% similarity]
k6-tests/ncmp/templates/scenario-javascript.tmpl [moved from k6-tests/ncmp/scenarios-config.js with 99% similarity]