SilkTest??????7-??????
???????????? ???????[ 2013/5/28 10:07:27 ] ????????
????????????????????????????д?????????????????????????????????????????????dll??tag??multitag??????web??ò?????б??淶???????????????棬??????ú??????????????????????????????????е?????????????鷳???????????????????????????????SilkTest???????????????????????????????????????????????????????????????????????????????????????
???????????????????????????????????????????????????????????????????????ó??????????????????????????????SilkTest????????????????????????????????????????????????????????????ó?????do…except????????????
??????????е?testcase????????????????????????????1??????????????????????C????????????????????????С?????????14?д?????????Cal.t??????????£?
[-] winclass Calculator //1
[ ] String sResult //2
[-] Void ClearResult() //3
[ ] ??????.C.Click() //4
[-] void GetResult() //5
[ ] sResult = ??????.CalResult.GetText() //6
[-] Void ClickNum1() //7
[ ] ??????.N1.Click() //8
[ ] window Calculator Cal //10
[-] testcase CalSetAndClear() //11
[ ] ??????.SetActive() //12
[ ] Cal.ClickNum1() //13
[ ] //Cal.GetResult() //14?????????????????
[ ] Print(Cal.sResult) //15
[ ] Cal.ClearResult() //16
[ ] Cal.GetResult() //17
[ ] Print(Cal.sResult) //18
????????????????????£?
[ ] *** Error: Variable (sResult) has not been set
[ ] Occurred in CalSetAndClear at Cal.t(15)
???????????????????????е???Cal.GetResult()?????????Cal.sResult??г????????SilkTest???е???15?л???????????????????????????????????????????????????????????????????????????????????case???У??????????????????????
????????????????2??????????????????raise????????????????????????????????????????????????????????????????б?????????????????SilkTest???????
????δ??????????????????????????????£?????????????100?????????????е???10?????????????????????????????????????????????????????????????????д??????????????????????????????????????????90??????????С????????????????????????
?????????????????????£????????do…except????????????????η?????????????Щ????ο?????????????????????????ж?????????磺
Do OneObject.Click()except LogError ??"can't click OneObject"??DoSomeOtherThings()
??????????????????????????OneObject?????????г???????OneObject.Click()???????????????????????????except??????????????????????Error??log????except???е??????????SilkTest????????????У???????do…except??????DoSomeOtherThings()???
????????????????????Cal.t????????????case???????????????ɡ?
?????????д??????????????
[-] winclass Calculator
[ ] String sResult
[-] Void ClearResult()
[ ] ??????.C.Click()
[-] void GetResult()
[ ] sResult = ??????.CalResult.GetText()
[-] Void ClickNum1()
[ ] ??????.N1.Click()
[ ] window Calculator Cal
[-] testcase CalSetAndClear()
[ ] ??????.SetActive()
[-] do //1
[ ] Cal.ClickNum1() //2
[ ] //Cal.GetResult() //3
[ ] Print(Cal.sResult) //4
[-] except //5
[ ] Print("Catch an exception") //6
[ ] Cal.ClearResult()
[ ] Cal.GetResult()
[ ] Print(Cal.sResult)
?????????SilkTest??е???4????????????????????????except????????????????????????????????????????д???????????????
[ ] Catch an exception
[ ] 0.
?????????????????3?????????????????????????????????????????У?????except?е???????????á??????????????????????????????silktest???????????
??????SilkTest????????й?7?????????
??????????????http://www.zengyuetian.com/
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11