diff --git a/src/main/java/nl/nn/testtool/TestTool.java b/src/main/java/nl/nn/testtool/TestTool.java index e84d708f..d03013bf 100644 --- a/src/main/java/nl/nn/testtool/TestTool.java +++ b/src/main/java/nl/nn/testtool/TestTool.java @@ -1,5 +1,5 @@ /* - Copyright 2019-2024 WeAreFrank!, 2018 Nationale-Nederlanden + Copyright 2019-2025 WeAreFrank!, 2018 Nationale-Nederlanden Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -1099,6 +1099,13 @@ public Storage getStorage(String name) { return storage; } } + String nameWithPossibleSpaces = name.replace("_", " "); + for (View view : views) { + Storage storage = view.getDebugStorage(); + if (nameWithPossibleSpaces.equals(storage.getName())) { + return storage; + } + } // TODO: Introduce views for test tab also and replace getViews() in TestToolApi with getTabs() (for now the // frontend is using hardcoded storage name Test for test tab) if (name.equals("Test")) { diff --git a/src/main/java/nl/nn/testtool/web/api/ReportApi.java b/src/main/java/nl/nn/testtool/web/api/ReportApi.java index 98067fb4..258d55f0 100644 --- a/src/main/java/nl/nn/testtool/web/api/ReportApi.java +++ b/src/main/java/nl/nn/testtool/web/api/ReportApi.java @@ -1,5 +1,5 @@ /* - Copyright 2021-2024 WeAreFrank! + Copyright 2021-2025 WeAreFrank! Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.