LambdaTest
LambdaTest
  • 841
  • 3 731 627
What are TestNG Annotations? | LambdaTest
🚀Check out this video to learn about TestNG annotations! Start FREE Testing: accounts.lambdatest.com/register?UA-cam&Organic&June21&FjFO0ke9M7o&LT_Sign_Up
✔️What are TestNG Annotations?
TestNG annotations are a set of tags or markers used to define different behaviors and configurations in TestNG, a testing framework inspired by JUnit and NUnit. These annotations help manage test methods, set up and tear down processes, and specify dependencies and priorities among tests.
𝐕𝐢𝐝𝐞𝐨 𝐂𝐡𝐚𝐩𝐭𝐞𝐫𝐬 👀
00:00 Introduction
00:04 TestNG Annotations
01:27 Closing
𝐖𝐚𝐭𝐜𝐡 𝐭𝐡𝐞 𝐟𝐮𝐥𝐥 𝐯𝐢𝐝𝐞𝐨 ➡️ua-cam.com/video/zI7Xbaj4RIs/v-deo.html
𝐑𝐞𝐥𝐚𝐭𝐞𝐝 𝐁𝐥𝐨𝐠𝐬📝
✔️ TestNG Annotations Tutorial With Examples: bit.ly/3nIEoKx
✔️ How To Automate Using TestNG In Selenium?: bit.ly/3Obnrn5
Sign Up for LambdaTest! It’s FREE 🙌
LambdaTest is an AI-powered test orchestration and execution platform that allows you to perform both manual and automated testing across 3000+ environments, making it a top choice among other cloud testing platforms:
𝐊𝐧𝐨𝐰 𝐦𝐨𝐫𝐞:
accounts.lambdatest.com/register?UA-cam&Organic&June21FjFO0ke9M7o&LT_Sign_Up
𝐄𝐱𝐩𝐥𝐨𝐫𝐞:
🎬 Most Recent Videos: bit.ly/3PRAPyo
📝 Blog: bit.ly/3yGVsUc
🎓 Learning Hub: bit.ly/3fr6l4Z
🎥 LambdaTest Customers: bit.ly/2TB7pvD
🚀 Webinars: bit.ly/37i41co
🛠️ Product Updates: bit.ly/3717NGO
💬 LambdaTest Certifications: bit.ly/3XwW0b0
𝐂𝐨𝐧𝐧𝐞𝐜𝐭 𝐰𝐢𝐭𝐡 𝐋𝐚𝐦𝐛𝐝𝐚𝐓𝐞𝐬𝐭:
👥 COMMUNITY: bit.ly/3Aiz5oO
🛠️ UA-cam: bit.ly/3rH2Yfh
🌎 LINKEDIN: bit.ly/3xA6F84
👥 FACEBOOK: bit.ly/37mbQOa
🐦TWITTER: bit.ly/3Cn0g3A
🖼️ GITHUB: bit.ly/3jowfYs
🔴 NEWSLETTER: bit.ly/3juhxzc
📸 PINTEREST: bit.ly/2VCXI05
#testng #lambdatestyourapps #testngannotations #annotationsintestng #whataretestngannotations
Disclaimer:
This video features materials protected by the Fair Use guidelines of Section 107 of the Copyright Act. All rights reserved to © 2024 LambdaTest. Any illegal reproduction of this content will result in immediate legal action.
Переглядів: 76

Відео

