Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
明日から始めるSelenideによるブラウザテスト 2018年版/ Browser_test_...
Search
SHIMANE, Yoshikazu
April 19, 2018
Technology
950
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
明日から始める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
ユニットテストの先へ:テスト技法で要求・仕様を整理するJava開発実践 / Beyond_Unit_Testing_Practical_Java_Development_Techniques_for_Organizing_Requirements_and_Specifications
shimashima35
1
970
ソフトウェア開発温故知新 古典で紐解く、ソフトウェア開発の課題 / Software_Development:Learning_from_the_Past
shimashima35
0
98
入り口から考えるソフトウェアテストエンジニアのキャリア / Thinking_About_a_Software_Test Engineer's_Career_from_the_Starting_Point
shimashima35
0
2k
テスト技法を使ったテストケースの表現方法/How to express test cases using test techniques
shimashima35
0
1.6k
VSTePのテスト観点出しで失敗した事例についての紹介/Failure case of test viewpoint derivation
shimashima35
0
930
組織横断部門におけるバグ数可視化の全社導入の事例/Example_of_company-wide_bug_number_visualization in_cross-organizational_departments
shimashima35
1
420
JaSST Tokyo実行委員のお仕事/Job of JaSST executive committee
shimashima35
0
1k
What is “Quality” ?
shimashima35
0
1.1k
品質"実質"無料キャンペーン始めます / Start_quality_real_free_campaign
shimashima35
2
5.9k
Other Decks in Technology
See All in Technology
AI駆動で「他アプリの音を加工できる」アプリを作った
satomasahiro2005
0
190
Persisting Massive Data with Rails ~Designing for 60 billion rows, and fighting the bottlenecks~ Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
0
770
AI駆動開発におけるハーネスエンジニアリングの勘所
tsukuboshi
1
400
Temporal 最高!でも改めて「日付」について調べたら人類の負債すぎる件
riyaamemiya
0
220
AIにシークレットを見せない、WSL2で安全な開発環境
yazm
0
330
Codex を使った障害対応机上演習の実際
orgachem
PRO
0
250
20261017福岡devIO 「AIは"良いダッシュボード"を作れるか?
jtakeda
0
220
AI コーディングと人間の認知スループット / CTO Night & Day 2026 Morning Session / AI Coding and Human Cognitive Throughput
prog893
5
1.5k
AI導入は済んだ。次は統制を作り替える番だ_AI×開発組織 Summit 2026
techtekt
PRO
0
480
フィンテック養成勉強会#68
finengine
0
190
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
2
370
AI時代のGraphQL
joere
2
320
Featured
See All Featured
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
580
Raft: Consensus for Rubyists
vanstee
142
7.8k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
480
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
430
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
59k
It's Worth the Effort
3n
188
29k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
590
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自動テスト固有の問題は軽減されないので、本格導入時はきちんと検討 を。