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_by_selenide_to_start_from_tomorrow_in_2018
Search
SHIMANE, Yoshikazu
April 19, 2018
Technology
1
760
明日から始めるSelenideによるブラウザテスト 2018年版/ Browser_test_by_selenide_to_start_from_tomorrow_in_2018
SHIMANE, Yoshikazu
April 19, 2018
Tweet
Share
More Decks by SHIMANE, Yoshikazu
See All by SHIMANE, Yoshikazu
テスト技法を使ったテストケースの表現方法/How to express test cases using test techniques
shimashima35
0
800
VSTePのテスト観点出しで失敗した事例についての紹介/Failure case of test viewpoint derivation
shimashima35
0
590
組織横断部門におけるバグ数可視化の全社導入の事例/Example_of_company-wide_bug_number_visualization in_cross-organizational_departments
shimashima35
1
330
JaSST Tokyo実行委員のお仕事/Job of JaSST executive committee
shimashima35
0
620
What is “Quality” ?
shimashima35
0
900
品質"実質"無料キャンペーン始めます / Start_quality_real_free_campaign
shimashima35
2
5k
SelenideよるDSL風E2Eテスト基盤開発の実例 in Osaka /Example_of_E2E_Automation_Test_Architecture_By_Selenide_in_Osaka
shimashima35
0
970
SelenideよるDSL風E2Eテスト基盤開発の実例/Example_of_E2E_Automation_Test_Architecture_By_Selenide
shimashima35
0
930
明日から始めるSelenideによるブラウザテスト / Browser_test_by_selenide_to_start_from_tomorrow.
shimashima35
0
2.3k
Other Decks in Technology
See All in Technology
生産性向上チームの紹介
cybozuinsideout
PRO
1
870
ServiceNow Knowledge 24の歩き方 EYストラテジー・アンド・コンサルティング
manarobot
0
200
生成AIの変革の時代に、直近1年で直面した課題とその解決策
ktc_wada
0
300
プラットフォームってつくることより計測することが重要なんじゃないかという話 / Platform Engineering Meetup #8
taishin
1
370
Azure Container Apps + Bicep 〜 こんな感じで運用しています
kaz29
2
480
「スニダン」開発組織の構造に込めた意図 ~組織作りはパッションや政治ではない!~
rinchsan
3
570
自己改善からチームを動かす! 「セルフエンジニアリングマネージャー」のすゝめ
shoota
6
760
【NW X Security JAWS#3】L3-4:AWS環境のIPv6移行に向けて知っておきたいこと
shotashiratori
0
340
サーバー間 GraphQL と webmock-graphql の話 / server-to-server graphql and webmock-graphql
qsona
2
190
地理空間データ可視化・解析・活用ソリューション Pacific Spatial Solutions (PSS)
pacificspatialsolutions
0
290
Delivering Millions of Messages within seconds @ Duolingo
pelelgrino
0
350
Cloud Native Java with Spring Boot (CNCF Aarhus, April 2024)
thomasvitale
1
170
Featured
See All Featured
Into the Great Unknown - MozCon
thekraken
10
990
Done Done
chrislema
178
15k
VelocityConf: Rendering Performance Case Studies
addyosmani
320
23k
How GitHub (no longer) Works
holman
304
140k
Atom: Resistance is Futile
akmur
259
25k
Imperfection Machines: The Place of Print at Facebook
scottboms
260
12k
Building a Scalable Design System with Sketch
lauravandoore
456
32k
Code Reviewing Like a Champion
maltzj
514
39k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
78
43k
YesSQL, Process and Tooling at Scale
rocio
164
13k
Building Better People: How to give real-time feedback that sticks.
wjessup
355
18k
A Modern Web Designer's Workflow
chriscoyier
689
190k
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自動テスト固有の問題は軽減されないので、本格導入時はきちんと検討 を。