- 追加された行はこの色です。
- 削除された行はこの色です。
*目次 [#q547d8ad]
#contents
*seleniumってなに [#j330a794]
**Selenium RC を使って Web アプリケーションをテストする [#l38c6fdf]
play!frameworkには、はじめからseleniumがバンドルされているので、下記の説明の
Selenium RC をダウンロードしてインストール
とかは不要だと思います。
概要を知りたい場合は、下記のIBMのサイトの解説は参考になるでしょう。
http://www.ibm.com/developerworks/jp/web/library/wa-testweb/
*play!のseleniumについてのメモ [#h28c5f1e]
*やり方 [#rbc6e875]
+プロジェクトの直下にtestというフォルダを作る。
+Application.test.htmlをフォルダに格納する
+play test プロジェクト名 でテストモードで立ち上げる
+次のアドレスを開くhttp://localhost:9000/@tests
*play!framework1.2.5での説明 [#f8674cfd]
http://playdocja.appspot.com/documentation/1.2.5/guide10
*標準的な Selenium 構文 [#s5252ed7]
標準的な Selenium 構文はSeleneseと呼ばれています。
**日本語の説明 [#q973909f]
日本語に翻訳してあるSelenese説明ページ
http://oss.infoscience.co.jp/seleniumhq/docs/04_selenese_commands.html
上記の説明では
verifyTextPresent
となっているところが、
play!frameworkでは
assertTextPresent
となっているかんじですかね。
***Seleneseの英語 の説明ページ[#he9d2828]
http://seleniumhq.org/docs/02_selenium_ide.html#selenium-commands-selenese
*Seleniumの解説 [#rdd9cd10]
http://seleniumhq.org/
*Selenium IDE Plugins [#ycbc1f9c]
http://seleniumhq.org/projects/ide/
*Selenium-IDE ― Selenium Documentation [#v28e6070]
http://seleniumhq.org/docs/02_selenium_ide.html#selenium-commands-selenese
*サンプル [#ye92a742]
yabe/test/Application.test.html
*いま勉強中の疑問 [#ded96d7e]
//指定した箇所に指定した文字列を記述する必要があるのに、idの指定がないのは大丈夫なのか?
//submitボタンもidがないとつらいのではないか?
//メソッドのリファレンスはどこか
//type('password', 'secret')
//clickAndWait('signin')
//assertText('success', 'Welcom admin!')
*Seleniumがどうやってうごいているのか説明 [#p73a5a69]
http://www.devinprogress.info/2011/04/how-play-framework-test-runner-works.html