Changeset 40:ec5dde8a6ff6 in xplra for test/basictest.py


Ignore:
Timestamp:
02/14/13 18:21:47 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Implemented the client support for the new commands and updated the basic test programs with tests showing messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/basictest.py

    r36 r40  
    11# Basic test program for the Python client library
     2
     3#------------------------------------------------------------------------------
     4
     5import time
    26
    37#------------------------------------------------------------------------------
     
    1216        xplane.connect()
    1317        print "Connected to X-Plane."
     18        print
     19
     20        print "Showing a message..."
     21        xplane.showMessage("[basictest] Starting tests", 5.0)
    1422        print
    1523
     
    133141        print
    134142
     143        print "Preparing for the message tests, sleeping for 5 seconds..."
     144        time.sleep(5.0)
     145
     146        print "Showing a message for 10 seconds..."
     147        xplane.showMessage("[basictest] this message appears for 10 seconds", 10.0)
     148
     149        print "Sleeping for 3 seconds..."
     150        time.sleep(3.0)
     151
     152        print "Showing another message interrupting the previous one for 3 seconds"
     153        xplane.showMessage("[basictest] but this message interrupts it, and is displayed for 3 seconds", 3.0)
     154
     155        print "Sleeping for 5 seconds..."
     156        time.sleep(5.0)
     157        xplane.showMessage("[basictest] and the tests come to an end!", 5.0)
    135158
    136159    except Exception as e:
Note: See TracChangeset for help on using the changeset viewer.