« Return to Thread: Junit test Case for intractive Robot

Re: Junit test Case for intractive Robot

by flemmingnlarsen-2 :: Rate this Message:

Reply to Author | View in Thread

Hmm.. this will not be easy as an interactive robot needs a
user/tester to give some input using the keyboard and/or mouse.

If you are familiar with the sources of the Robocode game, you will be
able to find the top module named 'test'. This module contains the
current test units for Robocode. Here you can get a good example of
how to run test units from Eclipse (and/or IntelliJ IDEA for that matter).

With a test, the test unit should ask the user for input for the
keyboard and/or mouse, and react on it be watching what the robot is
doing. This is not easy to explain here, but as mentioned, you can get
a good clue by examining the test sources for Robocode.

Regards,
- Flemming

--- In Robocode@..., "asherbaig" <devilvsevil@...> wrote:
>
> Can somebody tested intractive robot using Junit in eclipse.How to
> test intractive robot in junit eclipse?.Any idea or solution ?
>
> Thanks,
>


 « Return to Thread: Junit test Case for intractive Robot