Updated on 2013/04/08: Added command-line for Xcode >= 4.5, how to take screenshots and launch local scripts. Quick introduction Automated tests are very useful to test your app “while you sleep”. It enables you to quickly track regressions and performance issues, and also develop new features without worrying to break your app. Since iOS 4.0, Apple has released a framework called UIAutomation, wh
tl;dr At Pivotal we wrote Cedar because we use and love Rspec on our Ruby projects. Cedar isn't meant to replace or compete with OCUnit; it's meant to bring the possibility of BDD-style testing to Objective C, just as Rspec pioneered BDD-style testing in Ruby, but hasn't eliminated Test::Unit. Choosing one or the other is largely a matter of style preferences. In some cases we designed Cedar to ov
iOS SDK 4 から追加された UIAutomation について調べてみました。 UIAutomation を使えば、JavaScript で UI の自動テストが可能になります。Instruments 上でターゲットのアプリと JavaScript のファイルをつなぐと実行できます。 詳しい導入方法はドキュメントを見てもらうとして、何ができるかをまとめてみました。 何ができるのか ログを出す 通常のログ出力 成功と失敗用のログ出力があって、それでテスト結果を判定する スクリーンショットをとる 画面全体または一部のスクリーンショットを撮影できる エラーの検知 クラッシュなどがおきると JavaScript の例外がくる タップなどのユーザーのアクション ボタンなどの UI エレメントやデバイスに対して実行できる ドラッグ、フリック、ピンチイン、ピンチアウトなども可能 UI の状態を取
Mac / iOS 開発担当の松本です。 以前同じチームのミヤモトさんが紹介記事を書いていた UIAutomation ですが、使いにくくて使っていませんでした。というのも以前のバージョンはコマンドラインからテストを実行できず、毎回 Instruments を手で起動して、、という残念な状態だったからです。 ところが iOS SDK 5からはコマンドラインからテストを実行できるようになったと言うので再度トライしてみました。 コマンドラインからテストの実行 手始めに下記のハローワールドをコマンドラインから実行してみます。 // hello_test.js UIALogger.logMessage("Hello, UI Automation!"); テストの実行は instruments コマンドで行います。 $ instruments \ -t /Developer/Platforms/iP
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く