Optimize Issue Tracking: Integrating SpiraTeam with LambdaTest | XP Series
Переглядів 899 годин тому
📢 Tune in to our latest LambdaTest Experience (XP) Series episode featuring Dermot Canniffe, Pre-Sales Solution Engineer at Inflectra. In this episode, Discover how LambdaTest and SpiraTeam integration revolutionize bug tracking and ensure the delivery of high-quality software products. To learn more, follow our support documentation: bit.ly/3Xsw8kc To get started with LambdaTest, start FREE te...
Difference between JUnit 4 and JUnit 5 LambdaTest
Переглядів 459 годин тому
🚀Watch this video to explore the key differences between JUnit 4 and JUnit 5! Start FREE Testing: accounts.lambdatest.com/register?UA-cam&Organic&June19&WHhMTm3rcs<_Sign_Up ✔️Difference Between JUnit 4 and JUnit 5? Here are the key differences between JUnit 4 and JUnit 5: • JUnit 4 is a single package, while JUnit 5 is modular with JUnit Platform, JUnit Jupiter, and JUnit Vintage. • JUnit 4 r...
How to Convert Test Scripts From JUnit 4 To JUnit 5 | LambdaTest
Переглядів 5412 годин тому
🚀Check out this video to understand how to convert your test scripts from JUnit 4 to JUnit 5! Start FREE Testing: accounts.lambdatest.com/register?UA-cam&Organic&June14&Zhda1bRfpyk<_Sign_Up ✔️What are the benefits of upgrading from JUnit 4 to JUnit 5? Upgrading from JUnit 4 to JUnit 5 offers numerous benefits, including a more flexible and extensible architecture. JUnit 5 supports modern deve...
Rick Tracy Shares Thoughts On Concept of Concurrency At EuroSTAR'24⚡| LambdaTest
Переглядів 10421 годину тому
Don’t miss out on this amazing session by Rick Tracy, where he shares invaluable insights on "Concurrency Testing". Start FREE Testing: accounts.lambdatest.com/register?UA-cam&Organic&Jun14&NmSDhhHV0E<_Sign_Up 📌 At EuroSTAR 2024, LambdaTest proudly honors Rick Tracy, Agile Coach and Test Consultant at Hapalion Consulting and QualityMindsc. Rick shared his thoughts on the importance of concurr...
Key features of WebdriverIO Waits | LambdaTest
Переглядів 60День тому
🚀Watch the video to learn the important features of WebdriverIO waits! Start FREE Testing: accounts.lambdatest.com/register?UA-cam&Organic&Jun13&TX-dDN1N7E<_Sign_Up ✔️ What are WebdriverIo Waits? WebdriverIO waits are mechanisms used to manage the timing and synchronization of test steps, ensuring that elements are available and conditions are met before actions are performed. There are three...
Impact of Generative AI on Testing | LambdaTest
Переглядів 116День тому
🚀Watch the video to learn how Generative AI has impacted testing! Start FREE Testing: accounts.lambdatest.com/register?UA-cam&Organic&Jun12&AfAfwlptg<_Sign_Up ✔️ ️How has Generative AI impacted software testing? Generative AI has significantly impacted software testing by automating the creation of test cases, improving test coverage, and reducing the time required for testing. It enables the...
JUnit 5 Architecture | LambdaTest
Переглядів 123День тому
🚀Watch the video to learn about the JUnit 5 Architecture! Start FREE Testing: accounts.lambdatest.com/register?UA-cam&Organic&Jun11&VyQAkuzmuk<_Sign_Up ✔️ ️What are the key components of JUnit 5 Architecture? 𝐉𝐔𝐧𝐢𝐭 𝐏𝐥𝐚𝐭𝐟𝐨𝐫𝐦: The JUnit Platform is the backbone for initiating testing frameworks on the Java Virtual Machine (JVM). It establishes a robust interface between JUnit and its users, inc...
What are WebSockets? | LambdaTest
Переглядів 106День тому
🚀Watch the video to understand the concept of WebSockets! Start FREE Testing: accounts.lambdatest.com/register?UA-cam&Organic&Jun10&BENkwF90<_Sign_Up ✔️ ️What are WebSockets? WebSockets are a protocol that enables real-time, bi-directional communication between a client and a server over a single, persistent connection. In the context of testing, WebSockets are used to verify the functionalit...
The Role of Human Testing in Quality Assurance | LambdaTest
Переглядів 9514 днів тому
🚀Watch the video on the role of human testing in quality assurance! Start FREE Testing: accounts.lambdatest.com/register?UA-cam&Organic&Jun07&HiuxDarHOs<_Sign_Up ✔️ ️What is Human Testing? Human testing, also known as user testing or usability testing, is a process where real users interact with a product, service, or system to evaluate its functionality, usability, and overall user experienc...
What's New In LambdaTest💻 | Product Update Announcement May 2024
Переглядів 8214 днів тому
Each month, LambdaTest enhances your web and mobile testing experience with new features and updates. Discover the latest improvements for May, including advancements in Web Automation, App Automation, HyperExecute, SmartUI, Real Time App Testing, and more. Start FREE Testing: accounts.lambdatest.com/register?UA-cam&Organic&June06&ME1fjZ2qeGQ<_Sign_Up 𝐕𝐢𝐝𝐞𝐨 𝐂𝐡𝐚𝐩𝐭𝐞𝐫𝐬 👀 00:00 Welcome! 00:15 Git...
Testμ Conf 2024 - Decode the Future of Testing | 21-23August 2024 | LambdaTest
Переглядів 6314 днів тому
Get ready for TestMu 2024! Remember to block your calendar for the virtual #TestMuConf 2024! 𝐑𝐞𝐠𝐢𝐬𝐭𝐞𝐫 𝐟𝐨𝐫 𝐟𝐫𝐞𝐞 𝐧𝐨𝐰 ➡️ www.lambdatest.com/testmuconf-2024 Get ready to connect with 30K professionals passionate about decoding the future of testing. TestMuConf 2024 brings together the testing and QA community for a three-day virtual event, uniting testers, developers, community leaders, industry ex...
What is Jenkins Pipeline | LambdaTest
Переглядів 12314 днів тому
🚀Watch the video to learn what is Jenkins Pipeline! Start FREE Testing: accounts.lambdatest.com/register?UA-cam&Organic&Jun03&HiuxDarHOs<_Sign_Up ✔️ ️What is Jenkins Pipeline? Jenkins Pipeline is a suite of plugins that supports implementing and integrating continuous delivery pipelines into Jenkins. It allows you to define your entire build, test, and deploy process as code using a Domain-Sp...
Innovation Accelerated: The Intersection of AI and Quality Engineering | XP Series | LambdaTest
Переглядів 12321 день тому
📢 Tune in to our newest episode of the 𝐋𝐚𝐦𝐛𝐝𝐚𝐓𝐞𝐬𝐭 𝐄𝐱𝐩𝐞𝐫𝐢𝐞𝐧𝐜𝐞 (𝐗𝐏) 𝐒𝐞𝐫𝐢𝐞𝐬 featuring 𝐀𝐧𝐭𝐨𝐧𝐲 𝐊𝐚𝐩𝐥𝐚𝐧, Head of QE at Accenture. In the episode, Antony shares insights into the transformative potential of AI and future trends in testing in Quality Assurance and Engineering as he describes its importance in enhancing speed, quality, and productivity. To get started with LambdaTest, start FREE testing ...
Best Tools for Software Developers | LambdaTest
Переглядів 13021 день тому
🚀Watch this video to learn about tools that can make your development work easier and help improve your skills! Start FREE Testing: accounts.lambdatest.com/register?UA-cam&Organic&May29&Kk6UQkIA<_Sign_Up ✔️What are Software Testing Tools? Software testing tools are applications and frameworks used by testers and developers to ensure that software functions correctly, efficiently, and securely...
Visual Regression Testing for PDF Files Using SmartUI | LambdaTest
Переглядів 11721 день тому
Visual Regression Testing for PDF Files Using SmartUI | LambdaTest
Testing Mindset and Approach in a Generative AI World | Voices Of Community: Ep XVI | LambdaTest
Переглядів 26228 днів тому
Testing Mindset and Approach in a Generative AI World | Voices Of Community: Ep XVI | LambdaTest
What Are the Challenges in Test Automation? | LambdaTest
Переглядів 208Місяць тому
What Are the Challenges in Test Automation? | LambdaTest
Impact and Potentials of GenAI to the IT Engineers | XP Series Webinar | LambdaTest
Переглядів 91Місяць тому
Impact and Potentials of GenAI to the IT Engineers | XP Series Webinar | LambdaTest
Introducing the LambdaTest extension for GitHub Copilot
Переглядів 212Місяць тому
Introducing the LambdaTest extension for GitHub Copilot
Strategies for Accelerating Feedback | LambdaTest
Переглядів 36Місяць тому
Strategies for Accelerating Feedback | LambdaTest
How to perform Accessibility Testing Using Screen Reader | LambdaTest
Переглядів 112Місяць тому
How to perform Accessibility Testing Using Screen Reader | LambdaTest
TestMu 2024: Early Highlights with Chandni | LambdaTest
Переглядів 47Місяць тому
TestMu 2024: Early Highlights with Chandni | LambdaTest
What is Modal Dialog Box? | LambdaTest
Переглядів 88Місяць тому
What is Modal Dialog Box? | LambdaTest
Test Biometric Authentication on Real Devices | LambdaTest
Переглядів 140Місяць тому
Test Biometric Authentication on Real Devices | LambdaTest
AI-Driven Strategies in Software Testing | LambdaTest
Переглядів 230Місяць тому
AI-Driven Strategies in Software Testing | LambdaTest
TestMu Offline Meetup: Decoding QA Experiences
Переглядів 36Місяць тому
TestMu Offline Meetup: Decoding QA Experiences
What's New In LambdaTest💻 | Product Update Announcement April 2024
Переглядів 87Місяць тому
What's New In LambdaTest💻 | Product Update Announcement April 2024
VOC | Testing Mindset and Approach in a Generative AI World | Webinar Teaser | LambdaTest
Переглядів 80Місяць тому
VOC | Testing Mindset and Approach in a Generative AI World | Webinar Teaser | LambdaTest
Getting Ready for TestMu 2024: A Sneak Peek by Maneesh | LambdaTest
Переглядів 65Місяць тому
Getting Ready for TestMu 2024: A Sneak Peek by Maneesh | LambdaTest

