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
E2E test with TestCafe @LT Thursday Vol.20
Search
piro_deno
April 06, 2017
Programming
1.1k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
E2E test with TestCafe @LT Thursday Vol.20
社内勉強会で使ったTestCafeの紹介資料
piro_deno
April 06, 2017
Other Decks in Programming
See All in Programming
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
180
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
390
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
610
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
140
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
複雑なUIコンポーネントとの ⻑い付き合い⽅:波及するバグからテスト戦略を経て、安全な再設計へ
mixplace
0
430
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
5.2k
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
210
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
260
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
230
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
5
5.1k
最近”作らせてる” ローカルAIアプリの話
akit37
0
470
Featured
See All Featured
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
870
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
First, design no harm
axbom
PRO
2
1.3k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
710
Art, The Web, and Tiny UX
lynnandtonic
304
22k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
Typedesign – Prime Four
hannesfritz
42
3.2k
4 Signs Your Business is Dying
shpigford
187
23k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
640
Transcript
E2E test with LT Thursday Vol.20
.me { name: ԕ౻ a.k.a. piro; age : 34;
.CA::before { career: Web࡞ձࣾ, Πϕϯτ੍࡞ձࣾ; } .CA::after { career: Android Market, SP Ameba Platform, Ameba OWND, AWA, MDH; } }
Index • About TestCafe • API • Debug • Page
Object Model • ॴײ
About TestCafe
None
Demo
Features • ES2016Ͱॻ͚ΔͷͰbabelෆཁ • Browser pluginෆཁ • ͍ΖΜͳૢ࡞ΛࣗಈͰͬͯ͘ΕΔ • TouchσόΠεରԠ
• RemoteͰςετ͕࣮ߦͰ͖Δ
API
None
Demo
Fixtures / Tests • ςετͷྨͱςετ໊ͷొ • લޙͷॲཧͷొ • ͜ͷྨ໊લΛࢦఆͯ͠ςετΛ࣮ߦ͢Δ ͜ͱͰ͖Δ
None
Selectors • ཁૉऔಘؔ࿈ͷAPI • Query SelectorͬΆ͘ॻ͚Δʢͱ͍͏ΑΓjQueryͷ$తͳײ͡ʣ • snapshotͳͷͰऔಘޙʹԆͯ͠มߋ͞Εͨ উखʹมΘͬͯ͘Εͳ͍ •
औಘͰ͖Δ·Ͱͬͯ͘ΕΔ
None
Test Controller • Πϕϯτૢ࡞ʢclick / d&d etcʣ • ը໘ॲཧʢwindow resize
/ ը໘Ωϟϓνϟ etcʣ • Assertion
None
Assertion • expectܗࣜ • Deep Equal (Not Deep Equal) •
Ok (Not Ok) • Contains (Not Contains) • Type of (Not Type of) • Great than (Great than or Equal to) • Less than (Less than or Equal to) • Within (Not Within) • Match (Not Match)
None
Client Function • Clientσʔλͷऔಘؔ࿈ • URLͷऔಘͱ͔ɺlocalStorageͷૢ࡞ͱ͔
None
Debug
Debug • t.debug() ࣮ߦڥͷdebug • --inspect --debug-brk chrome dev toolsΛͬͨdebug
None
Demo
Page Object Pattern
Page Object Pattern • ը໘ΛҰͭͷObjectͱͯ͠ѻ͏ • Page Class ը໘ͷཁૉΛఆٛ •
Operator Class Page ClassͷAPIΛݺΜͰૢ࡞͢ΔΑ͏ͳAPIΛఆٛ • Features OperatorΛݺΜͰςετΛఆٛ
খωλ
খωλ • --qr-code εϚϗͷϒϥβ֬ೝ༻ʹQRίʔυੜ • --fixture<name> / --fixture-grep <pattern>
--test <name> / --test-grep <pattern> fixturetestͷ໊લࢦఆgrepͰࢦఆͨ͠testͷ࣮ߦ • --screenshots-on-fails ςετΤϥʔ࣌ʹεΫϦʔϯγϣοτΛࡱΔ
ॴײ
ॴײ • ಋೖ؆୯ • ॻָ͍͍ͯͯ͠ • requestrenderͷͪΛ΄΅ߟྀͤͣʹ͔͚Δͷָ • ϦϞʔτͷςετศར •
ςετҎ֎ʹπʔϧͱͯ͑ͦ͠͏
Demo
͓͠·͍
Links • TestCafe http://devexpress.github.io/testcafe/ • Example https://github.com/DevExpress/testcafe/ tree/master/examples