目次

play!のseleniumについてのメモ

やり方

  1. プロジェクトの直下にtestというフォルダを作る。
  2. Application.test.htmlをフォルダに格納する
  3. play test プロジェクト名 でテストモードで立ち上げる
  4. 次のアドレスを開くhttp://localhost:9000/@tests

play!framework1.2.5での説明

http://playdocja.appspot.com/documentation/1.2.5/guide10

標準的な Selenium 構文

標準的な Selenium 構文はSeleneseと呼ばれています。

日本語の説明

日本語に翻訳してあるSelenese説明ページ

http://oss.infoscience.co.jp/seleniumhq/docs/04_selenese_commands.html

上記の説明では

verifyTextPresent

となっているところが、

play!frameworkでは

assertTextPresent

となっているかんじですかね。

Seleneseの英語 の説明ページ

http://seleniumhq.org/docs/02_selenium_ide.html#selenium-commands-selenese

Seleniumの解説

http://seleniumhq.org/

Selenium IDE Plugins

http://seleniumhq.org/projects/ide/

Selenium-IDE ― Selenium Documentation

http://seleniumhq.org/docs/02_selenium_ide.html#selenium-commands-selenese

サンプル

yabe/test/Application.test.html

いま勉強中の疑問

   //指定した箇所に指定した文字列を記述する必要があるのに、idの指定がないのは大丈夫なのか?
   
   //submitボタンもidがないとつらいのではないか?
   
   //メソッドのリファレンスはどこか
   
   //type('password', 'secret')
   //clickAndWait('signin')
   //assertText('success', 'Welcom admin!')
トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS