diff --git a/source/src/main/java/org/cerberus/core/crud/dao/impl/TestCaseDepDAO.java b/source/src/main/java/org/cerberus/core/crud/dao/impl/TestCaseDepDAO.java index d3c04f12d..06cbc1a8f 100644 --- a/source/src/main/java/org/cerberus/core/crud/dao/impl/TestCaseDepDAO.java +++ b/source/src/main/java/org/cerberus/core/crud/dao/impl/TestCaseDepDAO.java @@ -108,7 +108,7 @@ public List readByTestAndTestCase(List testcases) throws public void create(TestCaseDep testcaseDependency) throws CerberusException { String query = "INSERT INTO `testcasedep`" + "(`Test`, `Testcase`, `Type`, `DependencyTest`, `DependencyTestcase`, `DependencyTCDelay`, `DependencyEvent`, `isActive`, `Description`, `UsrCreated`, `DateCreated`, `UsrModif`, `DateModif` )" - + "VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; + + "VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; RequestDbUtils.executeUpdate(databaseSpring, query, preparedStatement -> this.setRequestData(preparedStatement, testcaseDependency, false) diff --git a/source/src/main/webapp/js/transversalobject/TestCase.js b/source/src/main/webapp/js/transversalobject/TestCase.js index 4cd28f331..4942a12dc 100644 --- a/source/src/main/webapp/js/transversalobject/TestCase.js +++ b/source/src/main/webapp/js/transversalobject/TestCase.js @@ -242,7 +242,7 @@ function addHtmlForDependencyLine(id, test, testCase, testCaseTxt, activate, des } function getHtmlIdForTestCase(test, testCase) { - return (test + '-' + testCase).replace(/ /g, '_').replace(/\./g, '_').replace(/\:/g, '_').replace(/\)/g, '_').replace(/\(/g, '_'); + return (test + '-' + testCase).replace(/ /g, '_').replace(/\./g, '_').replace(/\:/g, '_').replace(/\)/g, '_').replace(/\(/g, '_').replace(/\//g, '_'); } function removeTestCaseDependency(test, testCase) {