КОМЕНТАРІ

  • @lyhabc
    @lyhabc 44 хвилини тому

    as more as possible

  • @suppandi-zu6ot
    @suppandi-zu6ot День тому

    Thanks It helped me A lot , You are really very good at explaining stuffs

    • @LambdaTest
      @LambdaTest 18 хвилин тому

      Glad you liked it! Do subscribe to the channel for more such tutorials🙂

  • @bhushanchavan6301
    @bhushanchavan6301 2 дні тому

    How to print a default selected value of drop-down

  • @aparnausa3619
    @aparnausa3619 3 дні тому

    how to avoid creating page instances in every test in a single file in javascript

    • @LambdaTest
      @LambdaTest 2 дні тому

      Hey @aparnausa3619 , To avoid creating page instances in every test in a single file in JavaScript, use setup (`beforeAll` or `before`) and teardown (`afterAll` or `after`) hooks to create and close the page instance. To learn more about these hooks follow this guide : www.lambdatest.com/learning-hub/javascript-automation-testing . Hope this helps

  • @puneetoist1987
    @puneetoist1987 6 днів тому

    Mochawesome folder is not generated when using --parallel flag. Anything changed there ? It works when i remove the --parallel flag

    • @LambdaTest
      @LambdaTest 5 днів тому

      Hey @puneetoist1987, you can try looking at the official document when dealing with parallel Mode: www.npmjs.com/package/mochawesome#parallel-mode

  • @aparnausa3619
    @aparnausa3619 10 днів тому

    i have read the comments and i am going to start watching right from today

  • @user-nd8lp1mj3b
    @user-nd8lp1mj3b 10 днів тому

    Thank you it was really helpful, Can you please do video on csv files and how to verify the rows init.

    • @LambdaTest
      @LambdaTest 9 днів тому

      Thank you for your suggestion! A tutorial on handling CSV files with Playwright and TypeScript, including verifying the rows, sounds like a valuable topic. We'll consider exploring this in future videos.

  • @MaxZhurkin
    @MaxZhurkin 11 днів тому

    Hello, what extention do you use to see all the selectors in the browser?

    • @LambdaTest
      @LambdaTest 10 днів тому

      The extension used to get all the selectors is "LetXPath", you can get it from the chrome web store.

    • @MaxZhurkin
      @MaxZhurkin 10 днів тому

      @@LambdaTest thank you!

  • @prikshitverma3885
    @prikshitverma3885 12 днів тому

    Any real time project ? where I can do real time practise including ci/cd pipelines

    • @LambdaTest
      @LambdaTest 9 днів тому

      @prikshitverma3885 , you can watch the Jenkins video tutorial in this you have everything covered including the real-time workings of automation with CI/CD Pipeline using Jenkins. Hope this helps :)

  • @AdlBnymn
    @AdlBnymn 12 днів тому

    Hello Sir, Is JS or Typescript knowledge a pre-requisite for this course?

    • @LambdaTest
      @LambdaTest 12 днів тому

      Hello @AdlBnymn , Would be better if you have basic syntax and understanding in place.

  • @NirajShrestha-wt4kp
    @NirajShrestha-wt4kp 12 днів тому

    not helpful for windows at all.

    • @LambdaTest
      @LambdaTest 9 днів тому

      Hi Niraj, Could you please share more details about the issues you encountered on Windows?

    • @NirajShrestha-wt4kp
      @NirajShrestha-wt4kp 9 днів тому

      @@LambdaTest I had issue with setting up the Environment variables on windows. I was confused which variables to set: User variables or system variables. So, setup the same path in both user and system variables and it is working now. Thanks for your reply.

  • @pranavdalvi1895
    @pranavdalvi1895 13 днів тому

    Why we incapsulate our code?

    • @LambdaTest
      @LambdaTest 9 днів тому

      Hi Pranav, This is done basically for organizing test code into modules or components that can be reused and managed independently.

  • @user-lz3wj7id2h
    @user-lz3wj7id2h 13 днів тому

    Como cancelar la membresía?

    • @LambdaTest
      @LambdaTest 12 днів тому

      Hi Jeremy! ¿Podría especificar a qué membresía se refiere?

  • @user-ts6mh2zl8p
    @user-ts6mh2zl8p 17 днів тому

    Thanks for case with timeZone, it's helpful for me.

  • @prodbyaalright3648
    @prodbyaalright3648 17 днів тому

    Thank you

  • @saisowmya3320
    @saisowmya3320 17 днів тому

    How to do the code of line 22.

    • @LambdaTest
      @LambdaTest 12 днів тому

      Hi Sai Sowmya, Could you please provide the specific timestamp where the code is shown?

    • @saisowmya3320
      @saisowmya3320 12 днів тому

      @@LambdaTest ok Thank you

  • @saisowmya3320
    @saisowmya3320 19 днів тому

    How to copy from inspect content to the code

    • @LambdaTest
      @LambdaTest 18 днів тому

      Hey @saisowmya3320 , You can follow the below steps to copy content or an web element from inspect 1. Right-click on the element in the webpage and select "Inspect". 2. In the Developer Tools, find the HTML code for the element. 3. Right-click on the code and select "Copy". 4. Paste the copied code into your code editor. 5. Make any necessary adjustments and test your code. To get guidance on how to inspect elements irrespective of Mac or Android Devices or Web browsers, you can follow this guide. The initial inspect remains the same. www.lambdatest.com/blog/how-to-inspect-elements-on-android-devices/

    • @saisowmya3320
      @saisowmya3320 17 днів тому

      Copy as what element or outerHtml, selector, js path, styles, XPath, full XPath.

    • @LambdaTest
      @LambdaTest 13 днів тому

      Hi Sai Sowmya, It depends on your needs: use "Copy as HTML" for the element's code, "Copy selector" for CSS targeting, "Copy JS path" for JavaScript access, "Copy styles" for inline styles, "Copy XPath" for XPath queries, and "Copy full XPath" for XPath targeting.

  • @karlatech6737
    @karlatech6737 20 днів тому

    Pero puedes hacer esa configuracion utilizando appium 2.0 con appium java client 8, porque segun tu ejemplo parece que usas el java client 7 de appium. Se agradece bastante. Saludos.

    • @LambdaTest
      @LambdaTest 19 днів тому

      Hi Karla, Sí, puedes ejecutar pruebas de Appium en LambdaTest con Appium 2.0 también, como se muestra en el tutorial. ¡Me alegra que te haya gustado!

  • @kvk2530
    @kvk2530 23 дні тому

    thank you this is great

  • @uviiifittrackstravels
    @uviiifittrackstravels 24 дні тому

    how can i get these notes

    • @LambdaTest
      @LambdaTest 21 день тому

      Hey @uviiifittrackstravels to get step-by-step guidance on how to install Appium you can surely refer this blog www.lambdatest.com/appium , and go the section how to install and configure Appium Hope this helped :)

  • @Anton-ez3pl
    @Anton-ez3pl 26 днів тому

    How to calculate CPU usage (in%) like we see in performance monitor ? )

    • @LambdaTest
      @LambdaTest 25 днів тому

      Hi Anton, To calculate CPU usage in percentage using Selenium 4 with Chrome DevTools Protocol (CDP), you can leverage the Performance domain, which provides performance metrics directly from the browser.

    • @Anton-ez3pl
      @Anton-ez3pl 15 днів тому

      @@LambdaTest hello ! I used your example, but there are planty of another metrics ) I need CPU usage (the same metric as you can see in Performance monitor) in %. Is it possible at all ? I suppose that % can be calculated only. But I don't know how ))

    • @LambdaTest
      @LambdaTest 9 днів тому

      Hi Anton, If you're interested in tracking the CPU usage of the browser process itself, you might get some indirect metrics via browser performance tools, but these won't directly give you CPU usage in the traditional sense (like that shown in Windows Task Manager or other system monitors).

    • @Anton-ez3pl
      @Anton-ez3pl 5 днів тому

      @@LambdaTest yes but chrome can calculate this in % anyhow, I just want to get this value =)))

    • @LambdaTest
      @LambdaTest 3 дні тому

      Hi Anton, To directly calculate CPU usage as displayed in the Performance Monitor (typically as a percentage), you generally need to access system-level APIs or utilities that provide this information. Selenium itself doesn't have built-in capabilities for monitoring CPU usage because it's focused on browser automation rather than system monitoring.

  • @darlansantoscarvalho6619
    @darlansantoscarvalho6619 26 днів тому

    What a fantastic job, mate. Here from Brazil and that´s the best tutorial, just love <3

    • @LambdaTest
      @LambdaTest 26 днів тому

      Glad you liked it! Please subscribe the channel for more such videos🙂

  • @gauravgulati5490
    @gauravgulati5490 26 днів тому

    Loved the Video Kaushik! Just a quick query, could you refer me to the video in which you explained the getting xpath concept? I didn't seem to really get that how we copied that. Would really appreciate that! THANK YOU!

    • @LambdaTest
      @LambdaTest 21 день тому

      Hey @gauravgulati5490 , Glad you enjoyed the video. For understanding the concept of getting XPath, you can check out this video: ua-cam.com/users/liveXx9gCdnxHeo As, we don't have any specific video by Koushik on this. You can also go through this blogs: www.lambdatest.com/blog/complete-guide-for-using-xpath-in-selenium-with-examples/

  • @nileshnikumbhe8313
    @nileshnikumbhe8313 27 днів тому

    Short and sweet good luck bro. Love from India

    • @LambdaTest
      @LambdaTest 26 днів тому

      Glad you liked it! Please subscribe the channel for more such videos🙂

  • @luizarruda2246
    @luizarruda2246 27 днів тому

    My gosh, it's too complicated. I'll try to get a mac mini instead. More easier. 🤷‍♂

    • @LambdaTest
      @LambdaTest 22 дні тому

      Hi Luiz, Could you let us know the challenge you're facing?

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

    Hello sir, I am trying to open new tab by using below code but is not open. page.waitForPopup(() -> { page.click("a[target='_blank']"); }); note: here i am getting page from thread local please is help in this. Thank you.

  • @deepali8293
    @deepali8293 Місяць тому

    good pod

  • @tetianadiachuk2256
    @tetianadiachuk2256 Місяць тому

    Thank you so much! It was very helpful. Good luck!

    • @LambdaTest
      @LambdaTest Місяць тому

      Glad you liked it! Do subscribe the channel for more such videos.😀

  • @SeryKotyara
    @SeryKotyara Місяць тому

    А без джуса никак?

    • @LambdaTest
      @LambdaTest Місяць тому

      Hi, Didn't get the context. Could you please elaborate more on this?

  • @Iamrocky1999
    @Iamrocky1999 Місяць тому

    Hi Koushik I have a query I have three tests in a file named ty.spec.ts namely two one One two one don2 two one I need to run only test “two one” I am getting error if I use pattern match. Please help . I want to run through command line . Using macOS

    • @LambdaTest
      @LambdaTest Місяць тому

      Given the similar naming of your tests, it's possible the pattern is matching more than one test. Here’s how you can more specifically target the test "two one" in Playwright, especially when using macOS: Use the Exact Match Flag in Playwright: Playwright's test runner allows you to specify an exact name match or a pattern. Since your tests have similar names, you should use a regex pattern that matches the exact test name to avoid ambiguity. To run just the "two one" test and not any test that contains "two one", you can modify the command like this: npx playwright test --grep '^two one$' ty.spec.ts Here, ^ denotes the start of the string, and $ denotes the end of the string, ensuring that only the test exactly matching "two one" is selected. Ensure You're in the Correct Directory: Before running the command, make sure you're in the directory that contains your ty.spec.ts file, or provide the correct path to the file. Check for Typos and Syntax: Errors can also come from typos in your command or in the test name within your file. Verify that everything is spelled correctly and that you're using the right syntax for your test runner configuration. Review Error Messages: The error message you receive can give clues about what's going wrong. If it’s a syntax error or a configuration issue, adjusting your Playwright setup or command line syntax might be necessa

  • @dustybasement9062
    @dustybasement9062 Місяць тому

    Best video about Jenkins out there for sure. I have been trying to get why it is really imposrtant for devops teams and you made me get it in a 6minute youtube video. Thank you very much and all my respect to you.

    • @LambdaTest
      @LambdaTest Місяць тому

      Thank you so much for your kind words! We're thrilled to hear that the video was helpful and clarified the importance of Jenkins for DevOps teams. It’s always great to know that the content is making a difference and helping others in their journey. If you have any more questions or need further insights on Jenkins or DevOps practices, feel free to reach out or suggest more topics you’d like to see covered in future videos. Your support and feedback are truly appreciated! ❤️

  • @luckytima2315
    @luckytima2315 Місяць тому

    your xpath not working

    • @LambdaTest
      @LambdaTest Місяць тому

      Could you please provide more details about the issue you're facing with the XPath, please reach us out support@lambdatest.com

  • @kshwetainit
    @kshwetainit Місяць тому

    ​ @LambdaTest Thank you Kaushik for the reply. This query is related to my last question where I've asked about script for multiple logins with different credentials and running then parallelly like a load test. can you please help me to understand where I should write this code ? In my script I have created pages for every functionality and also created one testconfig.ts file where I am passing environment and common credentials for the login (pasting the test config code below) ------------------------------------------------------------------------------------- import { PlaywrightTestConfig } from "playwright/test"; const environments = { prodICC: { }, stagingICC: { baseURL: `test.com.au/Login.aspx`, emailId: "ron@jarvin.com.au", password: "Testing1!", }, }; export const testConfig = environments[process.env.ENV]; --------------------------------------------------------------------- And for Login I have added one page Login.test.ts and code in that is as pasted below: import { Page, BrowserContext, Locator, expect } from '@playwright/test'; import { testConfig } from "testConfig"; export class LoginPage { readonly page: Page; readonly context: BrowserContext; readonly emailId: Locator; readonly password: Locator; readonly loginButton: Locator; constructor(page: Page, context: BrowserContext) { this.page = page; this.context = context; this.emailId = page.locator('[id="UserName"]'); this.password = page.locator('[id="MainText_authentication_LoginUser_Password"]'); this.loginButton = page.locator('[id="MainText_authentication_LoginUser_LoginButton"]'); } async navigateToURL(): Promise<void> { //const baseURL = testConfig.baseURL; await this.page.goto(testConfig.baseURL); } async loginToApplication(): Promise<void> { const decipherPassword = await webActions.decipherPassword(); await this.emailId.fill(testConfig.emailId); await this.password.fill(testConfig.password); await this.loginButton.click(); } } I tried to write the code in Login.test.ts but getting error for credentials declaration or for some async error. If you can guide me what would be the best place to add the code for multiple login it will be really helpful. Thank you :)

    • @LambdaTest
      @LambdaTest Місяць тому

      Your current setup with a testConfig.ts for environment configurations and a LoginPage class for handling the login functionality is on the right track. Here's how you can modify your approach to handle multiple logins with different credentials running in parallel: 1. Create a New Configuration File for Credentials: Instead of modifying testConfig.ts, consider creating a separate configuration file that holds an array of credentials. This helps in managing multiple users more efficiently. 2. Modify Your LoginPage to Accept Credentials: Change your login methods to accept credentials as parameters rather than pulling from a config. This will allow you to use the same login page logic for multiple users. 3. Use Playwright's Promise.all for Parallel Execution: Utilize JavaScript's Promise.all to run login actions in parallel. This function can be used to handle multiple promises (logins in this case) simultaneously. Here’s an example approach to structuring your code: Create a Separate Credentials File: Define an array of user credentials in credentialsConfig.ts. // credentialsConfig.ts export const users = [ { emailId: "user1@example.com", password: "password1" }, { emailId: "user2@example.com", password: "password2" }, ]; Modify LoginPage Class: Update the LoginPage class to accept credentials dynamically for the login function. // LoginPage.ts import { Page, Locator } from '@playwright/test'; export class LoginPage { readonly page: Page; readonly emailId: Locator; readonly password: Locator; readonly loginButton: Locator; constructor(page: Page) { this.page = page; this.emailId = page.locator('[id="UserName"]'); this.password = page.locator('[id="Password"]'); this.loginButton = page.locator('[id="LoginButton"]'); } async loginToApplication(email: string, password: string): Promise<void> { await this.emailId.fill(email); await this.password.fill(password); await this.loginButton.click(); } } Implement Parallel Logins: Use Promise.all in your test file to run multiple logins at the same time. // login.test.ts import { test } from '@playwright/test'; import { LoginPage } from './LoginPage'; import { users } from './credentialsConfig'; test('multiple logins', async ({ browser }) => { const page = await browser.newPage(); const loginPage = new LoginPage(page); const loginPromises = users.map(user => loginPage.loginToApplication(user.emailId, user.password) ); await Promise.all(loginPromises); // Executes all logins in parallel });

    • @kshwetainit
      @kshwetainit 25 днів тому

      Thank you Kaushik for your reply. It helped me a lot.

    • @kshwetainit
      @kshwetainit 25 днів тому

      ​ @LambdaTest Thanks a ton for helping me in my scripting journey. I have added the code in my script as you have suggested above, And when I have executed that script it is passing all the given email address in EmailId field onetime only like: ********Email : test1@test.com test2@test.com test3@test.com test4@test.com test5@test.com*************** It didn't enter the email address one by one to the field and complete the process I suspect something wrong happened in loginTesting.test.ts file code(which is as shown below only gave the name Loadtesting to the page) import test from '@lib/BaseTest'; import { LoadTestingPage } from 'pageRepo/LoadTestingPage'; import { users } from 'credentialsConfig'; test(`Test multiple Logins to ICC through playwright`, async ({ loadTestingPage, browser }) => { await test.step(`Navigate to URL`, async () => { await loadTestingPage.navigateToURL(); }); await test.step('Login to the applicaiton', async() =>{ const loginPromises = users.map (user => loadTestingPage.loginToApplication1(user.emailId, user.Password) ); await Promise.all(loginPromises); }); }); ------------------------------------ And below is my LoadTestingPage.ts file import { Page, BrowserContext, Locator, expect } from '@playwright/test'; import { testConfig } from 'testConfig'; export class LoadTestingPage { readonly page: Page; readonly context: BrowserContext; readonly emailId: Locator; readonly password: Locator; readonly loginButton: Locator; constructor(page: Page, context: BrowserContext) { this.page = page; this.context = context; this.emailId = page.locator('[id="UserName"]'); this.password = page.locator('[id="MainText_authentication_LoginUser_Password"]'); this.loginButton = page.locator('[id="MainText_authentication_LoginUser_LoginButton"]'); } async navigateToURL(): Promise<void> { //const baseURL = testConfig.baseURL; await this.page.goto(testConfig.baseURL);} async loginToApplication1(email: string, password: string): Promise<void> { await this.emailId.fill(email); await this.password.fill(password); await this.loginButton.click(); } } I tried to explore 'Promise.all' on internet but couldn't find the way to correct my error. Can you please help me to understand what I'm doing wrong here ? and how can I edit my script to pass credentials one by one in fields. Thanks again :)

    • @LambdaTest
      @LambdaTest 22 дні тому

      Hi Shweta, The issue with your code seems to be related to how the email addresses are being entered into the emailId field. When you use Promise.all, all the promises are executed concurrently. If the browser context or the page is shared, this could lead to unexpected behavior where multiple email addresses are entered into the field at the same time or in a mixed-up manner.

  • @ktb1381
    @ktb1381 Місяць тому

    Thanks. The only problem I have with them is that people write these commands and when there are problems when you are running the tests in the browser you're taken to the line in the command. So then you have to look up and try to figure out which call caused the problem. If you didn't have the command, the line number shown would be the one from your actual test that failed.

    • @LambdaTest
      @LambdaTest Місяць тому

      Thank you for sharing your feedback! We understand your concern about identifying the exact test that failed when using commands in your test scripts. To pinpoint test failures more easily, consider using descriptive comments or names in your test scripts. This helps you quickly identify the problematic test. You can also use some testing tools that offer features like stack traces or highlighting failing commands for a better error-reporting system and debugging process.

  • @nachojimenez2420
    @nachojimenez2420 Місяць тому

    this is fantastic material delivered in the most boring unengaging way possible. Good luck on falling asleep.

    • @LambdaTest
      @LambdaTest Місяць тому

      Thank you for taking the time to share your feedback. We're sorry to hear that you found the material unengaging. We always strive to improve and provide content that is both informative and engaging. Your feedback is valuable, and we will take it into consideration for future content. If you have any specific suggestions on how we can make the material more engaging, we would love to hear them. Thank you again for your feedback!

  • @cone9380
    @cone9380 Місяць тому

    Can we just create new test cases on Lambdatest platform without subscription ?

    • @LambdaTest
      @LambdaTest Місяць тому

      Hey, As of now, we don't offer support for creating new test cases. Our features are geared towards executing and managing test automation, which requires an account.

  • @danielkovacs3664
    @danielkovacs3664 Місяць тому

    The signature '(options: ConnectOptions & { wsEndpoint?: string; }): Promise<Browser>' of 'chromium.connect' is deprecated.ts(6387) status alltime is cancelled, although the test is passed

    • @LambdaTest
      @LambdaTest Місяць тому

      Hey Daniel, We recommend you check the configuration of your test runner or test framework to ensure it's set up correctly to handle test execution and reporting. There might be configuration options related to test statuses and handling of asynchronous operations.

  • @danielkovacs3664
    @danielkovacs3664 Місяць тому

    hi i can see my test passed in the cloud, bur th status is cancelled everytime do u have any idea why?

    • @LambdaTest
      @LambdaTest Місяць тому

      Hey Daniel, Sometimes, network connectivity issues can cause tests to be cancelled. Check your network connection to ensure it's stable and that there are no firewalls or other network restrictions interfering with the test execution.

  • @kshwetainit
    @kshwetainit Місяць тому

    Hi Kaushik, Hope you are doing well! As always Thank you so much for your videos :) This time I wanted to ask is - How we can run one test case with multiple different logins parallelly in Playwright with typescript(kind of load testing)

    • @LambdaTest
      @LambdaTest Місяць тому

      Hi there, We're glad to hear from you, and it's wonderful that you're finding the videos helpful! Running a test case with multiple different logins simultaneously in Playwright with TypeScript can indeed simulate a form of load testing and is great for testing how your application handles concurrent sessions. Here’s a basic outline of how you can achieve this: Use Test Parameterization: Playwright Test allows you to run parameterized tests. You can define multiple test scenarios with different login credentials. Here’s a simple example: // Define multiple credentials const credentials = [ { username: 'user1', password: 'pass1' }, { username: 'user2', password: 'pass2' }, // Add more credentials as needed ]; // Parameterized test credentials.forEach(cred => { test(`Login test for ${cred.username}`, async ({ page }) => { await page.goto('your-app.com/login'); await page.fill('input#username', cred.username); await page.fill('input#password', cred.password); await page.click('text=Login'); // Add assertions and further actions here }); });

  • @NithidayaSJ
    @NithidayaSJ Місяць тому

    Simple.. and very detailed... excellent ... very helpful..

    • @LambdaTest
      @LambdaTest Місяць тому

      Glad you liked it! Please subscribe the channel for more such videos🙂

  • @NithidayaSJ
    @NithidayaSJ Місяць тому

    Very clear... Thanks... It helps a lot...😊

  • @Brynjar1
    @Brynjar1 Місяць тому

    very nice

    • @LambdaTest
      @LambdaTest Місяць тому

      Glad you liked it! Please subscribe the channel for more such videos🙂

  • @latifjarir
    @latifjarir Місяць тому

    Thank you lambda test

    • @LambdaTest
      @LambdaTest Місяць тому

      Glad the video was helpful! Please subscribe the channel for more such videos🙂

  • @shamax2201
    @shamax2201 Місяць тому

    Thank you!

    • @LambdaTest
      @LambdaTest Місяць тому

      Glad the video was helpful! Please subscribe the channel for more such videos🙂

  • @dnnnyxdxdxd4608
    @dnnnyxdxdxd4608 Місяць тому

    i Like the hat, you are like young 50 cent as a QA

  • @LambdaTest
    @LambdaTest Місяць тому

    📍𝐆𝐢𝐭𝐇𝐮𝐛 𝐋𝐢𝐧𝐤: github.com/john190501/hyp-matrix-mode