Fix: Graph titles for Delta Report performance tests 90/143190/1
authorArpit Singh6 <AS00745003@techmahindra.com>
Tue, 10 Mar 2026 12:12:25 +0000 (17:42 +0530)
committerArpit Singh6 <AS00745003@techmahindra.com>
Tue, 10 Mar 2026 12:12:25 +0000 (17:42 +0530)
The title for following performance tests are incorrectly handled when saving to the Delta performance CSV file because of the presence of comma (,) in the title causing blank graphs to be generated.

- Delta b/w 2 anchors, w/o grouping all descendants
- Delta b/w 2 anchors, w/o grouping direct descendants
- Delta b/w 2 anchors, w/o grouping no descendants
- Delta b/w anchor & JSON, w/ grouping all descendants
- Delta b/w anchor & JSON, w/ grouping direct descendants
- Delta b/w anchor & JSON, w/ grouping no descendants

Removed all special characters from graph titles.

Isse-ID: CPS-3185
Change-Id: Iad75788e7dd9f0889c756f31097ce305622684ba
Signed-off-by: Arpit Singh6 <AS00745003@techmahindra.com>
integration-test/src/test/groovy/org/onap/cps/integration/performance/cps/DeltaPerfTest.groovy

index dd5b04a..04dd529 100644 (file)
@@ -69,7 +69,7 @@ class DeltaPerfTest extends CpsPerfTestBase{
             resourceMeter.stop()
             def durationInSeconds = resourceMeter.getTotalTimeInSeconds()
         then: 'the delta is returned and operation completes within expected time'
-            recordAndAssertResourceUsage("CPS:Delta b/w 2 anchors ${scenario}", expectedDuration, durationInSeconds, resourceMeter.getTotalMemoryUsageInMB())
+            recordAndAssertResourceUsage("CPS:Delta of 2 anchors ${scenario}", expectedDuration, durationInSeconds, resourceMeter.getTotalMemoryUsageInMB())
         where: 'the following parameters are used'
             scenario             | xpath                                                             | fetchDescendantsOption  || expectedDuration
             'no descendants'     | '/openroadm-devices/openroadm-device[@device-id=\'C201-7-1A-1\']' | OMIT_DESCENDANTS        || 2.0
@@ -86,7 +86,7 @@ class DeltaPerfTest extends CpsPerfTestBase{
             resourceMeter.stop()
             def durationInSeconds = resourceMeter.getTotalTimeInSeconds()
         then: 'the delta is returned and operation completes within expected time'
-            recordAndAssertResourceUsage("CPS:Delta b/w 2 anchors, w/o grouping ${scenario}", expectedDuration, durationInSeconds, resourceMeter.getTotalMemoryUsageInMB())
+            recordAndAssertResourceUsage("CPS:Delta of 2 anchors no grouping ${scenario}", expectedDuration, durationInSeconds, resourceMeter.getTotalMemoryUsageInMB())
         where: 'the following parameters are used'
             scenario             | xpath                                                             | fetchDescendantsOption  || expectedDuration
             'no descendants'     | '/openroadm-devices/openroadm-device[@device-id=\'C201-7-1A-1\']' | OMIT_DESCENDANTS        || 1.0
@@ -101,7 +101,7 @@ class DeltaPerfTest extends CpsPerfTestBase{
             resourceMeter.stop()
             def durationInSeconds = resourceMeter.getTotalTimeInSeconds()
         then: 'the delta is returned and operation completes within expected time'
-            recordAndAssertResourceUsage("CPS:Delta b/w anchor & JSON, w/ grouping ${scenario}", expectedDuration, durationInSeconds, resourceMeter.getTotalMemoryUsageInMB())
+            recordAndAssertResourceUsage("CPS:Delta of anchor-JSON no grouping ${scenario}", expectedDuration, durationInSeconds, resourceMeter.getTotalMemoryUsageInMB())
         where: 'the following parameters are used'
             scenario             | fetchDescendantsOption  || expectedDuration
             'no descendants'     | OMIT_DESCENDANTS        || 4.0