More Related Content
More from Masaaki Yonebayashi
More from Masaaki Yonebayashi (14)
yonex
- 8. What is yonex?
Seleniumを使ってブラウザでテスト
WebアプリのUI動作確認には必須
integration testをもっと手軽に
実案件で開発しながら即テスト
テストメソッド毎にブラウザでテスト
FlexやAppletのテスト
リッチな画面もブラウザでテスト
初心者にもテストを楽しく感じてもらう
ソースシンプル
使い方も極力シンプル
- 9. What is yonex?
yonexの構成
の
SeleniumTestCase
Seleniumを使う際の事前準備を行う親クラス
画面キャプチャやFlexテスト用のオブジェクトを用意
ExternalInterfaceDispatcher
Flex用ユーティリティ
yonex連携を容易にする
Maven2用のpom.xml
Maven2でcargoを使ってテストする際の雛型
T2で実績(以下の雛型は用意済)
• Jetty6x
• Tomcat5x, Tomcat6x
• JBoss4x, JBoss5x
• WebLogic10x
- 11. SeleniumRC/cargo
SeleniumRC
仮想プロキシサーバ・Webブラウザ操作
SeleniumServer(SeleniumCore内包)
ClientDriver
http://seleniumhq.org/projects/remote-control/
Cargo
複数J2EEコンテナ用ラッパーアプリケーション
Antタスク,Maven1/2 pluginsを提供
コンテナの起動・停止・設定用API提供
http://cargo.codehaus.org/Home
- 13. usage/sample
the easiest
>svn co https://t-2.googlecode.com/svn/trunk/samples/t2-it-samples
>cd t2-it-samples
>mvn integration-test –P tomcat6x
- 14. usage/sample
Eclipse
public class HelloTest extends SeleniumTestCase {
public void testHello() throws Exception {
selenium.open(quot;t2-samples/index.jspquot;);
assertEquals(quot;T2 Samplequot;, selenium.getTitle());
captureScreen(quot;HelloJsp.pngquot;);
}
}
- 17. usage/sample
Eclipse-Flex
public class FlexTest extends SeleniumTestCase {
public void testFlex() throws Exception {
selenium.open(quot;t2-samples/flex.jspquot;);
// idを指定しFlash用オブジェクト生成
FlashObject flashApp =
new FlashObject(selenium, quot;flexCalcquot;);
flashApp.call(quot;setArgsquot;, quot;100quot;, quot;123quot;);
captureScreen(“Flex.pngquot;);
}
}
- 23. 要望
名前募集(候補)
t2-it
そのまま
tide
T2 Integration-test Development Environment
yonex(by 太一)
Yet anOther Network testing Enviroment eXtension