TestRover
TestRover
  • 17
  • 19 822
Playwright BDD | Mastering Hooks | Playwright test runner | Fixtures | Setup
This is Github link: github.com/TestRoverAutomation/Playwright-BDD-Automation
Tutorial 1 ua-cam.com/video/7neceStpHp4/v-deo.htmlsi=3RGD2SCrYnv8YEkH
Tutorial 2 ua-cam.com/video/ECqgynC_350/v-deo.htmlsi=yeu2lz-nxoWKwVqJ
Tutorial 3 ua-cam.com/video/j6nmcxdGCy8/v-deo.htmlsi=8TdkEAmQgwbbg4-X
Are you looking to enhance your Playwright test automation skills? In this video, I provide a comprehensive Playwright BDD tutorial with a focus on using hooks to streamline your test processes. Whether you’re a QA engineer or a test automation developer, mastering these concepts is key to writing efficient and maintainable tests.
🚀 What You’ll Learn in This Playwright BDD Hooks Tutorial:
Playwright and BDD Integration: Learn how to combine Playwright with Behavior-Driven Development (BDD) for writing clear and structured tests that are easy to maintain.
Understanding Playwright Hooks: Discover the power of hooks like Before, After, BeforeAll, and AfterAll to manage test setup and teardown processes efficiently.
Playwright Configuration Best Practices: Explore the best practices for configuring your Playwright setup to work seamlessly with BDD, including environment setup, parallel execution, and device/browser testing configurations.
Real-World Application of Hooks: See how to apply hooks in real-world scenarios to manage test environments, handle test data, and ensure consistent test execution.
🔑 Why Hooks Are Essential in Playwright BDD:
Hooks are critical for controlling the lifecycle of your tests, ensuring that each test starts with a clean and consistent environment. By effectively using hooks, you can reduce test flakiness and improve the reliability of your automation framework.
🎯 Who Should Watch:
This video is perfect for:
QA Engineers looking to implement BDD with Playwright.
Test Automation Developers aiming to optimize their test suites using hooks.
Software Testers interested in mastering Playwright for end-to-end testing.
📈 Boost Your Testing Efficiency:
By the end of this tutorial, you’ll have a clear understanding of how to integrate hooks into your Playwright BDD framework, leading to more efficient and reliable test automation.
🔍 Keywords:
Playwright BDD, Playwright Hooks, Test Automation with Playwright, Playwright BDD Configuration, Hooks in Playwright, Behavior-Driven Development Testing, End-to-End Testing with Playwright, Playwright Test Automation Best Practices
📌 Don’t Forget:
Like, Share, and Subscribe: If you find this video helpful, make sure to give it a thumbs up, share it with your network, and subscribe to the channel for more in-depth tutorials on test automation.
Ask Questions: Have any questions or need further clarification? Drop them in the comments below, and I’ll be happy to help!
#PlaywrightBDD #TestAutomation #PlaywrightHooks #SoftwareTesting #QA #JavaScript #EndToEndTesting
Переглядів: 500

Відео

