Skip to main content

Posts

Showing posts with the label 4 Protractors

Do I Need to Use Protractor?

Do I Need to Use Protractor? A protractor is an official library to use for writing End-to-End (e2e) test suites with an Angular app. It is nothing but a wrapper over the Selenium WebDriverJS APIs. If you have been using Angular CLI, you might know that by default, it comes shipped with two frameworks for testing. They are: 1.        unit tests using Jasmine and Karma 2.        end-to-end tests using Protractor The apparent difference between the two is that the former is used to test the logic of the components and services, while the latter is used to ensure that the high-level functionality of the application works as expected. Protractor configuration file is - protractor.conf.js and it look like this. //Protractor configuration file const  {  SpecReporter  } =  require ( 'jasmine-spec-reporter' ); exports . config  = {    allScriptsTimeout:   11000 , ...