File tree Expand file tree Collapse file tree
checkmarx-ast-eclipse-plugin-tests/src/test/java/checkmarx/ast/eclipse/plugin/tests/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -307,27 +307,44 @@ protected static void waitForConnectionResponse() throws TimeoutException {
307307 while (retryIdx < 10 ) {
308308 boolean found = false ;
309309 int index = 0 ;
310+ // Search text widgets
310311 while (true ) {
311312 try {
312313 String textValue = _bot .text (index ).getText ();
313-
314+ System . out . println ( "[waitForConnectionResponse] text[" + index + "]: '" + textValue + "'" );
314315 if (textValue .contains (INFO_SUCCESSFUL_CONNECTION )) {
315316 found = true ;
316317 break ;
317318 }
318319 index ++;
319320 } catch (Exception e ) {
320- // No more text widgets available
321321 break ;
322322 }
323323 }
324+ // Search label widgets if not found
325+ if (!found ) {
326+ index = 0 ;
327+ while (true ) {
328+ try {
329+ String labelValue = _bot .label (index ).getText ();
330+ System .out .println ("[waitForConnectionResponse] label[" + index + "]: '" + labelValue + "'" );
331+ if (labelValue .contains (INFO_SUCCESSFUL_CONNECTION )) {
332+ found = true ;
333+ break ;
334+ }
335+ index ++;
336+ } catch (Exception e ) {
337+ break ;
338+ }
339+ }
340+ }
324341 if (found ) {
325342 return ;
326343 }
327344 _bot .sleep (1000 );
328345 retryIdx ++;
329346 }
330- throw new TimeoutException ("Connection validation timeout after 10000ms." );
347+ throw new TimeoutException ("Connection validation timeout after 10000ms. See logs for widget contents. " );
331348 }
332349
333350 /**
@@ -395,4 +412,4 @@ protected SWTBotTree getResultsTree() {
395412 return _bot .tree (0 );
396413 }
397414 }
398- }
415+ }
You can’t perform that action at this time.
0 commit comments