SilkTest??????2-??д???????
???????????? ???????[ 2013/1/29 13:24:38 ] ????????
???????????“SilkTest???? ??????1- ?????”?У????????????ν??????????SilkTest ??????? ????????????WindowsXP ??????????????????????????У????????SilkTest ??????????????????????????????????????????????????????????????????????Щ?????????????????????????????????????????????????????????н????????????????????Σ????????AUT ??GUI ??????仯????????????????????????????????????д???????????????????У???????????????дSilkTest ??? ???в????
????????????????????????????????????????????????????GUI ????壬??????????????????????????????/??*??-??+??= ???????????????????????????
??????
[+] PushButton N52
[+] multitag “?[5]”
[ ] “$90″
[+] PushButton N92
[+] multitag “?[9]”
[ ] “$91″
[+] PushButton PushButton20
[+] multitag “-”
[ ] “$93″
[+] PushButton PushButton26
[+] multitag “+”
[ ] “$92″
[+] PushButton PushButton27
[+] multitag “=”
[ ] “$112″
????????
[+] PushButton Div
[+] multitag “?[5]”
[ ] “$90″
[+] PushButton Mul
[+] multitag “?[9]”
[ ] “$91″
[+] PushButton Dec
[+] multitag “-”
[ ] “$93″
[+] PushButton Plus
[+] multitag “+”
[ ] “$92″
[+] PushButton Equal
[+] multitag “=”
[ ] “$112″
???????????????????????????“??????.Plus ”??????????????????????“??????.PushButton26” ???
??????????????????????
[+] TextField TextField1
[ ] tag “$403″
???????
[+] TextField CalResult
[ ] tag “$403″
?????????????????WriteScript.t??????д???μ????
[-] testcase Cal123Plus() //1
[ ] ??????.SetActive () //2
[ ] ??????.C.Click () //3
[ ] ??????.N1.Click () //4
[ ] ??????.N2.Click () //5
[ ] ??????.N3.Click () //6
[ ] ??????.Plus.Click () //7
[ ] ??????.N1.Click () //8
[ ] ??????.N2.Click () //9
[ ] ??????.N3.Click () //10
[ ] ??????.Equal.Click () //11
[ ] String sResultValue = ??????.CalResult.GetText() //12
[-] if(val(sResultValue) == 246) //13
[ ] Print(“Passed: Expect 123+123=246?? actually it is {sResultValue}”) //14
[-] else //15
[ ] raise 1?? “Failed: Expect 123+123=246?? actually it is {sResultValue}” //16
?????????????????16 ?д???????????????????????飬?????????????????????????????123+123 ???????246.
??????1 ????????????Cal123Plus ?????????
??????2 ????????????????????????????????????????????????У???????????????????????????????á?
??????3 ?????????C ????????????????μ??????
??????4- ??11 ????????????????123+123= ???????
??????12 ????????????????sResultValue ????CalResult ????е???????????
??????13- ??16 ?????sResultValue ???????????246 ?????????????????????????????????????????????????????raise??????????????£?SilkTest ???????С?
??????????????F9 ??????????±?д??WriteScript.t ?????????????????
??????????WriteScript.t ?????246 ???247 ????????У????????????????????????????????н??????????????
??????
???·???
??????????????????
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