Angular: End to End Testing With Protractor

Sarindu Udagepala
The Startup
Published in
7 min readJun 6, 2020

--

End to end testing of Angular applications are powered by a framework called Protractor. In essence, Protractor is capable of executing tests against an Angular application running in a real browser, interacting with it as a user would. This piece is aimed at providing an introduction to Protractor and walk you through an example of writing an end to end test for a simple Angular application.

🚀 What is End-To-End Testing?

End to end testing is the process of validating an application’s workflow from from the beginning to the end. This testing methodology is aimed at replicating real user scenarios, so that the system can be validated for overall functionality. Following is a sample workflow of a social media application.

In order to test the above scenario end to end, test scripts will have validate the below steps.

  • Navigate to the social media application with its URL
  • Create a new user account
  • Login to the application with the credentials
  • View the profile
  • Logout from the application

--

--

Sarindu Udagepala
The Startup

I’m a technical lead at WSO2, blogger, son, husband and father. Passionate about technology and learning.