Currently we run a health check and react on it with an advanced health check.
|
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); |
|
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.
Currently we run a health check and react on it with an advanced health check.
cobigen/cobigen-eclipse/cobigen-eclipse-test/src/main/java/com/devonfw/cobigen/eclipse/test/common/utils/EclipseCobiGenUtils.java
Lines 307 to 314 in 5c64a1e
cobigen/cobigen-eclipse/cobigen-eclipse-test/src/main/java/com/devonfw/cobigen/eclipse/test/common/utils/EclipseCobiGenUtils.java
Lines 339 to 351 in 5c64a1e
Instead we should handle both health checks individually.