3

KIFテストでUIWebViewコンポーネントをターゲットにすることは可能ですか?

を使用して機能を制限することができましstepToTapScreenAtPointたが、ターゲットコンテンツが「範囲内」にある場合は大きな問題があります。

私も使用して成功したのは限られていstepToEnterText:kTestEmail intoViewWithAccessibilityLabel:@"Email"]ますが、入力フィールドを見つけて入力を開始することはできますが、入力が終了するとテストは失敗します。

だから私の質問は、KIFはWebビューベースのステップのターゲティングをサポートしていますか?これをテストする正しい方法は何ですか?

ありがとう!(以下のKIFの結果)

Integration[29024:c07] PASS (0.01s): Tap screen at point "{50, 520}"
2012-11-06 14:49:58.493 Integration[29024:c07] FAIL (4.48s): Type the text "[redacted]" into the view with accessibility label "Email"
2012-11-06 14:49:58.494 Integration[29024:c07] FAILING ERROR: Error Domain=KIFTest Code=0 "Failed to actually enter text "[redacted]" in field; instead, it was "SIGN UP
Sign in

Email

Password

   Stay signed in
Can't access your account?
Coming soon: A new sign-in page! Try it now Learn more
© 2012 Google Privacy Policy Help"" UserInfo=0x14eda060 {NSLocalizedDescription=Failed to actually enter text "[redacted]" in field; instead, it was "SIGN UP
Sign in

Email

Password

   Stay signed in
Can't access your account?
Coming soon: A new sign-in page! Try it now Learn more
© 2012 Google Privacy Policy Help"}
2012-11-06 14:49:58.494 Integration[29024:c07] ---------------------------------------------------
2012-11-06 14:49:58.494 Integration[29024:c07] END OF SCENARIO (duration 11.15s)
2012-11-06 14:49:58.495 Integration[29024:c07] 
4

1 に答える 1