Download - AngularJS and Protractor

Transcript

AngularJs and Protractor

Hello!I am Filipe Falcão

AngularJs, JavaScript, Cordova, PHP, PythonYou 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.jsII. Install Java Development Kit

(JDK)

Setup

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

III. webdriver-manager updateIV. webdriver-manager start

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

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

[email protected]