IOS??????????UIAutomation??
???????????? ???????[ 2013/4/15 14:46:05 ] ????????
???????????????????????????????????????????????????????????????????????Щ?????Label??????????id?????Traits???????????????Frame??????????λ???????С{{36??295}??{43??21}}?????е????λ??{36??295}?????????????????{43??21}??????????????????????????????????????????????????λ?á?
????2????д????????
var testName = "FirstTest";
UIALogger.logStart(testName);
var target = UIATarget.localTarget();
var app = target.frontMostApp();
var window = app.mainWindow();
app.logElementTree();
window.tableViews()[0].cells()[0].tap();
target.delay(3);
var date = window.elements()["date"];
UIALogger.logMessage( date );
if (date){
UIALogger.logPass( testName );
}
else{
UIALogger.logFail( testName );
}
???????????????UIAutomation??????ЩAPI??????????????????????д????????????????????????????????????д???????????????????Щ?????????Щ???????????????????????????????????????
????3??tuneup????
??????????????????????????UIAutomation?????JS??tuneup?????js????????????????д??????????
????Tuneup????????https://github.com/alexvollmer/tuneup_js
?????????????????????????????????????????????????????????????Demo???????????????lib??????У???????????????????????????tuneup?????????????lib???£???demo???????????????????????js????????????????????tuneup???import???y????????????????tuneup??д??????????????
#import "lib/tuneup/tuneup.js"
var target = UIATarget.localTarget();
var app = target.frontMostApp();
/* Second?????????????????????д????????????????д?????? */
test("Second"?? function(target?? app) {
var window = app.mainWindow();
app.logElementTree();
window.tableViews()[0].cells()[0].tap();
var date = window.elements()["date"];
assertNotNull(date??"??????????????棬date??????????"); });
???????????????????в???????
??????????????????????в?????????д???????????????????????????????е???????????е?????????????????????????????????????????????д????????????
instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/
AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate
"/Users/ios/Library /Application Support/iPhone Simulator/6.0/Applications/D02EF837-94F7-457A-989A-A654FC034803 /
DemoSBTableViewTest.app"
-e UIASCRIPT /AutoTest/workspace/IosDemo/test.js
-e UIARESULTSPATH /AutoTest/workspace/IosDemo/lib/
????????????????????????в?????????????
????-t ?????????Automation.tracetemplate??·????????????Xcode4.5????汾·????????????????Xcode4.5?????·???????
????“/User***.app” ????????????????·??????????а?????????????????????????
????-e UIASCRIPT ?????е?js???
????-e UIARESULTSPATH ?????????????·??
?????塢????????UIAutomation????????????
????1??????????????н???????????xml????У? ???????????xml???????????testng???????????????Jenkins???????????????
????2???????λ??????????????????????????????????????Щ???????????η?????
????3???????????Χ???Щ?????????????????????????????????????????????Щ???????????UI????????????????Щ????????????
??????
???·???
??????????????????
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