Difference between revisions of "Testing your application"

From NAMIC Wiki
Jump to: navigation, search
Line 5: Line 5:
 
* Save the XMl files in the previous page into: '''send.xml''' and '''receive.xml''' (or use your preferred names)
 
* Save the XMl files in the previous page into: '''send.xml''' and '''receive.xml''' (or use your preferred names)
 
* On your computer, create two shell terminal windows
 
* On your computer, create two shell terminal windows
* In both terminal, change directory (cd) to your NaviTrack-build directory
+
* In both terminal, change directory ('''cd''') to your NaviTrack-build directory
 
* In one terminal, run this:
 
* In one terminal, run this:
  ./myapp send.xml
+
  '''./myapp send.xml'''
 
  and then press 1
 
  and then press 1
 
* In the other terminal, run this command:
 
* In the other terminal, run this command:
  ./myapp receive.xml
+
  '''./myapp receive.xml'''
 
  and then press 1
 
  and then press 1
* Have the input focus for the terminal running the sending process. Process some keys on the keyboard (see next section) to generate simulated tracking data. You should see data update in the other terminal (the receiving side).
+
* Have the input focus for the terminal running the sending process. Process some keys on the keyboard (see next section) to generate simulated tracking data. You should see the data update in the other terminal (the receiving side).
  
 
== How to use ConsoleSource ==
 
== How to use ConsoleSource ==

Revision as of 16:23, 11 May 2007

Home < Testing your application

Here comes the point you want to test how your application works. At this moment, we're not going to use any real tracking device; instead, we will use ConsoleSource to simulate the generation of tracking data.

Testing procedure

  • Save the XMl files in the previous page into: send.xml and receive.xml (or use your preferred names)
  • On your computer, create two shell terminal windows
  • In both terminal, change directory (cd) to your NaviTrack-build directory
  • In one terminal, run this:
./myapp send.xml
and then press 1
  • In the other terminal, run this command:
./myapp receive.xml
and then press 1
  • Have the input focus for the terminal running the sending process. Process some keys on the keyboard (see next section) to generate simulated tracking data. You should see the data update in the other terminal (the receiving side).

How to use ConsoleSource