Running tests on a remote machine using PassiveAgent
I have been successfully running tests on my local machine. Now, I am trying to run my tests on a remote machine. I have a few questions regarding this:
1. Do i need to copy over all my tests into the remote machine before running them? I saw from another thread that I dont need to. As long as I have the compiled version of my tests in the local machine, they will get passed to the remote machine. Please clarify.
2. I have copied the javatest.jar file into the remote machine. I have kicked the PassiveAgent off using the following command:
java -classpath ./javatest.jar com.sun.javatest.agent.AgentMain -passive -trace -passivePort 9999
Is this correct? I dont see any errors when i kick this process off. So I'm assuming it's correct.
3. This is my understanding of the PassiveAgent as described in the Agent Guide. A passive agent is used when you want to run tests on a remote machine. The Javatest Harness initiates the running of the tests by passing the tests to be run to the passive agent. Is this understanding correct?
4. In the local machine where I have the Javatest Harness installed, I am pretty sure I need to specify the remote host name and the remote host port where the passive agent is running, I dont know where this needs to be done. The configuration interview asks only one question that is if i want to use JavaTest Agent or not. Please let me know where i need to configure these values.
5. Do i need to make any changes to the jtt file? the current jtt file i have is working perfectly to be run on my local machine.
6. whats the purpose of the Map file? Is the map file only to make sure certain strings get substituted on the remote machine to ensure correct running of the tests? Is there more to the map file?
I went through the whole of the Javatest Agent User Guide. I wasn't too clear with the above questions even after reading it. Please help me out.
PS: The following is my jti file:
#JT Harness Configuration Interview
#Wed Oct 28 16:35:08 EDT 2009