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
Front-end Testing with CasperJS
Search
vitrum.zhu
February 19, 2013
Programming
190
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Front-end Testing with CasperJS
Front-end Testing with CasperJS
vitrum.zhu
February 19, 2013
Transcript
11 slides
Front-‐end Tes,ng with CasperJS Glamour Sales
China Vitrum Zhu 2013.2
• Old way and new way • About CasperJS
• Unit Test • UI Test
The finger and eye will told you. Old!
• Headless browser • Based on Webkit •
Controllable by command line • Full Javascript API
WebKit inside
CasperJS • browsing naviga,on steps • filling & submiRng
forms • capturing screenshots • tes,ng remote DOM • logging events • downloading resources • wri,ng func,onal test suites, saving results (with Node.js we can save results to any format. Like XML, TXT, JSON)
Quick Overview
Quick Overview Now run the following in the terminal:
casperjs test duckduck.js You should get something cool like the following:
CasperJS @ GLS • Web Crawler (web page spider)
• Simula,on Client access • Help Barnish create cache before customer visit
More techniques • hbp://Nodejs.org • hbp://casperjs.org • hbp://phantomjs.org/
Thanks! @vitrum Fork it! hbps://github.com/vitrum/nm-‐test/tree/ master/casperjs
Other Decks in Programming
See All in Programming
[DroidKnights 2026] Workflow AX 적용기 — 자동 정책 정리부터 E2E까지
dayeon
0
130
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
620
正解の無い問題を 「できるだけ上手く」解く ヒューリスティックで感性を磨こう。〜現実課題をプログラミングで解きあうコミュニティについて〜
allegrogiken
0
120
Claude Codeのおかげでやりたいことがやれるようになったんだよォー!
sms_tech
0
190
vue-tsc x TypeScript7
koukimiura
0
110
Stage 3でも仕様は変わる。アプリケーション開発者のためのTC39プロセスの読み方
bicstone
1
1.2k
AppFunctionsの内部実装を紐解く
hiroaki404
1
130
手の動かし方がわからなかった私が個人開発者になるまで
usagi0920_pochi
0
350
Kiro Crewによる開発体験ーKiro CrewでStrands Decider 2B に関する技術検証をやってみた
satoshi256kbyte
1
230
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
330
なぜ私たちは「現時点では」KMPの導入を見送ったのか
chigichan24
1
650
ruby/uri meets WHATWG
jinroq
0
180
Featured
See All Featured
The browser strikes back
jonoalderson
0
2k
The SEO identity crisis: Don't let AI make you average
varn
0
630
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
620
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
The Language of Interfaces
destraynor
163
27k
Designing for Performance
lara
612
70k
Large-scale JavaScript Application Architecture
addyosmani
516
110k
Discover your Explorer Soul
emna__ayadi
2
1.4k
A Modern Web Designer's Workflow
chriscoyier
699
190k
Navigating Team Friction
lara
192
16k
Documentation Writing (for coders)
carmenintech
77
5.7k