-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Labels
Description
Currently we run a health check and react on it with an advanced health check.
Lines 307 to 314 in 5c64a1e
| public static void runAndCaptureHealthCheck(SWTWorkbenchBot bot) throws Exception { | |
| ResourcesPlugin.getWorkspace().build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor()); | |
| bot.waitUntil(new AllJobsAreFinished(), DEFAULT_TIMEOUT); // build might take some time | |
| SWTBotView view = bot.viewById(JavaUI.ID_PACKAGES); | |
| view.bot().tree().expandNode("CobiGen_Templates").select().contextMenu("CobiGen").menu("Health Check...").click(); | |
| captureAdvancedHealthCheck(bot); |
Lines 339 to 351 in 5c64a1e
| private static void captureAdvancedHealthCheck(SWTWorkbenchBot bot) { | |
| bot.waitUntil(new AnyShellIsActive(CobiGenDialogConstants.HealthCheckDialogs.DIALOG_TITLE), DEFAULT_TIMEOUT); | |
| takeScreenshot(bot, "healthCheck"); | |
| SWTBotShell healthCheckDialog = bot.shell(CobiGenDialogConstants.HealthCheckDialogs.DIALOG_TITLE); | |
| healthCheckDialog.bot().button(CobiGenDialogConstants.HealthCheckDialogs.ADVANCED_DIALOG_TITLE).click(); | |
| bot.waitUntil(new AnyShellIsActive(CobiGenDialogConstants.HealthCheckDialogs.ADVANCED_DIALOG_TITLE), | |
| DEFAULT_TIMEOUT); | |
| takeScreenshot(bot, "advancedHealthCheck"); | |
| SWTBotShell advancedHealthCheckDialog = bot.shell(CobiGenDialogConstants.HealthCheckDialogs.ADVANCED_DIALOG_TITLE); | |
| advancedHealthCheckDialog.bot().button("OK"); | |
| advancedHealthCheckDialog.bot().button("OK"); |
Instead we should handle both health checks individually.