Coding and testing an authentication API [NodeJs + Cypress]
- A Windows or Mac computer
- IntelliJ installed
- Postman installed
Have you ever wondered how a login API actually works? Have you ever wanted to learn how to test the login API?
We created this free tutorial to fill this knowledge gap.
I'll walk you through how to:
How to create the API endpoints
How to install and use Cypress
How to create a Mongo database for your API
How to encrypt passwords
How to create negative and positive tests for API flows in Cypress
How to make the tests robust and remove code duplication
This is a tutorial for test automation professionals who already have an understanding of:
How APIs work
You want to keep improving in your domain
Prerequisites for the course:
A Windows or Mac computer
So what are you waiting for? Let's jump into the tutorial.
Don't just take my word for it, check out what existing students have to say about my other courses:
“Great course! This was one of the most thorough training courses I have ever taken/endured/survived. For me the course had a real "graduate course" feel to it, along with some almost impossible challenges that will result in frustration as well as some very deep learning.”- David Kotschessa
“The C# section is taught by someone else, which surprised me, but I think they did a great job at instructing at a beginner level. The Selenium materials are quite comprehensive and the instructor is easy to follow and understand. I am impressed that the author has taken the time to keep the course materials updated, and therefore merits 5 stars in my book!” - David Draper
“Well I can't explain in words how much am excited after completing this course. The more I was close to completion the more am getting excited. You are a great instructor Nikolay. You don't just taught Selenium but other aspects of being a beautiful coder.Now am pretty confident and can say "Yes" to my clients when they need me to automate the application. Thank you Sir for all the hard work and effort you put in the course. Surely would like to see you in another engaging course!” - Randhawa Verma
“I like fundamental approach used by author. Will see:) To prepare such a course - it's a really hard and big job. Respect and thank you.” - Serhii Kovalenko
“Wonderful content and things explained in a nutshell. Overwhelmed by Author's dedication to put things in such a way that any novice or manual tester can follow and understand and definitely be on-boarded as a Selenium Automation Engineer next day at work. Thanks a million times for creating these courses! One Stop for Automation."- Rupashree Geethaaviji Ananthakrishna
“I am familiar with Nikolay from a course I saw on TestAutomation and have the highest regard for him. Glad to see him on Udemy.” - Annamalai Viswanathan
“One Of the Best courses on Selenium With C#. Cheers Nikolay!!” - Saransh Vaid
Who this course is for:
- A test automation professional who wants to deepen your knowledge with API testing
- Understand how APIs work
- Want to keep improving in your domain
- 00:12Facebook Group- Get Access to our Test Automation Masters secret group!
- 00:35Free course for life, I hope!
- 03:09Start a Server
- 04:23Register endpoint
- 09:03Testing endpoint with Postman and Cypress
- 02:47Updating Cypress to be robust
- 03:58Creating Mongo DB
- 03:13Hiding username and password in env file
- 11:16Registering out first user
- 07:31Add positive and negative test case
- 03:42Making a more robust test
- 04:12Removing duplication
- 08:54Add body validation logic
- 12:56Add creation validation test
- 06:42Extract validation
- 10:17Logic to avoid duplicate user creation
- 05:26Encrypt a password
- 05:45Add login endpoint
- 05:02Testing the login endpoint
- 06:33Add JWT
- 00:48BONUS LECTURE!!!
Nikolay Advolodkin is a prolific Automation Test & Quality Assurance Engineer. Currently, he is the CEO and Software Testing Instructor at Ultimate QA. He has been voted as one of 33 Test Automation Leaders to follow in 2017 by TechBeacon. He is also the #1 Selenium Webdriver instructor in the world as rated by Udemy.
He is a frequent Contributor for the blog, SimpleProgrammer and a speaker at Automation Guild 2017.When he isn’t immersed in the realm of coding and all-things QA, Nikolay Advolodkin enjoys self-improvement and aims to hone his vast skill set daily, all while teaching online students how to master automated software testing.