Question

I want to be able to recognize the Eclipse window, which is always already open, so I won't ever need to open it with SilkTest. Is there a way that I can set the base state to be a window that's always going to be open? It seems the way to set the base state also designates the executable for it to open. The executable won't necessarily always be in the same location, and it would be a pain to configure that.

Is this possible?

I've already tried desktop.<Window>find("//Window[@caption='Java EE*']");, which doesn't work.

Était-ce utile?

La solution

The base state in Silk Test does multiple things:

  • Tell Silk Test which application you want to test
  • Find the application if it is running
  • Otherwise it will start the application

Obviously you don't need the third step, but the other two are still required. I suggest using *eclipse.exe as executable pattern and the locator "//Window[@caption='Java EE*']" which you already have, if you then execute the base state it should return you the main window of Eclipse and you're good to go.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top