Cypress Complete Beginners Masterclass 2 | Step by Step | Raghav Pal |

Поділитися
Вставка
  • Опубліковано 10 лис 2024

КОМЕНТАРІ • 262

  • @nishiclaire4179
    @nishiclaire4179 8 місяців тому +2

    Your videos are my go-to for practical test automation guidance! Thanks for making learning enjoyable and effective...

    • @RaghavPal
      @RaghavPal  8 місяців тому

      You're very welcome Nishi

  • @philipmark9820
    @philipmark9820 2 роки тому +8

    Another great video - just the right speed. Honestly - this free video course is better than other ones I've paid for access to!

    • @RaghavPal
      @RaghavPal  2 роки тому

      Most welcome Philip, humbled

  • @nicolasma7424
    @nicolasma7424 2 роки тому +10

    Really great tutorial Raghav ! I'm used to be working with Selenium but now need to switch to Cypress. Your videos are awesome AND up-to-date, which is not the case of 90% of tutorials out there. Can't wait to see what's next :) Keep up the good work !

    • @RaghavPal
      @RaghavPal  2 роки тому +1

      Hi Nicolas, thanks a lot

  • @reddevilmelbourne
    @reddevilmelbourne 2 роки тому +3

    Raagav sir, you are a life saver......thank you very much.....please provide next class asap.....I was finding it very difficult with selenium, buy cypress literally saved me

    • @RaghavPal
      @RaghavPal  2 роки тому

      Sure Akhil, have added 4 parts on Cypress, Can get from here - automationstepbystep.com/

    • @VaibhavPatil-ii3jg
      @VaibhavPatil-ii3jg Рік тому

      @@RaghavPal Hi Raghav Sir by this 4 master lecture videos can we learn full cypress for end to end automation testing ? Please reply soon ?

  • @qsysopr21
    @qsysopr21 2 роки тому +1

    It is a great course please keep teaching. My score was 22/25 not bad at all.

  • @AkhterAbbaspk
    @AkhterAbbaspk Рік тому

    I am from Pakistan Since the day reached to your channel, i decided to emphasis on Cypress of Automation., although it does not support Safari officially but by adding dependencies you can test on Safari with limitaitons we can test .... Thanks Raghav,

  • @durgaprasadvadlamoodi1271
    @durgaprasadvadlamoodi1271 10 місяців тому

    Thank you @ragahav for very good tutorial with examples. This is very useful for the beginners.

    • @RaghavPal
      @RaghavPal  10 місяців тому

      Glad it was helpful Durga

  • @priyanshulasod3365
    @priyanshulasod3365 2 роки тому

    Hi Raghav sir you video pretty easy to understand currently I m learning cypress with your video and I got 22/25 in quiz 2

  • @sandhyags7713
    @sandhyags7713 2 роки тому

    Thanx for the excellent video .I have scored 19/25. Thanku Raghav

  • @marcusguimaraes4232
    @marcusguimaraes4232 Рік тому

    Hello Raghav! Thank you for this Cypress course, for the way you pass on knowledge, instructions, comments, suggestions. Happy to learn so easily and efficiently! My score on Quiz #2 was 20/25.

    • @RaghavPal
      @RaghavPal  Рік тому

      Great, all the best Marcus

  • @anandsarpatwari7341
    @anandsarpatwari7341 Рік тому

    Great to learn and I have taken Quiz and scored 20marks. Thanks Raghav. Regards Anand Sarpatwari

  • @raomusadiq6602
    @raomusadiq6602 Рік тому

    First test 10/10
    Second test 21/25(Some are wrong because I have listended half lecture till test)
    Thank you sir. your lecutures are helping me alot. (Appreciation from Pakistan)

    • @RaghavPal
      @RaghavPal  Рік тому +1

      Most welcome. all the best for next quiz

  • @hafizsyedzainulabdin3900
    @hafizsyedzainulabdin3900 Рік тому

    Excellent learning experience
    Quiz marks 17/20
    Thanks Sir

  • @roshanpokhrel1421
    @roshanpokhrel1421 Рік тому

    Thank you so much for this course i find your course really interesting and i got 22 out of 25 in your quiz and hopefully i will do better in next quiz.

    • @RaghavPal
      @RaghavPal  Рік тому

      Great job Roshan. All the best

  • @soniyalazar9377
    @soniyalazar9377 Рік тому

    Very nice class sir, it is very helpful....got more idea about cypress from your training..expect more trainings on different topics...great work..

    • @RaghavPal
      @RaghavPal  Рік тому

      Sure I will Soniya, keep watching

  • @scarrollnz
    @scarrollnz 6 місяців тому

    Very enjoyable course. Fast and well explained.

    • @RaghavPal
      @RaghavPal  6 місяців тому

      Great to hear Steven

  • @nvn1413
    @nvn1413 Рік тому

    Thanks Raghav! This is exactly the type of tuitorial that I was looking for. Have been your subscriber from quite long & your videos never disappoint. Thankyou..!

  • @ten2soft-wg9xh
    @ten2soft-wg9xh 17 днів тому +1

    sir...can you make video on the new feature that was added to cypress ....this is it Bring your recorded test results into your local development workflow to monitor, run, and fix tests all in the Cypress app. just like integrating your test in to CICD pipeline

    • @RaghavPal
      @RaghavPal  16 днів тому

      Sure, I will plan for this

  • @WinstonMarkKahid
    @WinstonMarkKahid Рік тому

    Thank you for this free course, man. I appreciate you! score 20/25

  • @ragnarlathbrok9021
    @ragnarlathbrok9021 2 роки тому +1

    thank you very much for these lessons

  • @sibichakravarthy6247
    @sibichakravarthy6247 2 роки тому

    Raghav- it is a such a wonderful training on cypress. Appreciate your effort

  • @SevilayTurkoglu-o9n
    @SevilayTurkoglu-o9n Рік тому

    Your lesson videos amazing thank you from Turkey

  • @hazimabdoh6303
    @hazimabdoh6303 Рік тому

    Total points
    22/25 thanks mr Raghav

  • @Testflaps
    @Testflaps Рік тому

    Thank you for these excellent tutorials Raghav

  • @editmannnnnn
    @editmannnnnn Рік тому

    Hey Raghav, your pretty understandable and step by step explanations are easy to follow and very beneficial. Appreciate!

  • @jaminDNB
    @jaminDNB 11 місяців тому

    Thank you for the great tutorials. Big up!!! 📢📢📢

    • @RaghavPal
      @RaghavPal  11 місяців тому

      My pleasure Ivan

  • @billykidd5313
    @billykidd5313 6 місяців тому

    Good 2nd class on Cypress
    I got 10 out of 10 🎉

    • @RaghavPal
      @RaghavPal  6 місяців тому +1

      Great... keep learning Billy

  • @tomasemr3839
    @tomasemr3839 2 роки тому

    24/25, really nice tutorial! Thank you so much

    • @RaghavPal
      @RaghavPal  2 роки тому

      Great score Tomáš, well done

  • @roligbiaye3554
    @roligbiaye3554 Рік тому

    Hi Raghav , I scored 23/25 in this quiz session...I love this video

    • @RaghavPal
      @RaghavPal  Рік тому

      Great score Roli. All the best for next

  • @sergtur8174
    @sergtur8174 2 роки тому

    Thank you Raghav! Please clarify what plugin for Cypress do you use in VSC ?

  • @whitenoisefocus7962
    @whitenoisefocus7962 Рік тому +1

    9/10 on the quiz! 🔥

    • @RaghavPal
      @RaghavPal  Рік тому

      Great . All the best for next

  • @vidyabommena3380
    @vidyabommena3380 4 місяці тому +2

    Hi @Raghav, why I get the same result (pass) for the following assert.equal(4,4, 'Equal') and assert.equal(4,4, 'notEqual'). Can you please explain the purpose of notEqual.

    • @RaghavPal
      @RaghavPal  4 місяці тому +1

      Vidya
      Let's dive into the behavior of `assert.equal` and `assert.notEqual` in Cypress.
      1. `assert.equal(actual, expected, [message])`:
      - This assertion checks if the `actual` value is equal to the `expected` value.
      - If they are equal, the test passes; otherwise, it fails.
      - The optional `message` parameter allows you to provide a custom message for better test reporting.
      2. `assert.notEqual(actual, expected, [message])`:
      - This assertion checks if the `actual` value is not equal to the `expected` value.
      - If they are different, the test passes; if they are equal, the test fails.
      - Again, you can include an optional `message` for clarity.
      Now, let's consider your examples:
      - `assert.equal(4, 4, 'Equal')`:
      - Since 4 is indeed equal to 4, this assertion passes.
      - The custom message "Equal" is associated with this assertion.
      - `assert.equal(4, 4, 'notEqual')`:
      - Surprisingly, this also passes!
      - Why? Because the assertion checks for equality, and 4 is equal to 4.
      - The custom message "notEqual" doesn't affect the outcome; it's just for reporting purposes.
      In summary:
      - Both assertions pass because the actual and expected values are the same (which is expected for `assert.equal`).
      - If you want to verify that two values are different, use `assert.notEqual`.
      Remember to choose the appropriate assertion based on your test requirements. If you specifically want to ensure inequality, use `assert.notEqual`.
      --

    • @mbommena
      @mbommena 4 місяці тому

      Thanks, @Raghav. Really appreciate your explanation.

    • @ten2soft-wg9xh
      @ten2soft-wg9xh Місяць тому

      @@RaghavPal this is true and correct i tired it out and it is absolutely correct.....you can do some hands on to get more clarifications

  • @Lucajeck
    @Lucajeck Рік тому

    Hello thank you very much for your very nice course.
    I have a question: "I'm trying to automate some tests on the company website, but I'm unable to do so because it uses reCAPTCHA. How can I solve this issue? Thank you very much."

    • @RaghavPal
      @RaghavPal  Рік тому

      Please check this - ua-cam.com/video/QIYbr81dJGQ/v-deo.html

  • @asielalabbassi7097
    @asielalabbassi7097 5 місяців тому

    Amazing job thanks Raghav

    • @RaghavPal
      @RaghavPal  5 місяців тому

      Thanks a ton Asiel

  • @surajkamble3538
    @surajkamble3538 11 місяців тому

    First quiz =10/10 , Second quiz = 10/10

  • @ooozzzoo6885
    @ooozzzoo6885 2 роки тому

    thank you very much for this lessons!

  •  2 роки тому

    20/25 almost all good

  • @philipmark9820
    @philipmark9820 2 роки тому

    Thanks!

    • @RaghavPal
      @RaghavPal  2 роки тому

      Thanks for the support Philip

  • @JP-SP
    @JP-SP 3 місяці тому

    Thank You Raghav Ji ❤

  • @MyMediaVids
    @MyMediaVids 5 місяців тому

    Hi Raghav, these videos are great - even for a TOTAL beginner like me - one issue, I'm receiving the message "> _login_page.LoginPage is not a constructor" when running the test at the same point as you (37:59) and am unable to identify what the issue is - any ideas?

    • @RaghavPal
      @RaghavPal  5 місяців тому

      The error message you're encountering, "_LoginPage is not a constructor," typically occurs when there's an issue with how you're importing or using a class in your Cypress test. Let's troubleshoot this together.
      First, let's take a look at your code snippet:
      ```javascript
      ///
      import LoginPage from './PageObject/LoginPage'
      it('valid test', function() {
      const Login = new LoginPage()
      // Rest of your test logic...
      })
      ```
      The error suggests that the `LoginPage` class is not being recognized as a constructor. Here are a couple of things to check:
      1. Named Export:
      - Ensure that you're exporting the `LoginPage` class using a named export in your `./PageObject/LoginPage` file. Instead of using `export default LoginPage`, try using a named export like this:
      ```javascript
      export class LoginPage {
      // Your class methods...
      }
      ```
      2. Import Statement:
      - When importing the `LoginPage` class, use curly braces to import it as a named import:
      ```javascript
      import { LoginPage } from './PageObject/LoginPage'
      ```
      3. Function Declarations:
      - Make sure that the functions within your `LoginPage` class are properly declared. You can either use the `function` keyword before each function name or declare them as arrow functions using `const`.
      Example using `function` keyword:
      ```javascript
      class LoginPage {
      visit() {
      cy.visit("ec2-35-179-99-242.eu-west-2.compute.amazonaws.com:2021/")
      }
      // Other methods...
      }
      ```
      Example using arrow functions:
      ```javascript
      class LoginPage {
      visit = () => {
      cy.visit("ec2-35-179-99-242.eu-west-2.compute.amazonaws.com:2021/")
      }
      // Other methods...
      }
      ```
      Try making these adjustments and see if the issue persists
      --

  • @itsfunnyshubh4000
    @itsfunnyshubh4000 Рік тому

    Hello Raaghav sir!! For example if I insert some data and on click it will save to our UAT db. Do we actually save our data into the db or we can mock request to db.

    • @RaghavPal
      @RaghavPal  Рік тому

      Hi Shubh,
      In Cypress, you can mock server responses to simulate the behavior of the application without actually making real requests to the database or server. This is done using Cypress' built-in cy.route() command.
      When you use cy.route(), you can intercept requests made by your application and return mocked responses instead. This allows you to simulate different server responses and test how your application behaves in different scenarios.

    • @itsfunnyshubh4000
      @itsfunnyshubh4000 Рік тому

      @@RaghavPal Thank you so much sir for your response. What would I prefer mock response or actual db response for testing

    • @RaghavPal
      @RaghavPal  Рік тому

      mocking will be easy and quick

  • @nicolahearn4294
    @nicolahearn4294 Рік тому

    This is brilliant! Thank you, I got 17/20 on your quiz :)

  • @ricardorien
    @ricardorien Рік тому

    Thanks a tons!

  • @ngantukvanget
    @ngantukvanget 2 роки тому

    Thank you, Raghav. Great course.
    For now, OrangeHRM element would not be the same as you make this video, so I need to do adjustment for the code when I learn Cypress with this video :D

  • @adebowaleomolara3786
    @adebowaleomolara3786 2 роки тому

    Thank you so much your awesome tutorial saved me!! Can we get access to the slides?

    • @RaghavPal
      @RaghavPal  2 роки тому

      Thanks, slides not handy with me now

  • @ravisinghrajpoot3086
    @ravisinghrajpoot3086 2 роки тому +2

    Hello Raghav... Again a master class session.. QQ is there a way to execute tests in order in Cypress for version 8

    • @RaghavPal
      @RaghavPal  2 роки тому

      Hi Ravi, I believe Cypress itself does not provide this feature and it is to encourage the design where tests are independent and do not have dependency, this will help during parallel runs. can check this - stackoverflow.com/questions/58936891/cypress-how-can-i-run-test-files-in-order

    • @ravisinghrajpoot3086
      @ravisinghrajpoot3086 2 роки тому

      @@RaghavPal thank you so much Raghav, this will definitely help ❤️

  • @prashantthube
    @prashantthube Рік тому

    Thanks Raghav

  • @suneethaedara327
    @suneethaedara327 2 роки тому

    Got 10 marks in second quiz. Thank you

  • @VaibhavPatil-ii3jg
    @VaibhavPatil-ii3jg Рік тому

    1st Quiz score 8/10 & 2nd Quiz score 23/25...

  • @archiebobo
    @archiebobo Рік тому

    Great video. Is it normal for chai to have not been installed? expect() doesn't work unless I require("chai"), but apparently it was never installed so had to install separately

    • @RaghavPal
      @RaghavPal  Рік тому

      Hi Archie,
      Cypress is an end-to-end testing framework, and Chai is an assertion library that can be used with Cypress to make test assertions
      It's not uncommon for Chai to be installed separately from Cypress, as Chai is not included by default with Cypress. You'll need to install Chai manually if you want to use it in your Cypress tests

  • @kalaiarasan6251
    @kalaiarasan6251 2 роки тому

    Great effort! keep up the good work, thank you so much, Raghav.

  • @tejkumarkempaiah5373
    @tejkumarkempaiah5373 2 роки тому +1

    Thanks for such a great video, Can you please create a video on how to perform multilingual testing using Cypress

  • @vjhbbm33
    @vjhbbm33 Рік тому

    Hi raghav ,thanks for ur master class it was very helpful u are down to the earth person can u please say how we can write a test case or how to automate from drop down lost,for example I need to select a county from list of countries drop down ,please help

    • @RaghavPal
      @RaghavPal  Рік тому

      Hi Vishnu, thanks, I will plan sessions on this

  • @anikinamerica5462
    @anikinamerica5462 Рік тому

    Thank you Raghav! One thing just like to inform you that please upgrade your video quality please.. Video is not clear like others. Take care

  • @ten2soft-wg9xh
    @ten2soft-wg9xh Місяць тому

    QUIZ 2 i scored 22/25

    • @RaghavPal
      @RaghavPal  29 днів тому

      Great.. all the best for next

  • @sakthiveldeveloper8710
    @sakthiveldeveloper8710 Рік тому

    9/10 Quiz because Page object model also part of question am choose wrong

    • @RaghavPal
      @RaghavPal  Рік тому

      Great, all the best for Next

  • @manuxavier7578
    @manuxavier7578 9 місяців тому

    Hi @Raghav, I have just started cypress with your tutorial. In between, one query. After website loaded, while trying to get the locator of an element, its not giving the actual locator. I tried with multiple websites, but same issue there. It would be helpful if you can advice here. Thanks for your tutorials

    • @RaghavPal
      @RaghavPal  9 місяців тому

      Manu
      Here are some consolidated steps and strategies to troubleshoot and refine your locator selection:
      Double-Check Element Uniqueness:
      - Inspect and Analyze: Use your browser's developer tools to thoroughly inspect the element you're trying to interact with. Ensure it has unique attributes (like `id`, `class`, `data-*` attributes) or a distinctive combination of properties to differentiate it from other elements on the page.
      - Contextual Identification: If there are multiple similar elements, consider using more specific locators that incorporate their relative position, text content, or other unique qualities. For example, `cy.get('div:nth-child(2) h3').contains('Specific Text')`.
      Verify Selector Syntax and Typing:
      - Case Sensitivity: Be mindful of case sensitivity when using CSS selectors. Match element attribute case exactly (e.g., `div.myClass`, not `Div.MyClass`).
      - Escaping Special Characters: Properly escape special characters (e.g., backslashes in IDs) within locators using double backslashes (`\\`).
      - Quotes and Delimiters: Ensure correct usage of single or double quotes for string values and commas/spaces to separate selectors when combining attributes.
      Utilize Advanced Locators and Strategies:
      - Alias and `data-*` Attributes: For dynamic content or testing components across pages, create unique `data-*` attributes on elements and use them in locators. Cypress has a handy `data-cy` alias for this purpose.
      - Custom Commands: Create reusable custom commands for complex locators or interactions that you use frequently. This improves code readability and maintainability.
      - cy.contains() for Text-Based Locators: Use `cy.contains()` for partial or full text matches when appropriate. Be cautious with potential ambiguity.
      - cy.get(':visible') and Visibility: Ensure the element is visible on the screen before interacting with it. Use `cy.get(':visible')` or visibility checks before your actions.
      Consider Using Waits and Timeouts:
      - cy.wait()` for Asynchronous Operations: If the element appears dynamically after an AJAX call or other asynchronous action, use `cy.wait()` or asynchronous handling patterns (e.g., `.should('be.visible').then(...)`) to ensure its presence before attempting to interact.
      - cy.wait(ms)` for Delays: If there's a known delay between elements appearing, use `cy.wait(ms)` to introduce a short waiting period.
      Debugging and Troubleshooting:
      - Cypress Debugger: Use the built-in Cypress debugger to step through your tests, inspect variables, and examine DOM state at specific points.
      - DOM Inspection: Right-click the element in your browser (Inspect) and then click "Copy selector" to see the exact selector Cypress might be generating and compare it to what you're using.

  • @madhugoud3850
    @madhugoud3850 Рік тому +1

    Can you please make a video on installing, running and general html/json report of lightouse using cypress

    • @RaghavPal
      @RaghavPal  Рік тому

      I will check and plan Madhu

    • @madhugoud3850
      @madhugoud3850 Рік тому

      @@RaghavPal Thanks for the quick response. While I'm executing the script. I'm receiving an error *" cy.task('lighthouse') failed with the following error, the task event has not been registered yet in setupnodes"*. Do you have any suggestions on this pleas

    • @RaghavPal
      @RaghavPal  Рік тому

      Madhu
      here are a few suggestions for fixing the error "cy.task('lighthouse') failed with the following error, the task event has not been registered yet in setupnodes":
      1. Make sure that you have installed the Cypress Lighthouse plugin. You can do this by running the following command in your terminal:
      ```
      npm install cypress-lighthouse
      ```
      2. Make sure that you have added the following code to your plugins/index.js file:
      ```
      import { lighthouse } from 'cypress-lighthouse';
      on('task', lighthouse);
      ```
      3. Make sure that you are calling the cy.task() function after the on('task', lighthouse) function has been called.
      If you are still getting the error after trying these suggestions, please check the Cypress documentation for more information.
      Here are some additional things to check:
      * Make sure that you are using the latest version of Cypress.
      * Make sure that you are using the correct syntax for calling the cy.task() function.
      * Make sure that there are no errors in your code.
      If you are still having trouble, please post a question on the Cypress forum or open an issue on the Cypress GitHub repository

  • @anupdeshmane8827
    @anupdeshmane8827 5 місяців тому

    my score 24/25

  • @niazraza213
    @niazraza213 2 роки тому

    23/25 score :) thnks sir

  • @shahrukhasghar7677
    @shahrukhasghar7677 4 місяці тому

    Great!

  • @rancrosider
    @rancrosider 2 роки тому

    23/25. Nice tutorial for Cypress 10.x !! Thank you so much.

  • @rajithkumar3424
    @rajithkumar3424 2 роки тому

    Nicely presented

  • @cemalatayeter4726
    @cemalatayeter4726 2 роки тому

    The testing industry revolves around this beautiful person :)

    • @RaghavPal
      @RaghavPal  2 роки тому

      Thanks for the kind words Cemal, humbled

  • @anaghaprabhakaran2117
    @anaghaprabhakaran2117 11 місяців тому

    Hii Ragav thankyou so much.... Can you please is there any courses available with certification for cypress?

    • @RaghavPal
      @RaghavPal  11 місяців тому

      Anagha
      I don't think there is any official certfication course from Cypress yet.. There may be others.. can check online

  • @gadulayuvasaisantosh9036
    @gadulayuvasaisantosh9036 Рік тому

    hi Raghav
    instead of saving objects with in the same file , can i add in a separate file and import --> as there could be a chance we have so many locator values with in the web page , for example filling a form
    and if so , can you please let know how ?

  • @xMczZc0x
    @xMczZc0x Рік тому

    Hi Raghav, thanks again for video as always. Just one question, if I have one long test I would like to break up into smaller test blocks, just to have parts of the test show The result passing or not. Problem is when I split them into different "it" blocks, it doesn't include the result from the previous block. For example 1st "it" block : Navigate to URL, Second 'it" block I want to log into site with credentials. In second "it" block, I am no longer on the same URL as I navigated to in the first block, how can I manage this? Thanks so much

    • @RaghavPal
      @RaghavPal  Рік тому

      Hi Farhan,
      Katalon Studio offers a TestOps platform that provides a central repository for storing and sharing your test execution results, including pass/fail rates, baseline, performance, and other metrics. TestOps also offers advanced reporting and analytics features that can help you visualize and analyze your test results, track your testing progress over time, and identify trends and issues.
      Yes, Katalon Studio supports integration with secret servers, such as HashiCorp Vault, using custom keywords or plugins. This allows you to securely store and manage your passwords and other sensitive data, and retrieve them at runtime when needed.
      Katalon Studio supports testing from both SQL and non-SQL data sources. You can use Katalon's built-in data-driven testing features to read data from CSV, Excel, or database sources, or write custom scripts to connect to other data sources using JDBC or other APIs. I will try to do a video

  • @HarelYeh...
    @HarelYeh... Рік тому

    thank
    23/25

    • @RaghavPal
      @RaghavPal  Рік тому

      Great score. All the best for next

  • @asifshaik1038
    @asifshaik1038 2 роки тому

    Thank you very much sir

  • @Denys_888
    @Denys_888 2 роки тому +1

    17/25

  • @Lucajeck
    @Lucajeck Рік тому

    Grazie.

    • @RaghavPal
      @RaghavPal  Рік тому

      Thanks a lot for the support

  • @ten2soft-wg9xh
    @ten2soft-wg9xh Місяць тому

    @Raghav create a modal that will display where we can donate to the videos we watched and that actually helped us.....just my own suggestions . voluntarily donation just like the way we see it on Eclipse and i had a serious problem setting up my Eclipse back again after i stopped using it for more than 7month...can you help out with the settings ? most especially the dependencies is giving me a lot of though time down to the maven project.
    i would appreciate if you can help out with the settings. thank you DELIGENT & IMPACTFUL COACH RAGHAV
    I am saying hello from Lagos Nigeria......I WILL NEVER STOP LEARNING

    • @RaghavPal
      @RaghavPal  29 днів тому

      Thank You for the kind words.. all this education is free

  • @Harsh12351
    @Harsh12351 6 місяців тому

    Hello! Where have you covered integration with Git, Jenkins?

    • @RaghavPal
      @RaghavPal  6 місяців тому

      Harsh, its in part 3 ua-cam.com/video/qjhfObj3yzQ/v-deo.htmlsi=xO1fTGorbdzzzUd7

    • @Harsh12351
      @Harsh12351 6 місяців тому

      @@RaghavPal I am afraid I still could not find any mention of integration with Git or Jenkins in your third masterclass video (link above). I had already watched it before raising the query here. There is file handling and running tests via CLI. But no integration. Can you mention the timestamps?

    • @RaghavPal
      @RaghavPal  6 місяців тому +1

      Okay I will check Harsh, for now can follow these steps:
      ## Integrating Cypress with Git
      Prerequisites: Install Git on your system
      1. Initialize a Git repository
      - Navigate to your project directory in the terminal and run `git init`
      2. Add all your files to the Git repository
      - Run `git add .` to add all files in the current directory
      3. Commit your changes
      - Run `git commit -m "Initial commit"` to commit your changes
      4. Push your changes to a remote repository
      - If you haven't already, create a new repository on GitHub.
      - Run `git remote add origin your-repository-url` to add your remote repository.
      - Run `git push -u origin master` to push your changes to the remote repository
      ## Integrating Cypress with Jenkins
      1. Install Node.js on Jenkins
      - Open the Plugin Manager in Jenkins.
      - Download and configure NodeJS
      - Open the Global Tool Configuration and configure NodeJS to the latest version
      2. Create a new Jenkins job
      - Add a build step
      - In the build step, use the following commands to install project dependencies and run Cypress tests:
      ```
      npm install
      npx cypress run
      ```
      - These commands will install all necessary dependencies and run your Cypress tests
      3. Configure Git in Jenkins
      - In your Jenkins job configuration, specify your Git repository URL and define the branches you want to build
      - Set up any build triggers (e.g., poll SCM, webhook)
      4. Post-build Actions
      - Configure post-build actions based on your requirements. You can archive test reports, generate HTML reports using the plugin, or trigger deployment steps depending on your project’s needs
      Please note that these steps are a general guide and the exact process may vary depending on the specific versions of the software you are using.

  • @MaazUrRehmanEngrMirza
    @MaazUrRehmanEngrMirza 2 роки тому

    Hello Sir, please make a video on cypress code coverage using both Javascript and Typescript.

  • @hileooo
    @hileooo Рік тому

    HI Bro, your videos are very nice, neatly explained in a simple fashion.. are there any videos on Cypress project for practice.. if not please do make some on orange HRM application.. TIA

    • @RaghavPal
      @RaghavPal  Рік тому

      Thanks Ravi, you can find all here - automationstepbystep.com/

  • @varundutta2381
    @varundutta2381 5 місяців тому +1

    Quiz comes after 23 minutes. All topics asked in quiz are not covered by that time. Is it true or I am missing something.

    • @RaghavPal
      @RaghavPal  5 місяців тому

      Yes Varun, there are several Quizzes, so this quiz contains questions done until this time

  • @NatashaWaheed-my9mb
    @NatashaWaheed-my9mb 7 місяців тому

    My score is 23/25

    • @RaghavPal
      @RaghavPal  7 місяців тому

      Great Natasha.. all the best for next

  • @welcomemusic6378
    @welcomemusic6378 Рік тому

    Hey Raghav.. I gained 7 marks in quiz1 and in quiz2 gained 9 marks

    • @RaghavPal
      @RaghavPal  Рік тому

      Great, take a note of the missed ques and try again

    • @welcomemusic6378
      @welcomemusic6378 Рік тому

      @@RaghavPal sur thankyou, i didnot expect reply from you. I am happy that you replied.

  • @lestergt6
    @lestergt6 2 роки тому

    Would you recommend using {Enter} instead of clickLogin when entering credentials?

    • @RaghavPal
      @RaghavPal  2 роки тому

      You can click login button for testing a login scenario to ensure the functionality works, for other scenarios, can use enter

  • @zainabfirdos2666
    @zainabfirdos2666 Рік тому

    Hello Sir,
    Can you please explain the git and Jenkins integration with Cypress?
    It would be helpful.
    Thanks

  • @harkeeratkaur8648
    @harkeeratkaur8648 2 роки тому +2

    Hello Raghav how i can connect with you i need your help for Karate framework

    • @RaghavPal
      @RaghavPal  2 роки тому

      Hi Harkeerat, can let me know in the comment section of Karate videos

  • @saikotagiri2501
    @saikotagiri2501 2 роки тому

    Hi Raghav. Please do the videos on Angular latest version. It is the current trending also. Please do this one. It will be very helpful to every one.

  • @ashwinnair3782
    @ashwinnair3782 Рік тому

    @39:36 how can we avoid hardcoding and instead user can directly input in cypress? Expecting you kind reply.

    • @RaghavPal
      @RaghavPal  Рік тому +1

      Hi Ashwin, you mean the values of username and password, Yes we can take it from another file (excel), class, variable etc
      Can check some online examples

    • @ashwinnair3782
      @ashwinnair3782 Рік тому

      @@RaghavPal thank you 😊

  • @jeromedigity
    @jeromedigity Рік тому

    hi Raghav what is your code theme in VS studio?

    • @RaghavPal
      @RaghavPal  Рік тому

      Jerome
      I do not remember exactly, you can try some dark themes and compare

  • @navyarai8111
    @navyarai8111 2 роки тому +1

    Hi Raghav Sir,
    Great tutorial sir w.r.t Cypress, Can you please help me out in configuring Duo Auth for login where we enter the UName and Password ==> redirects to an approve request for DUO Auth in our phone .
    Kindly let m the how can I perform this, tried couple of snippets but not able to redirect to the success login

    • @RaghavPal
      @RaghavPal  2 роки тому

      Hi Navya, I have not checked this, will need to find online

  • @MrKhankhan123
    @MrKhankhan123 Рік тому

    In this video : I want to know that why You dont add //// in starting ?

    • @RaghavPal
      @RaghavPal  Рік тому

      Hi Noor
      I may have added that at global level (Config file)

  • @ahmethalal6926
    @ahmethalal6926 Рік тому

    19 from 25

    • @RaghavPal
      @RaghavPal  Рік тому

      Great, all the best for next Ahmet

  • @RishabhGoyal-h7q
    @RishabhGoyal-h7q 7 місяців тому

    Hello sir Can you make one more video for "how to read the data from excel file in cypress"

  • @NitinNandanwar
    @NitinNandanwar 2 роки тому

    Hi Raghav, do you have any video on cloud performance testing with JMeter?

    • @RaghavPal
      @RaghavPal  2 роки тому

      Hi Nitin, I have shown how to do performance testing with JMeter, you can use the same process for any similar apps, can find all videos here - automationstepbystep.com/

  • @sirisha8k
    @sirisha8k 2 роки тому

    Hi Sir, your videos are simple are easy to understand. Wondering if you could do a small video on cucumber with BDD using JavaScript would be useful.

    • @RaghavPal
      @RaghavPal  2 роки тому

      Hi Sirisha, I will plan

  • @vidyabommena3380
    @vidyabommena3380 4 місяці тому

    Thats all good @Raghav, I realized the mistake of using ('true') instead of (true).

    • @RaghavPal
      @RaghavPal  4 місяці тому

      Great.. keep learning Vidya

  • @daadinaanikahaniyan
    @daadinaanikahaniyan 2 роки тому

    Hi Raghav
    Can we hide 'chrome is being controlled by automated software' from browser in cypress

    • @RaghavPal
      @RaghavPal  2 роки тому

      Hi Raman, can check this discussion - github.com/cypress-io/cypress/issues/5021

  • @ten2soft-wg9xh
    @ten2soft-wg9xh Місяць тому

    i scored 16

    • @RaghavPal
      @RaghavPal  29 днів тому

      Well done. keep learning

  • @aditisah3289
    @aditisah3289 Рік тому

    Hi Raghav,
    I want to use same session across different spec, for that I am usinf testIsolation:false and also cacheAcrossSpecs: true, but still the session is not maintained, can you please let me know how to create session using cookies and maintain it across all the specs.
    Thanks!

    • @RaghavPal
      @RaghavPal  Рік тому

      Aditi
      To create a session using cookies and maintain it across all specs in Cypress, you can use the following steps:
      **1. Create a cookie jar**
      A cookie jar is a container that stores cookies. You can create a cookie jar using the following code:
      ```javascript
      const cookieJar = new Cypress.CookieJar();
      ```
      **2. Set the cookies**
      You can set cookies in the cookie jar using the following code:
      ```javascript
      cookieJar.setCookie('session_id', '1234567890');
      ```
      **3. Start a new Cypress spec**
      When you start a new Cypress spec, you can pass the cookie jar to the `cy.visit()` method. This will tell Cypress to use the cookie jar for the session.
      ```javascript
      cy.visit('example.com', { cookieJar });
      ```
      **4. Maintain the session across specs**
      To maintain the session across specs, you can use the following code:
      ```javascript
      // Get the cookie jar from the current spec.
      const cookieJar = cy.getCookieJar();
      // Set the cookies in the cookie jar for the next spec.
      cookieJar.setCookie('session_id', '1234567890');
      ```
      You can call this code at the beginning of each spec that needs to use the existing session.
      Here is an example of a Cypress script that uses a cookie jar to maintain a session across specs:
      ```javascript
      // Create a cookie jar.
      const cookieJar = new Cypress.CookieJar();
      // Set the session cookie.
      cookieJar.setCookie('session_id', '1234567890');
      // Start a new spec and pass the cookie jar to the visit method.
      cy.visit('example.com', { cookieJar });
      // Do some tests.
      // Maintain the session for the next spec.
      cookieJar.setCookie('session_id', '1234567890');
      // Start a new spec.
      cy.visit('example.com', { cookieJar });
      // Do some more tests.
      ```
      This script will maintain the session across both specs, so that the user will not have to log in again.

    • @aditisah3289
      @aditisah3289 Рік тому

      @@RaghavPal Thank you so much, will try it and let you know.

  • @ndingu_cyfogamalam2127
    @ndingu_cyfogamalam2127 11 місяців тому

    21/25

    • @RaghavPal
      @RaghavPal  11 місяців тому

      Great, all the best for next

  • @prikshitverma3885
    @prikshitverma3885 Рік тому

    Hi I have a query related to a functionality . I have 31 URLs programs at which I need to test a single chat icon test ( just open and close) I am having trouble how to do that. Can you please assist me

    • @RaghavPal
      @RaghavPal  Рік тому

      Hi Prikshit
      Here are the steps on how to test a single chat icon test (just open and close) in Cypress:
      1. Create a Cypress test file. The test file should be named chat-icon-test.spec.js.
      2. Import the Cypress cy object. The cy object is used to interact with the browser.
      3. Open the first URL in the list. You can do this by using the cy.visit() method.
      4. Find the chat icon. You can find the chat icon by using the cy.get() method.
      5. Click on the chat icon. You can click on the chat icon by using the cy.click() method.
      6. Verify that the chat window is open. You can verify that the chat window is open by using the cy.get() method to find the chat window and then checking if it is visible.
      7. Close the chat window. You can close the chat window by using the cy.close() method.
      8. Repeat steps 4-7 for the remaining URLs in the list.
      Here is an example of a Cypress test file that tests a single chat icon test (just open and close):
      Code snippet
      import { cy } from "cypress";
      describe("Chat icon test", () => {
      it("should open and close the chat window", () => {
      cy.visit("www.example.com");
      cy.get(".chat-icon").click();
      cy.get(".chat-window").should("be.visible");
      cy.close();
      });
      });
      I hope this helps

  • @harshadamali2699
    @harshadamali2699 Рік тому

    Hii Raghav,
    i am getting an issue when we import username and pwd
    //import { loginpages, loginpages } from "./pages/login_pages"
    let loginpages = new loginpages()
    it('pom', function(){
    loginpages.//
    after giving .(dot) in suggestion username and password field are not showing..
    please suggest.

    • @RaghavPal
      @RaghavPal  Рік тому +1

      Hi Harshada,
      Based on the code snippet you provided, it looks like you are trying to import a module called login_pages and create an instance of the loginpages class, but the username and password fields are not showing up in the suggestion dropdown.
      There could be several reasons why this is happening. Here are a few things to check:
      Make sure that the login_pages module exports the loginpages class and that the username and password fields are defined as properties or methods of this class.
      Verify that the login_pages module is correctly imported into your test file using a relative file path. For example, if login_pages.js is located in a folder called pages in the same directory as your test file, you would import it like this:
      import { loginpages } from "./pages/login_pages";
      Check that your IDE or text editor is configured to provide suggestions for properties and methods of imported modules. This may involve installing additional plugins or configuring the autocomplete settings in your editor.
      Make sure that the username and password fields are defined as public properties or methods of the loginpages class. If they are defined as private or protected properties or methods, they may not be visible outside of the class.
      If none of these suggestions solve the issue, please provide more details about your specific code and setup so that I can provide more targeted assistance.

    • @harshadamali2699
      @harshadamali2699 Рік тому

      @@RaghavPal thank you

  • @santhoshkumar-jz1df
    @santhoshkumar-jz1df Рік тому

    @RaghavPal
    while running my scripts in docker container, facing the issue
    "Your page did not fire its load event within 60000."
    no urls are blocked in network. Please help in resolving this

    • @RaghavPal
      @RaghavPal  Рік тому

      Hi Santhosh
      The error "Your page did not fire its load event within 60000" occurs when Cypress times out waiting for the page to load. This can happen for a few reasons, such as:
      * The page is taking a long time to load.
      * There is a network issue that is preventing the page from loading.
      * There is a bug in your Cypress tests that is preventing the page from loading.
      To resolve the error, you need to identify the root cause of the problem. Here are some things you can try:
      * Check the network logs to see if there are any errors.
      * Use a tool like `curl` to see if you can load the page from the command line.
      * Debug your Cypress tests to see if there is a bug that is preventing the page from loading.
      If you are still unable to resolve the error, you can try increasing the `pageLoadTimeout` value in your Cypress configuration file. This will tell Cypress to wait longer for the page to load.
      Here is an example of how to increase the `pageLoadTimeout` value in your Cypress configuration file:
      ```
      {
      "pageLoadTimeout": 120000
      }
      ```
      Once you have increased the `pageLoadTimeout` value, you should be able to run your Cypress tests without getting the error.
      In addition to the above, you can also try the following:
      * Make sure that you are using the latest version of Cypress.
      * Try using a different browser, such as Firefox or Edge.
      * Try using a different network connection.
      I hope this helps

  • @nirmalanj9569
    @nirmalanj9569 2 роки тому

    when I try to use the describe (), I just observed automatically the "import { beforeEach } from "mocha"" is created and not sure of the reason. If you could help me to understand it might be useful. Thanks

    • @RaghavPal
      @RaghavPal  2 роки тому

      You can remove that and go with as shown in the tutorial

  • @maheshjittaveni2698
    @maheshjittaveni2698 Рік тому

    23/25