Automate OAuth authentication of Application in UI Testing using Cypress 9

In this video, we will discuss how we can automate the most painful and almost impossible operation of automating OAuth-based authentication of applications with 3rd parties like Google Auth, GitHub, or Microsoft Authentication with our application under test due to the CORS policy problems.
This video is part of the below courses
► [Cypress in Udemy] www.udemy.com/course/e2e-cypr...
► [Cypress Academy] academy.executeautomation.com...
#cypress #oauth #executeautomation #e2etesting
For more articles and videos, please follow
► [ExecuteAutomation] executeautomation.com
► [Twitter] @executeauto
► [Subscribe] @Execute Automation
► [Udemy] www.udemy.com/user/karthik-kk/
New Series 2021
#############
► [Microservice Development] • Developing Microservic...
► [XUnit with Selenium] • XUnit with Selenium
► [Git Basics] • Git Basics - Everyday ...
► [SpringBoot for Testing] • Spring Boot for Automa...
Selenium and C#
******************
► [C# for automation testing] • C# for Automation Testing
► [Selenium with C#] • Introduction to Seleni...
► [BDD with Specflow] • BDD and Specflow
► [BDD with Selenium] • BDD with Selenium and ...
► [Selenium .NET Core] • Playlist
Selenium &Java
******************
► [Cucumber with Selenium] • Section 1 - Cucumber w...
► [Cucumber with Selenium] • Section 2 - Cucumber W...
► [Cucumber 4 Upgrade] • Section 3 - Upgrade to...
► [Selenium Grid] • Selenium Grid
► [Selenium framework development] • Selenium Framework Des...
► [Selenium 4] • Selenium 4
► [Selenium Grid with Docker] • Selenium Grid with Docker
► [Puppeteer] • Puppeteer
► [E2E with Cypress] • Cypress Tidbits
CI/CD with Microsoft Technologies
*************************************
► [Azure DevOps Service] • Azure DevOps Service 2019
► [Automated Build deployment] • Automated Build+Deploy...
► [Build + Deploy + Test with Jenkins] • Build+Deploy+Test with...
Docker & Kubernetes
************************
► [Understanding ABC of Docker] • Understanding ABC of D...
► [Understanding Docker for Windows] • Understanding Docker f...
► [Selenium Grid with Docker] • Selenium Grid with Docker
► [Kubernetes for Testers] • Kubernetes for Testers
Mobile Testing
****************
► [Understanding Appium] • Introduction to Appium...
► [Appium with C#] • Introduction to Appium...
► [Appium with Java] • Setting stage ready fo...
► [Appium with C# (Advanced)] • Introduction to Appium...
► [Appium Framework development] • Introduction to appium...
► [Mobile Automation testing with Xamarin.UITesting] • Part 1 - Introduction ...
► [Android automation with Robotium] • Part1 - Introduction t...
► [Flutter app automation with Flutter Driver] • Part 1 - Introduction,...
► [TestProject] • TestProject (Basic)

Пікірлер: 23

  • @PraveenKumar-zo9it
    @PraveenKumar-zo9it Жыл бұрын

    Hi, currently I'm having issue after logging into the Microsoft. As per your code I'm able to enter credentials in Microsoft and it navigates back to the base URL but the page is not loading and getting this error in the console "AADSTS9002327: Tokens issued for the 'Single-Page Application' client-type may only be redeemed via cross-origin requests." in the console. Please suggest me how to resolve this.

  • @harshit4618
    @harshit46182 жыл бұрын

    Nice

  • @maheshkumar-wu7kg
    @maheshkumar-wu7kg2 жыл бұрын

    Can you do video on Okta authentication too this technique is not working for Okta

  • @maniomar8428
    @maniomar84282 жыл бұрын

    Does it work with azure authentication?

  • @reddyragini101

    @reddyragini101

    Жыл бұрын

    I am also facing the same problem. Were you able to login to Azure using Cypress. How did you resolve this?

  • @techglow4302
    @techglow4302 Жыл бұрын

    Sir cy.origin is not working for Google/facebook etc. how we can acheive this?

  • @ahmedarshed5258

    @ahmedarshed5258

    5 ай бұрын

    did you find the solution?

  • @alexisjaequebral4323

    @alexisjaequebral4323

    3 ай бұрын

    @@ahmedarshed5258 Did you guys find a way for google login?

  • @user-vb2wh6xe6v
    @user-vb2wh6xe6v Жыл бұрын

    Google sometimes asks for OTP input during login (it sends an SMS to your phone number and asks you to enter the code). How do you automate this?

  • @alexandrutotolici2877

    @alexandrutotolici2877

    Жыл бұрын

    You create/use an account without 2fa

  • @user-vb2wh6xe6v

    @user-vb2wh6xe6v

    Жыл бұрын

    @@alexandrutotolici2877 It still randomly asks for OTP even when the account has no 2fa. For such accounts, when you're logging in it asks you to enter the phone number and then the OTP sent to that phone number (which doesn't make much sense because you can enter any phone number)

  • @zahrashafi7884

    @zahrashafi7884

    5 ай бұрын

    ​@@user-vb2wh6xe6vI am facing the same issue with gmail login

  • @luckythecat7663
    @luckythecat7663 Жыл бұрын

    Can you help because after the cy.origin it not come back ...

  • @ratan33
    @ratan332 жыл бұрын

    How to handle multiple IT blocks. 1. App lunch code is inside before 2. 1st IT block is getting executed 3. I have divided 1 scenario into 2 IT blocks. 4. Second IT block is getting failed Is it due to some cookies or something else. Kindly help

  • @rahul.shukla

    @rahul.shukla

    2 жыл бұрын

    Yes cookies related issue. Cypress clears cookies between tests

  • @ratan33

    @ratan33

    2 жыл бұрын

    @@rahul.shukla then how to resolve this ?

  • @rahul.shukla

    @rahul.shukla

    2 жыл бұрын

    You need to use beforeEach and afterEach to preserve session in between it blocks

  • @ratan33

    @ratan33

    2 жыл бұрын

    @@rahul.shukla how to preserve it. Any specific lines I have to mention inside beforeeach. If you can give me any sample snippet

  • @johanapolinarioveliz6754

    @johanapolinarioveliz6754

    2 жыл бұрын

    @@ratan33 You need to use cy.session() to save cookies between tests. Although, I am stuck at this as well.

  • @ilicjelena9
    @ilicjelena92 жыл бұрын

    anyone has an idea how to login to office 365 online using the cy.origin? I came until the password window but it doesn't get loaded. Would appreciate help 😣😣

  • @malwabeltriders

    @malwabeltriders

    Жыл бұрын

    i am also getting same issue, did you find something ?

  • @antonbuketov1072

    @antonbuketov1072

    Жыл бұрын

    @@malwabeltriders Did you find solution?

  • @arunadhanapal2279

    @arunadhanapal2279

    Жыл бұрын

    @malwabeltriders did you find any solution

Келесі