#6 - Tags in

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • #CucumberBDD #LatestCucumberVideos #NaveenAutomationLabs
    In this video, I have explained different types Tags in Cucumber BDD framework.
    Cucumber tags can be used to execute the specific test cases on the basis of marked tags in feature file.
    Cucumber tags can be applied at Feature, Scenario, Scenario Outline level.
    Full Cucumber 6 latest 2020 videos - playlist: • Cucumber BDD Framework...
    ~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
    www.youtube.co...
    Follow me on my Facebook Page:
    / naveenqtpexpert
    Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
    t.me/joinchat/...
    Paid courses (Recorded) videos:
    naveenautomati...
    For Java & Selenium - naveenautomatio...
    For API (Manual + Automation) - naveenautomatio...

Комментарии • 44

  • @krishanuchakraborty3500
    @krishanuchakraborty3500 3 года назад +14

    How are you even managing your time @Naveen? You seriously need to give us some insights, highly inspired by you 🙏 Goes without saying, this new cucumber series is killer ❤️

    • @naveenautomationlabs
      @naveenautomationlabs  3 года назад +8

      Managing time is a secret :) But thank you for your kind words.

    • @user-yb2fc1ur6g
      @user-yb2fc1ur6g 3 года назад

      @@naveenautomationlabs U r an Inspiration for all of us

  • @jaishankar532
    @jaishankar532 3 года назад +3

    Brilliant! I was searching for this feature, thank you.

  • @biyasbanerjee7288
    @biyasbanerjee7288 2 года назад

    I appreciate the way you taught Naveen :) especially you give some small tip that is very useful. Thank you, Naveen.

  • @parthapramanik5330
    @parthapramanik5330 2 года назад +1

    Thanks @Naveen for the wonderful video. I was trying to execute test cases under a particular tag using -Dcucumber.options="--tags @tag1", but it was not working. -Dcucumber.filter.tags="@tag1" works perfectly as you mentioned this works with the latest version of cucumber. Thanks again.

  • @smsn-jq2zd
    @smsn-jq2zd 2 года назад

    Thank you naveen it's really helpful the tags are really important topic from cucumber and you have explain all the expression clearly..

  • @subhashreesahoo2233
    @subhashreesahoo2233 3 года назад +1

    Thank u sir, no words for your help 🙏...

  • @roshanravani5782
    @roshanravani5782 3 года назад +2

    Hey @Naveen can you make a video on new tools and technologies coming to the automation industry, 5 years down the line?

  • @krunalparekh5858
    @krunalparekh5858 3 года назад +1

    It’s amazing. Thank you Naveen sir. But how we can call scenario from different feature file in order through tag. I can see, when we are calling tags from different scenario it will run according to alphabetically.. Without hooks can we do that?? Right now I am in a project where i am facing this. Please give us some suggestions for that sir. Thank you so much

  • @yashuy3279
    @yashuy3279 2 года назад

    Thank you Sir 🙂

  • @SK-ff2qi
    @SK-ff2qi 2 года назад

    Hii @Naveen , I just want to know if we have to use tags in a frame work so which dependencies we need to add

  • @ankeshkumar9120
    @ankeshkumar9120 3 года назад +1

    Hi Naveen. The series is too good. I got confused at one place, When running the UberTest with tags="not @Prod", its also running the AmazonSearchTest(Though I commented everything in that file). How to disable that? Any leads? Thanks :)

    • @naveenautomationlabs
      @naveenautomationlabs  3 года назад

      Give the uber feature file path in your junit runner class.

    • @SudhaRani-xp8xz
      @SudhaRani-xp8xz 3 года назад

      @@naveenautomationlabs ​ Hi Naveen , Pretty plugin is not working for me ,Not sure Why i am getting the output like below . In your Video the output is in Green colour. Did i miss something @Smoke
      Scenario: Booking cab Sedan # Feature/Uber.feature:4
      Step 1 : Sedan
      Given User wants to select a car type "Sedan" from uber application # stepDefinition.UberStepDef.user_wants_to_select_a_car_type_from_uber_application(java.lang.String)
      Step2 : SedanBangalorePune
      When User selects car "Sedan" and pick up point "Bangalore" and drop location "Pune" # stepDefinition.UberStepDef.user_selects_car_and_pick_up_point_and_drop_location(java.lang.String,java.lang.String,java.lang.String)

  • @juhiagarwal7682
    @juhiagarwal7682 3 года назад

    Hey Naveen..Thanks a lot to make such detailed videos. I am facing an issue, the tags passed in mvn command not overwriting the tags given in cucumberoptions in test file

  • @mayanksharma7341
    @mayanksharma7341 3 года назад

    Hi Naveen, I have created all the step definition files for respective feature file but still I am getting warning that the feature does not have a matching glue code. Although the feature file is running as expected but I am not able to remove these warnings from my feature file.

  • @tamilselvans8421
    @tamilselvans8421 3 года назад

    Hi Naveen
    am getting an error icon in my project folder but inside the code, there is no error.
    Some jar files which u shared in GIT is throwing an error

  • @ahmettemel8245
    @ahmettemel8245 2 года назад

    thank you

  • @nagak6092
    @nagak6092 8 месяцев назад

    Hi Naveen
    Could you please help me to resolve below cucumber query,
    How to set up dependency on cucumber test scripts like if there are 4 scripts A, B, C and D.
    If A passes then go to B then if B passes go to C etc
    If A fails don't go B and C and D.

  • @purnapcn8970
    @purnapcn8970 Год назад

    If the feature file contains 3 @somke scenarios but i want execute only one @smoke scenario how can we approach?

  • @DR-nx1oe
    @DR-nx1oe 3 года назад

    thanks for the tutorial Sir , one question please , do we need a TestRunner Class for Every Feature, or we can use just one TestRunner Class for all

    • @manjarikumari9302
      @manjarikumari9302 3 года назад

      Hi DR, do you know response for your question? Kindly share if you have

  • @vignesh1720
    @vignesh1720 3 года назад

    How to set priorities or sequence of feature file execution sir

  • @Gaurav12081
    @Gaurav12081 3 года назад

    Hi naveen in my project i have n number of feature files how do i run all feature files is there is any way to do this using tags? Please suggest thanks!

  • @meghnabhalerao3110
    @meghnabhalerao3110 Год назад

    What if we are having same tag with 3 scenerios , how will the execution will be done

  • @sudhakarrajunibhanupudi5331
    @sudhakarrajunibhanupudi5331 3 года назад

    How do I exclude a particular tag (feature/scenario level) in the report after executing it. Is there a way to do it? Please reply

  • @manikantan2457
    @manikantan2457 2 года назад

    Hi Naveen, How to run Multiple Tags in Cucumber IO and Kindly help me how can we rerun failed feature in Jenkins .

  • @vitulbansal7077
    @vitulbansal7077 2 года назад

    What if I want to run tags in my own order? Lets say I want to run @prod then @smoke then @regression
    When I was trying for my project it was running in alphabetical order. Can you please help me out for it n Thanks in advance 😊

  • @sharanbasavaswami1521
    @sharanbasavaswami1521 3 года назад

    Hi Naveen, your videos are very helpful. Tons of thanks for it and may I know what are the perks a subscriber with membership (Rs.159/month)will get . I tried to reach you but was unable to kindly reply.

  • @MrGmessi
    @MrGmessi 3 года назад

    can you work with tags in an outline scenario?

  • @bhavyamandaliya9545
    @bhavyamandaliya9545 3 года назад

    If i run the case with Junit. It runs all the step definition even after , providing tags value in Java runner file. Did someone face this issue?

  • @priyapattabhiraman1576
    @priyapattabhiraman1576 2 года назад

    Sir If possible can you provide notes for every video it will be like reference for us

  • @sumeshm23
    @sumeshm23 3 года назад +1

    I gave dryRun = true and tags="@tag1 and @tag2" but I m not getting missing stepdefenition instead I m getting runs 0/1 in testrunner please help

    • @naveenautomationlabs
      @naveenautomationlabs  3 года назад +1

      And will match both the tags on the same scenario. So use OR.

    • @sumeshm23
      @sumeshm23 3 года назад

      @@naveenautomationlabs Thanks brother

  • @avengers1960
    @avengers1960 3 года назад

    How to run Multiple Feature files in Order? Say for Eg: I have Login.feature and Dashboard.feature and I wanted to run the Login Feature followed by Dashboard? How can i achieve this in runner file ? @Naveen

  • @WittyRider00
    @WittyRider00 Год назад

    Kindly share if we can read the tag from file and match with the scenario tag then execute the matched one

  • @priyapattabhiraman1576
    @priyapattabhiraman1576 2 года назад

    Can you explain this statement
    Plugin={"pretty"} ......?

  • @mahendratiwary3689
    @mahendratiwary3689 3 года назад

    Small suggestion, Maven and Eclipse are kind of outdated these days, I mean not preferred. It will be good if your examples are based on IntelliJ and Gradle. It was just a suggestion otherwise very good work.