Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

TGT#9 - Protractor: Ng-przyjazne Selenium - Mateusz Jamiołkowski

288 views

Published on

Protractor: Ng-przyjazne Selenium

Published in: Software
  • Be the first to comment

  • Be the first to like this

TGT#9 - Protractor: Ng-przyjazne Selenium - Mateusz Jamiołkowski

  1. 1. PROTRACTOR Ng-przyjazne Selenium
  2. 2. PROSTY PRZYKŁAD
  3. 3. ARCHITEKTURA PROTRACTORA ServerTest Client Browser NodeJS Protractor Selenium Server Web Driver JS WebDriver AngularJS App HTTP Json Web Driver Wire Protocol
  4. 4. • ogarnia $digest • Asynchroniczność – WebDriverJs API – promise’y – Jasmine expect – promise’y • Control Flows PROTRACTOR I ANGULAR it('should find an element by text input model', function() { browser.get('app/index.html#/form'); var username = element(by.model('username')); username.clear(); username.sendKeys('Jane Doe'); var name = element(by.binding('username')); expect(name.getText()).toEqual('Jane Doe'); });
  5. 5. LOKATORY • addLocator • binding • exactBinding • model • buttonText • partialButtonText • repeater • cssContainingText • options • + lokatory z webdriver.By
  6. 6. MOCKOWANIE SERWERA Browser ServerTest Client Browser ServerTest Client
  7. 7. PYTANIA?
  8. 8. DZIĘKUJĘ ZA UWAGĘ

×