*目次 [#q547d8ad] #contents *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!')