开发者

My first Javascript in UIAutomation/Instruments

I would like to automate testing of my iPhone app and I wrote a sample Javascript for the UIAutomation framework. I can't go past the first line, I get the following error:

Exception raised while running script: SyntaxError: Parse error 1: UIALogger.logStart("Beginning test");

There is something fundamentally wrong with the setup? I am using Xcode 3.2开发者_JS百科.6, iOS 4.3.

Any help is greatly appreciated.

Thanks


1) Make sure you have set the right target (app) to run.

2) Make sure you have set right Simulator version to run your target (see under popup on your target > Edit active target > Options > Simulator Configuration should be set to 4.3


FYI, parse errors are also shown if there is a syntax error in the javascript code. I was tied down to something like this for hours one day! :(

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