AngularJs and
Protractor
Hello!
I am Filipe Falcão
AngularJs, JavaScript, Cordova,
PHP, Python
You can find me at:
+FilipeFalcaoBatista
@filipefalcaos
Protractor framework
▧ End-to-end test framework
▧ For AngularJs apps
▧ Tests like a user (WebDriverJS)
▧ Based in Jasmine framework
GitHub Repository
UNITY T ESTS
“Unit tests, as the name implies, is about
testing individual units of code.”
Nice! How to get
started?
Prerequisites
I. Install Node.js
II. Install Java Development Kit
(JDK)
Setup
I. npm install -g protractor
II. protractor --version
III. webdriver-manager update
IV. webdriver-manager start
Shut the f*** up and
show me some code!
Test Application
▧ Simple Todo app
▧ No persistance
Application Demo
GitHub Repository
I.
Write your first test
Create spec.js file
II.
Write the configs
Create the conf.js file
III.
Run the test
Open a new terminal
window and run:
protractor conf.js
Nice! But, this is too
simple … Show me
something amazing pls
Add this after the url
variable
What all of this stuff
does?
Makes possible get and set elements
values based in id, ng-model, ng-bind,
ng-repeat
Continuing
Thanks!
Any questions?
You can find me at:
+FilipeFalcaoBatista
filipefalcaosantos@gmail.com

AngularJS and Protractor