1

I want to check if after some actions, a window is opened. The window name is "Help - Test". Below is my code:

with [get-window "Help - Test"] {
    get-property "isEnabled()" | equals true | verify-true
    get-property "isVisible()" | equals true | verify-true
}

when running the test I get error The Window "Help - Test" could not be found.

Also I tested the Eclipse help to check that the help menu is opened after Tips and Tricks and same problem: ec

Note: I want to check that the help menu from eclipse is opened.

georgiana_e
  • 1,809
  • 10
  • 35
  • 54

1 Answers1

1

The expression

get-window "Help - Test"

is the test itself. No need for additional property getters. If RCPTT can not find the window then it is either not there (test case found a real problem) or it checks too early; before the window is rendered.

If the latter then things get a little complicated, you could wait or wait-until-eclipse-is-ready or place the action into a try section.

Adam Horvath
  • 1,249
  • 1
  • 10
  • 25
  • It still display window not found, even after adding wait and I see that the window is opened. Do you know how I get all the child windows of the parent? – georgiana_e Jul 16 '19 at 07:08
  • Is it the standard Eclipse IDE Help window that is opening? If so, then it is not a child window but a separate workbench. – Adam Horvath Jul 16 '19 at 08:42
  • Is the help window of eclipse. How can I check for a workbench? The recorder generates code with get-window, hou can I check the workbench? – georgiana_e Jul 16 '19 at 09:10