????????????????е?testcase ?????????з??????????????testcase ??????覴???????????????????к??????????????????ж???????????????????????????????????????????????appstate ??

????Appstate ???????????testcase ?????????????????????SetBaseState()?????????????????????????????????????????????????????DefaultBaseState ????????????????????CalWithFunction ?????????????????????????????????????????????н???????????????????????????????£?

????[-] testcase CalWithFunction () appstate PrepareCal

????[ ] String sResultValue = Cal1Plus2()

????[ ] Verify(val(sResultValue)?? 3?? "Expect: 3?? actually it is {sResultValue}")

????[-] String Cal1Plus2()

????[ ] ??????.N1.Click ()

????[ ] ??????.Plus.Click ()

????[ ] ??????.N2.Click ()

????[ ] ??????.Equal.Click ()

????[ ] String sResultValue = ??????.CalResult.GetText()

????[ ] return sResultValue

????[-] appstate PrepareCal() basedon MyBaseState //1

????[ ] ??????.Invoke()

????[ ] ??????.C.Click ()

????[-] appstate MyBaseState ()                     //2

????[-] if( ??????.Exists())

????[ ] ??????.Close()    [-] else

????[ ] ??????.Invoke() // to call calculator?? ???????????bug????л????George Yu???

???????????????е??????PrepareCal ???????MyBaseState????MyBaseState ?????????????????????????????????????????£????????????????????

??????????????http://www.zengyuetian.com/