Game Development Reference
In-Depth Information
Keys(“[Backspace][Backspace]�?, 0.64, 0.18)
Keys(“2�?, 0.79)
CompareScreen(“Region 2�?)
ClickButton(“OK�?, 1, 22.25)
CompareScreen(“Window 2�?)
ActivateWindow(“Minesweeper�?, “Minesweeper�?, 51249669, 10.0)
ClickMenu(“&Game�?, 0.13)
ClickMenu(“&Game;&Custom...�?, 1.94)
CompareScreen(“Region 3�?)
Minesweeper Test Playback
Reset the Minesweeper field back to its original state—in Beginner mode—and close
it. Select Run from the VHT playback menu or hit F12 to play your newly recorded
test. Sit back and watch the magic. When you see the final window that you captured,
you have reached the end of the playback. VHT will also pop up and have a log file
available for you to analyze.
Your log of the playback should look similar to this:
************************************************************
* FileName: c:\documents and settings\administrator\desktop\vht test
files\minetest1.inb
* Log Created on: Thu Dec 23 01:11:44 2004
*
* Playback Options:
* Play Speed: 50
* Terminate on Failure:
*
* Ignore During Compare:
************************************************************
ActivateWindow —> “Shell_TrayWnd�?, “�?, NULL, 10.0...............Result: Success
ActivateWindow —> “Progman�?, “Program Manager�?, NULL, 10.0......Result: Success
ActivateWindow —> “SysListView32�?, “FolderView�?, 1, 10.0........Result: Success
ClickListView —> 1, “Minesweeper�?, DBLCLK, 0.0..................Result: Success
CompareScreen —> “Window 1�?.....................................Result: Failure
ActivateWindow —> “Minesweeper�?, “Minesweeper�?, 51249669, 10.0..Result: Failure
ClickMenu —> “&Game�?, 0.09......................................Result: Success
ClickMenu —> “&Game;&Custom...�?, 2.67...........................Result: Success
CompareScreen —> “Region 1�?.....................................Result: Success
ActivateWindow —> “#32770�?, “Custom Field�?, NULL, 10.0..........Result: Success
Search WWH ::




Custom Search