Skip to main content

Posts

Showing posts with the label end to end testing

Must-see presentation for end to end testing using protractor for angularJS apps

In Wellington AngularJS meetup , I gave a talk on using protractor for end to end testing of angularJS applications . Here I presented and demonstrated some best practices with a live demo on how to get started with using protractor for e2e testing. My presentation and demonstration application are both available online. Links are as below: My presentation My demo angular app for demonstrating some best practices like page objects, reporting, login etc.

Use Page Objects in Protractor for Spaghetti free Code

Firstly, what are Page Objects? Here is a definition from the Selenium team: Page Object is a Design Pattern which has become popular in test automation for enhancing test maintenance and reducing code duplication. A page object is an object-oriented class that serves as an interface to a page of your AUT. The tests then use the methods of this page object class whenever they need to interact with that page of the UI. The benefit is that if the UI changes for the page, the tests themselves don’t need to change, only the code within the page object needs to change. Subsequently all changes to support that new UI are located in one place. Using Page objects in test cases has been very useful. It will feel hard and time consuming initially but, once you have all page objects up and running. Its going be a smooth ride . Till now writing test cases for an Angular Apps has been smooth ride. Thanks to some good articles online to get me going. I have found some very helpful resour...

Karma-Jasmine | Protractor for AngularJS

Lately, I have been working on setting up the testing framework and writing test cases for angular apps. I am using Karma-Jasmine framework for unit testing. And for end-to-end testing, am using another testing framework called Protractor. I like to follow best practices while using any technology. It will feel hard initially but, you will find the its usefulness as you come across complex scenarios. Till now writing test cases for an Angular Apps has been smooth ride. Thanks to some good articles online to get me going. I have found some very helpful resources, which talks about unit testing and end-to-end testing which, I would like to share with other peps... Enjoy.. Unit testing AngularJS applications AngularJS: Developer Guide: Unit Testing Using Protractor: Writing end-to-end tests has never been so fun. Protractor - end to end testing for AngularJS