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