We currently offer both Java and C++ versions of our distributed messaging system product.
I am in the process of developing a framework to conduct system testing across multiple servers. In order to accomplish this, I need a "test coordinator" process that can send instructions to each server, specifying tasks such as sending a certain number of sample messages or waiting for a specific message.
My idea is to send a script to each server that contains its set of instructions. This way, the test servers can be kept simple, with all the necessary intelligence embedded within the test instructions.
If all our servers were Java-based, I would consider using Groovy or a similar language for this purpose. However, since we also have a C++ implementation, I am exploring the possibility of using Javascript to invoke Java/C++ classes in order to send messages and perform other tasks.
Do you have any suggestions on an effective way to achieve this?
If all else fails, I may resort to creating an XML format to encapsulate the test parameters in a declarative manner, rather than embedding the test instructions imperatively. However, I would prefer not to burden the test servers with additional test-specific logic.
Any guidance you can provide would be greatly appreciated.