Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
明日から始めるSelenideによるブラウザテスト 2018年版/ Browser_test_...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
SHIMANE, Yoshikazu
April 19, 2018
Technology
910
1
Share
明日から始めるSelenideによるブラウザテスト 2018年版/ Browser_test_by_selenide_to_start_from_tomorrow_in_2018
SHIMANE, Yoshikazu
April 19, 2018
More Decks by SHIMANE, Yoshikazu
See All by SHIMANE, Yoshikazu
ソフトウェア開発温故知新 古典で紐解く、ソフトウェア開発の課題 / Software_Development:Learning_from_the_Past
shimashima35
0
75
入り口から考えるソフトウェアテストエンジニアのキャリア / Thinking_About_a_Software_Test Engineer's_Career_from_the_Starting_Point
shimashima35
0
1.9k
テスト技法を使ったテストケースの表現方法/How to express test cases using test techniques
shimashima35
0
1.5k
VSTePのテスト観点出しで失敗した事例についての紹介/Failure case of test viewpoint derivation
shimashima35
0
830
組織横断部門におけるバグ数可視化の全社導入の事例/Example_of_company-wide_bug_number_visualization in_cross-organizational_departments
shimashima35
1
400
JaSST Tokyo実行委員のお仕事/Job of JaSST executive committee
shimashima35
0
940
What is “Quality” ?
shimashima35
0
1.1k
品質"実質"無料キャンペーン始めます / Start_quality_real_free_campaign
shimashima35
2
5.8k
SelenideよるDSL風E2Eテスト基盤開発の実例 in Osaka /Example_of_E2E_Automation_Test_Architecture_By_Selenide_in_Osaka
shimashima35
0
1.3k
Other Decks in Technology
See All in Technology
How to learn AWS Well-Architected with AWS BuilderCards: Security Edition
coosuke
PRO
0
130
雑談は、センサーだった
bitkey
PRO
2
250
AI対話分析の夢と、汚いデータの現実 Looker / Dataplex / Dataform で実現する品質ファーストな基盤設計
waiwai2111
0
510
"うちにはまだ早い"は本当? ─ 小さく始めるPlatform Engineering入門
harukasakihara
6
550
AI駆動開発で生産性を追いかけたら、行き着いたのは品質とシフトレフトだった
littlehands
0
500
20260515 ⾃分のアカウントとプライバシーを守る認証と認可の話〜利⽤者向け〜
oidfj
0
310
LookerとADKで作る社内AIエージェント
chanyou0311
0
180
20260516_SecJAWS_Days
takuyay0ne
2
390
iOS・Androidの文字サイズ設定をWebViewに!モバイルUIのアクセシビリティTips
shincarpediem
2
100
フロントエンドの相手が変わった - AIが加わったWebの新しいインターフェース設計
azukiazusa1
33
11k
AIの揺らぎに“コシ”を与える階層化品質設計
ickx
0
280
AI飲み会幹事エージェントを作っただけなのに
ykimi
0
200
Featured
See All Featured
Building AI with AI
inesmontani
PRO
1
980
Why Our Code Smells
bkeepers
PRO
340
58k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
330
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
340
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.7k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
260
Chasing Engaging Ingredients in Design
codingconduct
0
190
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
450
The SEO Collaboration Effect
kristinabergwall1
1
440
Music & Morning Musume
bryan
47
7.2k
Transcript
明日から始めるSelenideによる ブラウザテスト 2018年版 2018年4月11日 D3:グルメなテスト 自動化&テスト設計モデリング @shimashima35 http://srad.jp/~shimashima/
自己紹介 • @shimashima35 (http://srad.jp/~shimashima) • 島根 義和 • ピクシブ株式会社 所属
• エンジニア兼テストエンジニア (SET) • JaSST Tokyo (http://www.jasst.jp/) 実行委員
今日話すこと • Selenideを使ったブラウザテスト入門 • 本当のさわりだけ • まずはプログラムでブラウザを簡単に操作できることを知ってほしい。
今日はなさないこと • Selenideの詳しい使い方 • ブラウザテストの面倒くさいこと ◦ 手元で動くけれどCIサーバで動かない ◦ タイミングの問題 •
JenkinsなどのCI連携 • Selenium Gridなどによる並列実行
質問 1. Selenium WebDriverを使っている人 2. Selenideを知っている人 3. Selenideを使っている人
Selenideとは その1 • Selenium WebDriverのラッパー • WebDriverを使いやすくしたもの。 • JavaだけどDSL風にテストを記述できる。 •
テスト記述に注力できる。
Selenideとは その2 サンプル (公式サイト http://selenide.org/quick-start.html )から抜粋
Selenideとは その3 最近の更新でうれしいこと • ブラウザ毎のWebDriver実装の自動ダウンロード ◦ WebDriverManagerを内蔵 ◦ git clone
で始められる
デモ
ポイント • ブラウザの開発者ツールで目的要素取得のあたりをつける。 • IDEでSelenideを起動したのち、デバッグで止めて評価式で検証する。 • Java9からJShellで対話的に操作ができるので、REPLで評価・検証。 • 使えるメソッドなどで困ったらIDEのサジェスチョンを利用する。 •
地道な作業です。
Selenideの情報源 • 公式 ◦ http://selenide.org/ ◦ https://github.com/codeborne/selenide • Qiita ◦
https://qiita.com/tags/selenide • Codezine ◦ 「Javaで簡単にUIテストを書けるSelenideを使おう~Selenideの概要とテス トの保守性を上げるPage Objectパターンの紹介」 ◦ 近いうちに情報を更新して書籍化されます。
まとめ • Selenideを使うことで、簡単にブラウザ操作の自動化が行えます。 • 導入コストは低いので、まず試してみてください。 • テスト以外でも便利に使えます。 • E2E自動テスト固有の問題は軽減されないので、本格導入時はきちんと検討 を。