Skip to content

Commit

Permalink
Merge pull request mosip#1091 from mohanachandran-s/develop
Browse files Browse the repository at this point in the history
MOSIP-35404 | Move component specific test code from common to component api test rigs
  • Loading branch information
ckm007 authored Oct 7, 2024
2 parents 419e831 + 8227762 commit 1ed0b08
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ public static void main(String[] arg) {
ExtractResource.extractCommonResourceFromJar();
} else {
ExtractResource.copyCommonResources();
}
}
AdminTestUtil.init();
MasterDataConfigManager.init();
BaseTestCase.suiteSetup(getRunType());
SkipTestCaseHandler.loadTestcaseToBeSkippedList("testCaseSkippedList.txt");
Expand Down Expand Up @@ -99,13 +100,17 @@ public static void main(String[] arg) {
BaseTestCase.languageList.clear();
BaseTestCase.languageList.add(localLanguageList.get(i));

DBManager.clearMasterDbData();
DBManager.executeDBQueries(MasterDataConfigManager.getMASTERDbUrl(), MasterDataConfigManager.getMasterDbUser(),
MasterDataConfigManager.getMasterDbPass(), MasterDataConfigManager.getMasterDbSchema(),
getGlobalResourcePath() + "/" + "config/masterDataDeleteQueries.txt");
BaseTestCase.currentModule = GlobalConstants.MASTERDATA;
BaseTestCase.setReportName("masterdata-" + localLanguageList.get(i));
startTestRunner();
}

DBManager.clearMasterDbData();
DBManager.executeDBQueries(MasterDataConfigManager.getMASTERDbUrl(), MasterDataConfigManager.getMasterDbUser(),
MasterDataConfigManager.getMasterDbPass(), MasterDataConfigManager.getMasterDbSchema(),
getGlobalResourcePath() + "/" + "config/masterDataDeleteQueries.txt");
} catch (Exception e) {
LOGGER.error("Exception " + e.getMessage());
}
Expand Down

0 comments on commit 1ed0b08

Please sign in to comment.