Skip to main content

Execution over Serial Port

3 replies [Last post]
anuj_mehta
Offline
Joined: 2008-05-22
Points: 0

Hi

I am trying to execute my Test cases on Agent. The communication between the machine running JT Harness and the machine where Agent is running should via Serial Port. In normal scenario I see
ActiveAgentCommand getting invoked. While in case of Serial communication SerialPortAgentCommand should be invoked.

My query is that do I need to specify in .JTT file that command is SerialPortAgentCommand so that it gets invoked or do I need to change it in some other configuration file??

Thanks in advance.

Regards,
Anuj
http://anuj-mehta.blogspot.com

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bkurotsu
Offline
Joined: 2004-12-13
Points: 0

That demo interview isn't written to allow Serial support, it's just an example. So yes, you would need to slightly modify the interview to allow serial as a selection (or hardcoded) for your needs. And it (the interview) would need to export the Serial command instead.

The jtt is intended for high-level configuration of the harness for a test suite, the interview (and hence jti) is what specifies the details.

anuj_mehta
Offline
Joined: 2008-05-22
Points: 0

Can someone please answer to my query??

Cheers!!
Anuj
http://anuj-mehta.blogspot.com

bernhasc
Offline
Joined: 2008-11-11
Points: 0

If I'm not mistaken, the agent to execute is/should be specified in the interview class.
If you take a look at the SimpleInterviewParameters.java class, approx line #190. You'll see it sets com.sun.javatest.agent.ActiveAgentCommand or getOtherVMExecuteCommand(). Using that as an example, you should be able to write a simple question to prompt if you want the ActiveAgent, or SerialAgent runner.