???????????????????????????????????????????????????????????????????????Щ?????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????????????????Щ????????????