推荐一个小型自动化测试工具 - Macro Scheduler
Macro Scheduler
是一个小型的自动化测试工具,可到这里下载:
http://www.mjtnet.com/dldfile.htm?file=f1&name=Macro%20Scheduler%20Std
Macro Scheduler
拥有以下特性:
Comprehensive, Reliable Automation for any Software or Business Process.
Keyboard & Mouse Macro Recorder. Easily Create Scripts in Minutes.
Convert Macros to EXE files for distribution on other PCs. (Pro Version)
Unique Screen Image Recognition functions for automation of ANY process. Watch a demo.
Unique Screen Text Capture functions to retrieve/monitor screen text.
Flexible Scheduler & Unique AutoLogon* Technology for Unattended Operation.
Over 250 Powerful Built-in Script Commands, Loops, Conditionals etc, Plus Microsoft VBScript.
用
Macro Scheduler
录制和编辑的自动化测试脚本还算简明易懂的那种,例如下面的脚本:
VBSTART
Sub OpenPage(URL,Wait)
Dim IE
Set IE = CreateObject("InternetExplorer.Application")
IE.visible = 1
IE.navigate URL
do
while IE.Busy and Wait
loop
End Sub
VBEND
//Go to http://blog.csdn.net/testing_is_believing
VBRun>OpenPage,http://blog.csdn.net/testing_is_believing,1
WaitReady>0
SetFocus>
实用性测试
*
//Maximise IE
GetActiveWindow>title,X,Y
WindowAction>1,title
//Move to a posistion
MouseMove>366,318
// Click the Mouse Left Button
LClick