QUTest Python scripting support (documentation) More...
Go to the source code of this file.
Namespaces | |
| namespace | qutest_dsl |
Functions | |
| qutest_dsl.include (fname) | |
| include python code in a test script | |
| qutest_dsl.test_file () | |
| get the test file name with path | |
| qutest_dsl.test_dir () | |
| get the test directory (relative to the current directory) | |
| qutest_dsl.test (title, opt=0) | |
| start a new test | |
| qutest_dsl.skip (nTests=9999) | |
| skip the tests following this command. | |
| qutest_dsl.scenario (title, opt=0) | |
| start a new BDD-style scenario | |
| qutest_dsl.given (given_msg, and_msg) | |
| start the "given" section of a BDD-style scenario | |
| qutest_dsl.when (given_msg, and_msg) | |
| start the "when" section of a BDD-style scenario | |
| qutest_dsl.then (given_msg, and_msg) | |
| start the "then" section of a BDD-style scenario | |
| qutest_dsl.expect (match) | |
| defines an expectation for the current test | |
| qutest_dsl.ensure (bool_expr) | |
| ensures that the provided Boolean expression is true | |
| qutest_dsl.glb_filter (*args) | |
| Send the QS Global Filter to the Target. | |
| qutest_dsl.loc_filter (*args) | |
| Send the Local Filter to the Target. | |
| qutest_dsl.ao_filter (obj_id) | |
| Updates the Local Filter for a given AO in the Target. | |
| qutest_dsl.current_obj (obj_kind, obj_id) | |
| Set the Current-Object in the Target. | |
| qutest_dsl.query_curr (obj_kind) | |
| query the current object in the Target | |
| qutest_dsl.tick (tick_rate=0) | |
| trigger system clock tick in the Target | |
| qutest_dsl.expect_pause () | |
| defines expectation for a Test Pause | |
| qutest_dsl.expect_run () | |
| defines expectation for calling QF_run()/QFrun() | |
| qutest_dsl.continue_test () | |
| sends the CONTINUE packet to the Target to continue a test | |
| qutest_dsl.command (cmdId, param1=0, param2=0, param3=0) | |
| executes a given command in the Target | |
| qutest_dsl.init (signal=0, params=None) | |
| take the top-most initial transition in the current SM object in the Target | |
| qutest_dsl.dispatch (signal, params=None) | |
| dispatch a given event in the current SM object in the Target | |
| qutest_dsl.post (signal, params=None) | |
| post a given event to the current AO object in the Target | |
| qutest_dsl.publish (signal, params=None) | |
| publish a given event to subscribers in the Target | |
| qutest_dsl.probe (func, data) | |
| sends a Test-Probe to the Target | |
| qutest_dsl.peek (offset, size, num) | |
| peeks data in the Target | |
| qutest_dsl.poke (offset, size, data) | |
| pokes data into the Target. | |
| qutest_dsl.fill (offset, size, num, item=0) | |
| fills data into the Target. | |
| qutest_dsl.note (msg, dest=(SCREEN|TRACE)) | |
| display a note in the QUTest output and in QSPY output. | |
| qutest_dsl.tag (msg, dest=(SCREEN|TRACE)) | |
| display a tag in the QUTest output and in QSPY output. | |
| qutest_dsl.pack (format, v1, v2) | |
| packs data into binary string to be sent to QSPY. | |
| qutest_dsl.last_rec () | |
| returns last record received from the target as string. | |
| qutest_dsl.on_reset () | |
| callback function invoked after each Target reset | |
| qutest_dsl.on_setup () | |
| callback function invoked at the beginning of each test | |
| qutest_dsl.on_teardown () | |
| callback function invoked at the end of each test | |
Variables | |
| int | qutest_dsl.VERSION = 740 |
| current version of the Python QUTest interface | |
QUTest Python scripting support (documentation)
Definition in file qutest_dsl.py.