Download mvTest User Guide - Brian Leach Consulting Limited
Transcript
SNAG( x, y, length) .......................................................................................................... 108
STRIP( value, code) .......................................................................................................... 109
WAIT seconds.................................................................................................................. 110
WAITFOR text .................................................................................................................. 111
WAITUNTIL condition...................................................................................................... 112
WANT x, y, text,timeout {THEN|ELSE} ............................................................................ 113
Assertions and Test Conditions .......................................................................................... 114
ASSERT message, condition ............................................................................................ 115
ASSERTBETWEEN message, low, high, actual ................................................................. 115
ASSERTIS message, test1, test2 ...................................................................................... 115
ASSERTNOT message, test1, test2 .................................................................................. 115
ASSERTCONT message, value, substring ......................................................................... 116
ASSERTMATCH message, pattern, value......................................................................... 116
ASSERTEMPTY message, value........................................................................................ 116
ASSERTEXISTS message, fileName, itemName ............................................................... 116
ASSERTFULL message, value ........................................................................................... 117
ASSERTHAS message, test, value .................................................................................... 117
ASSERTHASNOT message, test, value ............................................................................. 117
ASSERTLOCKED message, fileName, itemName ............................................................. 117
ASSERTWITHIN message, expected, delta, actual .......................................................... 118
CLIENT OBJECT ................................................................................................................... 119
Client Properties ............................................................................................................. 119
File System Methods ....................................................................................................... 120
Process Handling ............................................................................................................. 120
Showing Dialogs .............................................................................................................. 121
RUNNER OBJECT ................................................................................................................. 122
Data Source Objects ........................................................................................................... 122
LOCK Object........................................................................................................................ 122
Using Mocks and Stubs .......................................................................................................... 125
mvTest Mocks .................................................................................................................... 126
Checking the Mock ............................................................................................................. 126
Tearing Down the Mock .................................................................................................. 127
MOCK Object Methods ................................................................................................... 127
Setting Remote Locks ......................................................................................................... 128
Configuring the LOCK Phantom ...................................................................................... 128
LOCK Object Methods ..................................................................................................... 128
Debugging your Scripts ...................................................................................................... 129
mvTest User Guide
Brian Leach Consulting Limited
Page 5
Version 1.3