How to write a test for two opened IDEA?

I'm writing an IDEA plugin, which will allow two opened standalone IDEA to communicate with each other(they will send messages to a shared server socket, and redirect to another).

But I'm not sure how to write a test. I've read this document: https://confluence.jetbrains.com/display/IDEADEV/Testing+IntelliJ+IDEA+Plugins , but I can only find some examples using only one IDEA.

Is there any way to make such test possible:

1. open "/projects/a" with IDEA
2. open "/projects/b" with another standalone IDEA instance
3. one IDEA instance creates file "Hello.java"
4. check another one has created the same file

0

Yes, this should be possible, but fairly complicated (the different IDEA instances will be running in separate JVM instances, and you'll need to figure out some solution for interprocess communication between them). There is no support for writing such tests in our test framework.

0

Thanks, do you think is it possible to use  http://www.sikuli.org/ to write such a test? Which was mentioned in that document, but I'm not sure if it's OK

0

I never used Sikuli, so I don't really know what it's capable of.

0

Thanks, I'm trying it now, hope it work

0

请先登录再写评论。