Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
CSS Stylesheet
.wiki-content .confluenceTh,
.wiki-content .confluenceTd {
    border: 2px solid #e76f00;
}
This Project was inactive and subsequently dissolved by virtue of losing its sponsoring Group.

Required pre-configuration

...

  • start JT Harness GUI on your host machine
  • Configure -> Edit configuration
    Answer all the required questions, select Agent in the modes question and press Done
    IMPORTANT: while configuring GPIO Ports, in pins section specify pin id's defined above in GPIO Pins section, so i.e 0,1,2,3, not the real pins numbers
  • ssh on the device
  • copy build classes there keeping the layout to enable agent's map functionality
  • create a map file, to map layout on the host and on the device
    NOTE: take a look an the map_example.txt in the repository root as an example
  • run agent
    java -cp ./lib/javatest.jar com.sun.javatest.agent.AgentMain -activeHost <your host ip> -map ../map.txt -trace
  • this will provide an output like

     


    set map:
    map-from: C:\JDK\bin\java.exe
    map-to:   /jdk/bin/java
    map-from: D:\DIOTests
    map-to:   /home/user/DIOTests
    map-from: \
    map-to:   /
    map-from: ;
    map-to:   :
    end of map
    AGENT STARTED, maxThreads=1
    THREAD Agent0 STARTED com.sun.javatest.agent.Agent$1
    host not responding: Connection refused
    THREAD Agent0 com.sun.javatest.agent.ConnectionFactory$Fault: java.net.ConnectException: Connection refused
  • to connect your host machine with your device, in JT Harness GUI, press Tools -> Agent monitor and click on Listening, this will connect your device with your host. On the device side you will see similar output
     


    THREAD Agent0 STARTED com.sun.javatest.agent.Agent$1
    REQUEST FROM <hostname>,port=<port1>,localport=<port2>
  • now select and run tests, right click and press Execute These Tests