
Join this course to learn test automation with Protractor through two hands-on projects, starting with installation and first tests, and mastering page objects, reporting, and best practices.
Explore protractor, an end-to-end testing framework for Angular applications, built by Google and open source, wrapping Selenium WebDriverJS and Selenium Server to support Angular-specific locators, automatic waits, and page objects.
Set up your environment for Protractor tests by installing Node.js, verifying the installation with node --version, and ensuring PATH is updated so Node.js works correctly.
Install Protractor globally using npm after installing node, following the command npm install -g protractor. Then verify the installation by running protractor --version to confirm success.
Install and verify the Java Development Kit to prepare the environment for Protractor test automation, then update webdriver-manager, install geckodriver and chromedriver, and start the Selenium server.
Install git bash for Windows, choose default options, and set your text editor, then verify the setup by opening git bash from the desktop and using the command line.
Launch your first Protractor project by creating a project folder, initializing npm with npm init, and generating a package.json to set up your test automation workflow.
Open your project with the prepared package.json, create conf.js and spec.js to configure protractor, then copy a default conf.js into place and prepare your first test.
Learn how to create the spec.js file for Protractor, organize tests with describe and it blocks, and set up a simple Protractor project with conf.js and package.json.
Plan automated tests with protractor using spec.js and conf.js, test the calculator by summing two numbers and verifying the result with clear test descriptions.
Open the calculator page with a protractor test by using browser.get() with a full URL, then start webdriver-manager and Selenium server, run conf.js, and observe with browser.sleep(5000).
Understand the conf.js file and its multi capabilities to run tests in parallel on Chrome and Firefox. See how browserName, specs, and seleniumAddress enable parallel execution across two browsers.
Master locator strategies in Protractor by grabbing elements with id, CSS class, and Angular-specific attributes like ng-model, then click the go button to sum two numbers on a calculator page.
Master locating elements with protractor using by.model and by.id, enter numbers with sendKeys, click the go button, and verify the sum on a calculator page.
Learn how to validate a calculation in Protractor by locating the element with binding('latest'), extracting text with getText, and asserting the expected result using expect toEqual.
Learn to expand Protractor tests by adding a multiplication scenario, using before... hooks, and selecting an operator with XPath, including absolute and relative XPath considerations to ensure robust locators.
Learn how to use beforeEach and afterEach in Protractor to run code before every test, and explore beforeAll and afterAll, with browser.get and simple console logs.
Learn to set the browser size in Protractor using setSize with width and height, for consistent visuals like 1920x1080 or 300x300, and note that maximize may fail on Selenium Grid.
Learn to work with multiple elements in a Protractor test by using element.all and by.repeater to grab table rows, and verify the results count with beforeAll.
Learn page objects and the page object model in a new protractor project, initialize npm and create conf.js and spec.js to test an AngularJS site with assertions.
Create a second Protractor test case, navigate to the API reference page, use link text locators, and apply explicit waits to verify search results on Angular pages.
Build a Protractor page object model with home and docs pages, adding getters and methods to maintain and reuse test steps.
Learn how to use the Allure reporter with Protractor to generate clear test reports, track success rates, failures, categories, history, and timeline, and integrate with Jenkins.
Install scoop and Allure locally via PowerShell, verify the installation, and set JAVA_HOME. Install the Jasmine allure reporter with npm and configure onPrepare in conf.js to generate HTML reports.
Configure allure reporter for Protractor, run tests to capture screenshots, and generate an HTML report by serving allureReports with allure serve.
Prioritize Protractor locator strategies when possible, favoring angular-specific locators such as ng-model and binding, using id or name when needed, and avoiding fragile text-based locators.
Explore page objects best practices for Protractor tests, including exporting a single module at end of each page, requiring modules at the top, and using meaningful expect statements for clarity.
Learn how to skip tests in Protractor by prefixing test cases with an X, and disable entire describe blocks to control test runs.
Welcome to "Getting started with Test Automation using Protractor" course page. The course is designed to help you learn the basics of working with Protractor to automate software testing. We have prepared over 3 hours of video, downloadable resources, several articles and potential recruitment questions that you may hear during the job interview. English subtitles added!
*Whether you want to:*
- build the skills you need to get your first test automation job
- move from Manual Tester to Test Engineer position
- learn another tool for test automation
- or test your Angular apps
...this course is what you need to learn to achieve it.
At the end of this course, you will have a solid foundation to get a highly paid IT specialist job. If you are already familiar with automatic software testing, you will find the next tool that will help you to do this.
*What makes this course special?*
We assumed that students who enrolled in this course have no experience in test automation. We translate everything from scratch and guide the student through the installation of the required tools.
Topic includes:
- Introduction to Protractor
- Installation
- First Protractor Project
- Enhancing tests
- Page Object Model
- Reporting
- Tips & Tricks
*How am I teaching you in this course?*
I teach by example. You won't find here lectures you won't remember much of, nor exercises you won't understand. Together we create a project, and I choose the examples so as to maximise the condensation of knowledge and transfer it in an easy way
The topics are divided into short videos to make it easier for you to remember the material and go through the course step by step
At the end of each chapter, the code we wrote during the chapter was added and it can be downloaded
if you have any questions about the course, don't hesitate to write to me. I would be happy to answer!