Top Banner
AngularJs and Protractor
21
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: AngularJS and Protractor

AngularJs and Protractor

Page 2: AngularJS and Protractor

Hello!I am Filipe Falcão

AngularJs, JavaScript, Cordova, PHP, PythonYou can find me at:+FilipeFalcaoBatista@filipefalcaos

Page 3: AngularJS and Protractor
Page 4: AngularJS and Protractor

Protractor framework

▧ End-to-end test framework ▧ For AngularJs apps▧ Tests like a user (WebDriverJS)▧ Based in Jasmine framework

GitHub Repository

Page 5: AngularJS and Protractor

UNITY T ESTS“Unit tests, as the name implies, is about testing individual units of code.”

Page 6: AngularJS and Protractor

Nice! How to get started?

Page 7: AngularJS and Protractor

Prerequisites

I. Install Node.jsII. Install Java Development Kit

(JDK)

Page 8: AngularJS and Protractor

Setup

I. npm install -g protractorII. protractor --version

III. webdriver-manager updateIV. webdriver-manager start

Page 9: AngularJS and Protractor

Shut the f*** up and show me some code!

Page 11: AngularJS and Protractor

I.Write your first test

Page 12: AngularJS and Protractor

Create spec.js file

Page 13: AngularJS and Protractor

II.Write the configs

Page 14: AngularJS and Protractor

Create the conf.js file

Page 15: AngularJS and Protractor

III.Run the test

Page 16: AngularJS and Protractor

Open a new terminal window and run:

protractor conf.js

Page 17: AngularJS and Protractor

Nice! But, this is too simple … Show me

something amazing pls

Page 18: AngularJS and Protractor

Add this after the url variable

Page 19: AngularJS and Protractor

What all of this stuff does?

Makes possible get and set elements values based in id, ng-model, ng-bind,

ng-repeat

Page 20: AngularJS and Protractor

Continuing

Page 21: AngularJS and Protractor

Thanks!

Any questions?

You can find me at:+FilipeFalcaoBatista

[email protected]