[ ] tag "$1000"
[+] window MessageBoxClass MessageBox
[ ] tag "~ActiveApp/[DialogBox]$MessageBox"
[+] PushButton OK
[ ] tag "OK"
[+] PushButton Cancel
[ ] tag "Cancel"
[+] PushButton Yes
[ ] tag "Yes"
[+] PushButton No
[ ] tag "No"
[+] StaticText Message
[ ] motif tag "#2"
[ ] tag "#1"
现在,你可以新建一个testcase了,选择菜单的"Record -> Testcase...",在弹出的"Record Testcase"对话框中,你可以看到默认的testcase name是Test1,初始状态是DefaultBaseState,然后你点击StartRecording按钮就可以开始录制测试用例了。当你按下该按钮时,一般右下角屏幕会出现一个Record Status的对话框,然后你在屏幕上做的任何操作都可以被记录下来。在本例中,请点击计算器的清零按"C",然后按顺序按"1","2","3","+","1","2","3","="等按钮,你就完成了123+123操作,然后将鼠标悬停在计算器的结果框上,按组合键
[-] testcase Test1 ()
[-] recording
[ ] 计算器.SetActive ()
[ ] 计算器.C.Click ()
[ ] 计算器.N1.Click ()
[ ] 计算器.N2.Click ()
[ ] 计算器.N3.Click ()
文章来源于领测软件测试网 https://www.ltesting.net/