????InstrumentDriver ?? Mobile?????С?????????? instrument????? iOS ??????????????????? java ?????д??????????

?????о???iOS????????????????? instrument UI Automation ???????????????????????????????????????iOS 4.0 ??????????????? UI Automation ?????????UI??????????????4.0?汾????????????????????????API?????д javascript ????????instrument ?????????????????????????

???????????????5.0?????UI Automation ????????????????????????????????????????????????????????л???????????????????????????????????????????Щ?????????????????У???????????????????????????????д??

??????? instrument ??????????????????????????????????????д????? javascript ????? instrument ?????????????????????????????????????????????д???????????????????????

?????????????????????????????????????????????????????????instrument ??????????? trace ????е???? js ??????????????????е??????????????????????????????????????????????????????????д??????????????飬???н????????????????????????????????????????Щ????????????????????????????Щ??????????дshell???????????????????????????????????????????????????????????????????????? instrument ?? js ???????????????????????????????????????????????????????????

???????????? instrument UI Automation ????????????????????к???????????????????????????????????????????????(??????????????)?????????????????н????????????????;???????????????????????????????????????;js??д???????????????????????????????????λ????????????????????????????????????????????????????

?????????????????????????????????????????????????????????????????????ε???????????Ч????????????????????????????

?????????????????????????????????????????????????ù???????????????????????????? js ??д??????????????дjava????????????????????????????????????????????????顢???????????????????????????????????java?????????д??????????????????????????????????????????????java???????????????з??????????????????????java????????

????????iOS??????????????????????????????????????????????????????????????????(eg:????? AppFramework)??????ù???? instrument?????????????????????????????????????????????????з??? instrument ??????????????????????shell??“???”???????????????????????????????? InstrumentDriver ??????

????InstrumentDriver ?????????

?????1 InstrumentDriver ???????

????Server/Client ????:

?????2 Server/Client ???????

????InstrumentDriver ??????????1??????

????1. C/S ?????С?

?????????Server???Client??????????socket???????????Client??(Mobile)?????????????????У??????????н??;Server??(Java????)???????Client??????????????????н????C/S????????????????????Mac??PC???д?????????????(???п??????Mac??)?????????window?????£?????????д???????????

????2. ??Java?????д???????????????????instrument js?????API??

????InstrumentDriver ??Java???????????????????й?????????????????????????????????????Щ????????????????绬????????????instrument js?????????????????????java????????????????

????3. ???????????????????????????????????????

????????????????????????????????????????μ???????????????????в????????????????????(name??value??label??rect??)?????????????????guid???????????????guid??????????????????????????findElemenByText????????????????????????????????????????????????????????????????????????????????????????????????????????д??

????4. Debug?????Debug??????

????????????debug?????debug???????????С?debug??????????json????????飬???????????????????????????????????????????????debug?????????????UI??????UI?????????????????????????????????(debug????2??????)??????????????????debug?????????debug??????????????

????5. Junit??????в???????

????InstrumentDriver ?????????Junit??????????????????????Junit?????????????????????y????????????г?????????????????????svn??maven??hudson???г???????????iTest??????????????

?????Щ????????

?????????UI Automation?????????

???????????????????????????????????????????????2???????????????????????????????????????б仯?????????????????????и????????????????????