开发者

Full-screen Flash application test needs external pokes

I'm testing a full-screen Flash application. My preference is to drive the process with Java and I've had a lot of luck with the java.awt.Robot class. I'm looking for ways of modifying the test's behavior while the app still occupies开发者_开发问答 the full screen.

So far, I've found one "outside control", the caps lock key. If I see the process go horribly wrong, I turn on caps lock. Toolkit.getLockingKeyState notices that caps lock is on, and the test is terminated.

I need additional ways to change test operation, like "pause test" and "next test case." It looks like I could use num lock and scroll lock, but my tests need to run on Mac OS X, Windows, and Linux, so I can't count on having those keys. This is a small operation, so it's ok if the method isn't refined. But not as kludgy as overloading the caps lock key with 5 different operations.

One last limitation: I have no internal control of the application; I'm supposed to "test" just like a user.


You can try to control it from another machine over network, so you will be able to create control console or even gui and interact with your tester in any way you want. And if you run it on multiple machines, you can contol tests on all of them from one control panel. It will be the most flexible way I think.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