Playwright BDD | Playwright BDD Upgrade | Glue Feature and Steps | Easy Debug | Only Feature
Переглядів 4102 місяці тому
Upgrading Playwright-BDD from v6.0.3 to v7.2.2 | Configuration Updates & Enhanced Navigation in VSCode github.com/TestRoverAutomation/Playwright-BDD-Automation In this video, I'm excited to guide you through the essential steps of upgrading your Playwright-BDD framework from version 6.0.3 to the latest 7.2.2. This upgrade is crucial for those who want to stay up-to-date with the latest features...
Playwright bdd | Advanced Storage State Management | Reusing Cookies Playwright | Playwright runner
Переглядів 4893 місяці тому
Github link : github.com/TestRoverAutomation/Playwright-BDD-Automation Links to Environment variable : ua-cam.com/video/X_GHi4SEqWA/v-deo.html Are you ready to elevate your automated testing skills? Dive into this comprehensive tutorial where we build a powerful Playwright BDD framework from the ground up! Whether you're a beginner or an experienced tester, this video will provide you with the ...
PLaywright bdd | Login with Storage state | Setup Authentication | Playwright test runner
Переглядів 7676 місяців тому
Github link: github.com/TestRoverAutomation/Playwright-BDD-Automation Are you tired of the repetitive login steps before each test case in your Playwright BDD tests? In this video tutorial, I'll show you how to leverage StorageState to streamline your testing process and optimize your test cases for efficiency. We'll start by diving into the basics of StorageState and how it can be used to pers...
Playwright BDD | Dynamic Object Loading | Dynamic import | Reduce Code
Переглядів 5906 місяців тому
Github link: github.com/TestRoverAutomation/Playwright-BDD-Automation In the world of test automation, efficiency and simplicity are paramount. Writing and maintaining test scripts often involves repetitive tasks such as importing page objects and creating new instances of them. However, with dynamic object creation and dynamic imports, we can significantly reduce boilerplate code and streamlin...
Mastering Multi-Environment | Playwright BDD | Test Only BDD | Playwright Fixture | PageObjectModel
Переглядів 8256 місяців тому
Github link: github.com/TestRoverAutomation/Playwright-BDD-Automation In this comprehensive UA-cam tutorial, delve into the intricate world of handling multiple environments effortlessly using Playwright with a Behavior-Driven Development (BDD) approach. This step-by-step guide equips you with the skills to seamlessly navigate through development (dev), quality assurance (QA), and production (p...
Playwright BDD | Playwright Fixture | New Feature | Tag Feature | POM | JavaScript
Переглядів 7807 місяців тому
Github link: github.com/TestRoverAutomation/Playwright-BDD-Automation Join me in this in-depth tutorial where I'll guide you through mastering Playwright, the robust testing framework. In this comprehensive walkthrough, I'll demonstrate an end-to-end feature on editing information using Behavior-Driven Development (BDD) principles. Follow along as I meticulously design a feature file for changi...
Playwright BDD | Playwright Fixtures | Page Object Model | JavaScript | Playwright Test Runner
Переглядів 1,8 тис.7 місяців тому
In this comprehensive Playwright JavaScript with BDD tutorial, you'll delve into the essential process of verifying user login functionality on an e-commerce website hosted on LambdaTest's playground. Whether you're a beginner or an experienced developer, this step-by-step guide will walk you through the implementation of Playwright BDD (Behavior-Driven Development), integrated with page object...
PLaywright BDD | Playwright Test Runner | Scenario Outline | POM | Playwright Fixtures
Переглядів 1,4 тис.7 місяців тому
Github link: github.com/TestRoverAutomation/Playwright-BDD-Automation In this comprehensive Playwright JavaScript tutorial, we delve into the essential process of verifying user login functionality on an e-commerce website hosted on LambdaTest's playground. Whether you're a beginner or an experienced developer, this step-by-step guide will walk you through the implementation of Playwright BDD (...
Playwright BDD | Playwright Test Runner | POM | Playwright Fixtures
Переглядів 5 тис.7 місяців тому
Github link: github.com/TestRoverAutomation/Playwright-BDD-Automation 🎭 Dive into the captivating world of playwright and cucumber Join us on a theatrical journey as we explore the intersection of drama and development with Behavior-Driven Development (BDD). Discover how playwrights and developers collaborate to script compelling narratives and ensure software functionality in this engaging vid...
🚀 Deploy Playwright Test Reports to Netlify with GitHub Actions! 🛠️ | Cross-Browser Testing
Переглядів 2217 місяців тому
Welcome to my latest UA-cam tutorial! In this video, I will show you how to effortlessly deploy your Playwright test reports to Netlify using GitHub Actions. 🎬 Automated testing just got easier with Playwright, and now you can take it a step further by seamlessly sharing your test results with your team or stakeholders using Netlify. 🔐 Learn how to obtain your Netlify authentication token secur...
End to End Testing | Share Storage State | DDT | Deploy Report
Переглядів 1277 місяців тому
Netlify Report: test-rover-automation-report.netlify.app/ Welcome to our latest UA-cam tutorial where we delve into the intricacies of end-to-end testing, focusing on shopping item scenarios and beyond! 🛒💻 In this video, we'll walk you through the entire process, from creating test cases to modifying them for efficient testing, and finally deploying comprehensive reports for stakeholders and co...
Playwright Login with Storage State | Data Driven | Framewor
Переглядів 1907 місяців тому
📝 Description: In this video, I walk you through a robust automation script leveraging Playwright to seamlessly navigate through an e-commerce dashboard. 💻 We dive into the code, demonstrating how to efficiently authenticate using stored credentials, thus bypassing manual login steps. 🗝️ Additionally, I showcase a framework-style approach, steering clear of hardcoded test cases for enhanced sca...
Playwright Data Driven Part2 | Debug | Hover action | Fixtures
Переглядів 1437 місяців тому
In this tutorial, 🎬 embark on an immersive reusing journey into the realm of Playwright testing for web applications using JavaScript. We'll guide you through a comprehensive, step-by-step approach to conducting robust login tests with Playwright. From 🌐 seamlessly navigating to login pages to meticulously verifying successful logins and adeptly handling unsuccessful attempts, we leave no stone...
Playwright Data Driven Framework
Переглядів 2,9 тис.7 місяців тому
In this tutorial, 🎬 I will delve into Playwright testing for web applications using JavaScript. We'll explore a step-by-step guide on how to conduct login tests with Playwright, ensuring robust functionality. From 🌐 navigating to login pages to verifying successful logins and handling unsuccessful attempts, we cover it all. Dive into the world of Playwright and enhance your testing skills today...
Playwright.config.js | In-Depth Tutorial | How to Run Test Cases with Tags and Grep
Переглядів 2,4 тис.Рік тому
Playwright.config.js | In-Depth Tutorial | How to Run Test Cases with Tags and Grep
Playwright Automation: Introduction and Setup Guide with ESLint and Husky
Переглядів 1,1 тис.Рік тому
Playwright Automation: Introduction and Setup Guide with ESLint and Husky

КОМЕНТАРІ

  • @PramodGurudath
    @PramodGurudath 7 днів тому

    When you add the next video can you please cover how to use Storage State in BeforeAll hook

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

    Please provide the next lecture with before all..

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

    Hi i am not able to use beforeAll hooks..and facing this issue "worker fixture can not depend on a test fixture. How to resolve..kindly help

    • @Test-Rover-Automation
      @Test-Rover-Automation 7 днів тому

      Hi Sunny can invoke your page like this way Before(async({page})=>{ await page.goto('ecommerce-playground.lambdatest.io/') }); it should work, there is still some work need to be done for hooks

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

    Hi I am using globalSetup: './src/utils/getToken.js', in the playwright configuration file which will generate the token and leverage across scripts By doing the above steps , the token which gets generated will be applicable only for the user with specific role say R1 , if I have to generate the token for users with Role R2 , how do I do it considering the fact that I would be needing to generate two token for R1 and R2 roles users Please help

  • @madhugmuthyam
    @madhugmuthyam 14 днів тому

    Hi even after restart the vscode its not working for me, it says the steps are not defined, I followed everything you mentioned though

  • @madhugmuthyam
    @madhugmuthyam 15 днів тому

    Hi I'm getting PageClass is not a constructor error: TypeError: PageClass is not a constructor at ..\tests\fixtures\fixture.js:7 5 | 6 | const createTestFunction = (PageClass) => async ({page}, use) =>{ > 7 | await use(new PageClass(page)); | ^ 8 | } Its the Javascript code

    • @madhugmuthyam
      @madhugmuthyam 14 днів тому

      Sorry my bad, for me the classname is different SO, it throwed me that error. Once I fixed that and gave the right names evrywhr it resolved my issue

  • @anilmadishetty
    @anilmadishetty 15 днів тому

    Thanks alot i am learning lot of playwright stuff here, i have one question in Playwright without using bddgen command is there any other way to linkup feature file with stepdinition ?

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

    Why methods are NOT auto populating when typing dot after a pageClassObject . Example ecomLoginPage.

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

    One suggestion: Kindly provide all the commands and feature file or doc links that you're using or showcasing during the tutorial. Thanks

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

    Couldn’t stick both features and step definitions even after following each steps….can you please guide me on this.

    • @Test-Rover-Automation
      @Test-Rover-Automation 23 дні тому

      Can you please provide your steps file in setting.json , with attribute "cucumberautocomplete.steps": ["tests/steps/*.js"] and after this restart your vscode hope this will resolve the issue

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

    Thanks for dynamic loading but for my JS code i am getting error for fiture.js--> TypeError: PageClass is not a constructor at ..\tests\fixtures\fixtures.js:25 23 | 24 | const createTestFunction = (PageClass) => async ({page}, use) =>{ > 25 | await use(new PageClass(page)); | ^ 26 | }

    • @Test-Rover-Automation
      @Test-Rover-Automation 24 дні тому

      Can you share your code with git link I would have a look as when you define PageClass like this it as value as any, and every class has it own constructor so not sure why you getting, here is my tyscript code for this const createTestFunction = <T extends new (page: Page) => InstanceType<T>>(PageClass: T) => ( { page }: { page: Page }, use: (fixture: InstanceType<T>) => Promise<void> ) => use(new PageClass(page));

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

    Nice BDD fraework, thanks.. Here without --debug my script is not running with inspector, did you change any settings ?

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

    after using autocomplete steps in glue option, i am getting undefined steps, steps are not properly binding with features file

    • @Test-Rover-Automation
      @Test-Rover-Automation 23 дні тому

      Can you please provide your steps file in setting.json , with attribute "cucumberautocomplete.steps": ["tests/steps/*.js"] and after this restart your vscode hope this will resolve the issue

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

    Why my 'ecomlogin.feature' still showing warning messages- Undefined for steps even after successful run

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

    @Test-Rover-Automation nice playlist. Is there a way to run features which have tags? Just like how we runs tests with certain tags(eg. nom run test --tag=@login in cucumber.

    • @Test-Rover-Automation
      @Test-Rover-Automation 29 днів тому

      Hi please review this video I have explain how to run the tags ua-cam.com/video/2YChXd8s_nc/v-deo.htmlsi=LlfQuwT3zLT1p9s3

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

    My steps can not acces the methods defined in the in ecomLoginObj js file

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

      Can you please help😢

    • @Test-Rover-Automation
      @Test-Rover-Automation Місяць тому

      Hi may I know which version you are on for playwright bdd, you also have to do config in playwright config.js file

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

      ⁠@@Test-Rover-Automation I am using 1.47.2. I have added the changes on playwright.config.js as per the video

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

      @@Test-Rover-AutomationI think the issue ecomLoginPage from fixture.js is not accessing the methods in ecomLoginObj.js file I have followed every step and done the import

    • @Test-Rover-Automation
      @Test-Rover-Automation Місяць тому

      @@siphahlenomnganga6676 Hi I a have add the Git Repo for reference you can follow it thank you

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

    Great work man I am learning

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

    Hello, could you let me know how can I use the class objects created in fixtures in Hooks?? Scenario would be i want to execute a method from login page object created in fixtures into before hooks for the scenario contains tag xyz

    • @Test-Rover-Automation
      @Test-Rover-Automation Місяць тому

      Hi you can implement same logic like import base test inside hooks and and access it with fixture something like this import { chromium, firefox } from '@playwright/test'; import { createBdd } from 'playwright-bdd'; import { test } from '../fixtures/fixture'; const { Before, After, BeforeAll, AfterAll, } = createBdd(test); Before(async({page, ecomLoginPage})=>{ // await page.goto('ecommerce-playground.lambdatest.io/') await ecomLoginPage.navigateToUrl('ecommerce-playground.lambdatest.io/') }); After(async()=>{ console.log("This is a After.") }); BeforeAll(async({browser})=>{ const page = firefox.launch(); }); AfterAll(async()=>{ console.log("This is a AfterAll.") });

  • @Renuk-e9f
    @Renuk-e9f Місяць тому

    Please post the next video

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

    Hi Pranav, thanks for detail videos, they are very helpful. Tutorial 3 is missing, can you upload that please?

  • @MaxBezhenar-y1m
    @MaxBezhenar-y1m Місяць тому

    This is the best Playwright tutorial I have ever seen! Thank you!

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

    Hi, your tutorial is very helpful. Can we achieve test.only and test.skip through BDD?

    • @Test-Rover-Automation
      @Test-Rover-Automation Місяць тому

      Yes you can please review this video here ua-cam.com/video/X_GHi4SEqWA/v-deo.htmlsi=xbkJHBCQ7aY8FKcW

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

    great set of videos and knowledge, thank you so much. For the next session can you please focus on deckerazation and gitlab integration

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

    Could you please share video's for taking locator's from Shadow Root DOM. In that teach us to take nested element capture

  • @Lucky-yg3hq
    @Lucky-yg3hq Місяць тому

    Hi, will you please explain how to use 'Fekers' to generate the random data instead of hot coding and some of the utils if possible?

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

    Really appreciated! But when you used scenario outline for data driven followed by Example key, So can we used this data from excel sheet? if yes can you pls help us how can we approach that?? TIA

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

    Hi your videos are so helpful guess you have missed reporting part how to generate cucumber- html - reporter

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

    Could you please clarify one doubt? Whether we want to introduce try catch blocks for writing reusable functions in playwright?

    • @Test-Rover-Automation
      @Test-Rover-Automation Місяць тому

      Hi I am really not sure where you want to introduce the try and catch block, in fixture or page object class, but yes it is good practice to write try and catch block where necessary, otherwise there will be lots of boiler plate in code

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

      Thanks for your update

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

    This playlist is very informative. Thanks a lot for your videos

  • @Lucky-yg3hq
    @Lucky-yg3hq Місяць тому

    Hi, Thank you for the informative video. I have two questions: 1)What is the purpose of a spec file, and is it mandatory? I am confused about the "npx bddgen" command. Initially, it creates the missing steps, which is clear. However, why do we need to rerun it during execution? Is it mandatory to run this command at execution time? 2) Should we proceed with passing the URL in the config file without creating the env folder?

    • @Test-Rover-Automation
      @Test-Rover-Automation Місяць тому

      Hi Lucky 1) npx bddgen is the command to generate playwright test files, so when you run this command you will notice a .feature-gen folder on your project level when you open this folder you see a spec files as per playwright requirement, So basically we are converting our bdd files to playwright test files and run the playwright test files. So npx bddgen command is mandatory 2) Yes you can pass base url in config file, this one is just to show how we can run same test on different build like production, QA, Development I hope I have answered your question, still if you need any help ping me Thank you

  • @ThinushaGunasekara
    @ThinushaGunasekara 2 місяці тому

    Your tutorials are very helpful. can you make tutorials in API testing in playwright BDD as well

  • @jaswantpadyala
    @jaswantpadyala 2 місяці тому

    Hi bro in terminal after entering npx bddgen getting error S D:\Playwright-BDD framework> npx bddgen Error: No BDD configs found. Did you use defineBddConfig() in playwright.config.ts?

  • @jessytalasani
    @jessytalasani 2 місяці тому

    can you please do video on plywright api test using bdd?

    • @Test-Rover-Automation
      @Test-Rover-Automation 2 місяці тому

      Sure will soon do till next week I will post it thank you for your suggestion

  • @umesh1056
    @umesh1056 2 місяці тому

    Great video,quite helpful

  • @manoellopes
    @manoellopes 2 місяці тому

    Amazing content my friend :)

  • @phatle4855
    @phatle4855 2 місяці тому

    thanks sir.

  • @sunnymayank4274
    @sunnymayank4274 2 місяці тому

    When i am trying to run my feature file using npx bddgen; npx playwright test --reporter=html,list....then the example.spec.js is running

    • @Test-Rover-Automation
      @Test-Rover-Automation 2 місяці тому

      Hi Can you please provide your code, I can have a look send me git link of email me at testroverautomation@gmail.com

  • @umesh1056
    @umesh1056 2 місяці тому

    Please let me know if you are maintaining this code in github , If yes please share the github URL Thanks

    • @Test-Rover-Automation
      @Test-Rover-Automation 2 місяці тому

      Hi here is the code github.com/TestRoverAutomation/Playwright-BDD-Automation

  • @sunnymayank4274
    @sunnymayank4274 2 місяці тому

    Hi, if i am giving command > npx bddgen then i am getting error no BDD configs found. But i have done the same steps which is in the video. Kindly help

    • @Test-Rover-Automation
      @Test-Rover-Automation 2 місяці тому

      Hi there may I please know which version of Playwright BDD you are using , you can try using "playwright-bdd": "^7.2.2", you don't need cucumber dependancy if you are using this version and in Playwright you need to configure something like this const testDir = defineBddConfig({ features: 'tests/features/***.feature', steps: ['tests/steps/***steps.js', 'tests/fixtures/fixture.js' ] }); Very soon I will post the video for this update Thank you

    • @sunnymayank4274
      @sunnymayank4274 2 місяці тому

      Yeah resolved for me thank you..but please update the latest with 7.2.2.

    • @kavyapulapaka4357
      @kavyapulapaka4357 2 місяці тому

      @@sunnymayank4274 Hi, how you resoled this? I too facing the same issue

    • @shireeshapalathuri1114
      @shireeshapalathuri1114 2 місяці тому

      Did you overcome the issue? Am still facing the same​@@kavyapulapaka4357

    • @Test-Rover-Automation
      @Test-Rover-Automation 2 місяці тому

      Hi Please review this video here ua-cam.com/video/E6TyDaLa3Xk/v-deo.html hope this will sort all your problems thank you

  • @Renuk-e9f
    @Renuk-e9f 3 місяці тому

    Please provide some examples for tables. How to get rows and columns for table

  • @Renuk-e9f
    @Renuk-e9f 3 місяці тому

    In bdd cucumber framework how to debug the 'code ?

    • @Test-Rover-Automation
      @Test-Rover-Automation 3 місяці тому

      Hi please give a break point by giving await page.pause() in step defination file where you nee it thank you explained in 1st video and 2nd video

  • @logeshwarangopalakrishnan4825
    @logeshwarangopalakrishnan4825 3 місяці тому

    Hi , have you tried using hooks with this framework? I tried it kind of not working for me. Could you please share your thoughts on hooks

    • @Test-Rover-Automation
      @Test-Rover-Automation 2 місяці тому

      Hi please check this video and stay tunned part two is coming soon ua-cam.com/video/JZHqUDxB5Ks/v-deo.html

  • @notmyname2027
    @notmyname2027 3 місяці тому

    Thanks for the video. What about playwright runner hooks as a separate file for setup and teardown

    • @Test-Rover-Automation
      @Test-Rover-Automation 3 місяці тому

      Yes you can do it just let your playwirght config file know the path place the file under steps folder here const testDir = defineBddConfig({ importTestFrom: 'tests/fixtures/fixture.js', paths: ['tests/features/***.feature'], require: ['tests/steps/***steps.js'] });

  • @notmyname2027
    @notmyname2027 3 місяці тому

    Thanks for the descriptive video 👍 I want to use cucumber, Playwright runner and typescript. Would i need to make any extra configs so that i can debug by stepping into the code of my feature and .ts files in vs code? In the feature file when I click on f12 on a step it doesn't take me to the respective step definition file

    • @Test-Rover-Automation
      @Test-Rover-Automation 3 місяці тому

      No you don't need any extra config you can run same config but the playwright bdd generated file would appear in JS format

    • @notmyname2027
      @notmyname2027 3 місяці тому

      ​@Test-Rover-Automation thanks but what about file linking? When I press F12 on one of the bdd lines in the feature file it doesn't go to the corresponding step definition.

  • @PriyankaRP-lv4on
    @PriyankaRP-lv4on 3 місяці тому

    Hi , I am following the your videos and currently working on framework. I am getting the following error after creating the fixure.js file.................Error: require() of ES Module D:\amazon ode_modules\chai\chai.js from D:\amazon\features\fixtures\fixture.js not supported. Instead change the require of chai.js in D:\amazon\features\fixtures\fixture.js to a dynamic import() which is available in all CommonJS modules.

    • @Test-Rover-Automation
      @Test-Rover-Automation 3 місяці тому

      This is a node error can you just delete your node modules folder and do npm install this might fix the issue

  • @channakeshava.p
    @channakeshava.p 3 місяці тому

    After adding a feature file, when I ran the npx bddgen to generate steps, the "No step definitions found!" console message is displaying

    • @Test-Rover-Automation
      @Test-Rover-Automation 3 місяці тому

      Please make sure you give path in playwrright config file here is the config file github.com/TestRoverAutomation/Playwright-BDD-Automation/blob/main/playwright.config.js

    • @Test-Rover-Automation
      @Test-Rover-Automation 3 місяці тому

      If your version is latest "playwright-bdd": "^7.0.0-1" than in playwright config file you need to provide const testDir = defineBddConfig({ features: ['ecomlogin.feature'], steps: ['ecomsteps.js'] }); from version 7 we have to provide it like this, still you facing issue please provide me code on testroverautomation@gmail.com or your git link I will have a look thank you

    • @channakeshava.p
      @channakeshava.p 3 місяці тому

      @@Test-Rover-Automation Thanks for your response. I shared the code to you email address. Please share the fix. Thanks

    • @Test-Rover-Automation
      @Test-Rover-Automation 3 місяці тому

      Please upgrade your project to "playwright-bdd": "^7.2.1"

  • @priyankaphalke9536
    @priyankaphalke9536 3 місяці тому

    I just started to learn the playwright cucumber bdd framework with javascript. I was searching on the internet about this framework with javascript, finally got on your channel. This is very helpful in my project work. This is a very good playlist and really helpful. Please post continuously.

    • @Test-Rover-Automation
      @Test-Rover-Automation 3 місяці тому

      Thank you for your feedback I am glad this framework help you in your project

  • @Renuk-e9f
    @Renuk-e9f 3 місяці тому

    Waiting for your videos

  • @note-dhan
    @note-dhan 3 місяці тому

    > npx bddgen No step definitions found! , after run this without step definition

    • @Test-Rover-Automation
      @Test-Rover-Automation 3 місяці тому

      Please try to upgrade your project to "playwright-bdd": "^7.2.1"

  • @TestAutomation-QuickasLint-n4j
    @TestAutomation-QuickasLint-n4j 3 місяці тому

    Excellent!!