Selenium Cucumber BDD Framework with Java and TestNG | Tags

  Рет қаралды 4,440

SDET Adda For QA Automation

Жыл бұрын

In this video, We will learn about tags in Cucumber-
In Cucumber, tags are a way to label and categorize scenarios and features. They allow you to control which scenarios are executed during test runs based on specific criteria. Tags are defined using the "@" symbol followed by a tag name. You can add tags to both feature files and individual scenarios.
Using tags in Cucumber allows you to create a flexible and organized test suite, making it easier to run specific sets of scenarios or features based on your testing needs.
It looks simple when we just have one, two, or maybe five scenarios in a feature file. However, in real life it does not happen. For each feature under test, we may have 10, 20, or may be more number of scenarios in a single feature file. They may represent different purpose (Smoke test/Regression test), different prospectives (Developer/QA/BA), different status (Ready for execution/Work in progress), etc. How to manage execution for such a mass?
For this, Cucumber has already provided a way to organize your scenario execution by using tags in feature file. We can define each scenario with a useful tag. Later, in the runner file, we can decide which specific tag (and so as the scenario(s)) we want Cucumber to execute. Tag starts with “@”. After “@” you can have any relevant text to define your tag. Let’s understand this with an example.
Suppose, there are two or more scenarios in a feature file. We want to execute only one scenario as part of smoke test. So first thing is to identify that scenario and second is to tag it with “@SmokeTest” text at the beginning of the scenario.
Playlists in this channel:
Selenium Cucumber BDD Framework development with Java and TestNG -
kzbin.info/aero/PLxD77px6418Xjdme8VHlxy15qc038DQmt
Playwright with Java script [2023 latest] - End to end - By SDET Adda for QA Automation: kzbin.info/aero/PLxD77px6418Xam0MXkYxT9fbfnZzT0zfQ
TestNG + Selenium 4 Tutorial -2022/2023 🔥🔥🔥: kzbin.info/aero/PLxD77px6418VRTs383F_sjOy9PdkD-7Sb
Selenium webdriver issues and solutions: kzbin.info/aero/PLxD77px6418V1c12Htz5rJnNUY2T6K47z
Basic Linux (UNIX) Commands with Shell Scripting Tutorial for Testers [2023]: kzbin.info/aero/PLxD77px6418XEm23EQd_DGKxYy5x_Pw8T
Top 100 Java programs for QA testing Interviews: kzbin.info/aero/PLxD77px6418VxsaDvJ6q8CmGtN3JUy-ub
#cucumber #tags #cucumbertags #bddevelopment #pageobjectmodel #pagefactory #framework #selenium #seleniumtraining #cucumbertraining #sdet #sdetaddaforqaautomation #automationframework #automationinterviewquestions #javainterviewquestionsandanswers
#singletags #multipletags #featurefiles #scenarios

Пікірлер: 5
@HarshVardhan__-zp4si
@HarshVardhan__-zp4si 11 ай бұрын
you are just awesome.. keep working!!!!! you are giving the totally industry level experience. thanks a lot!!!
@testing24x7
@testing24x7 Жыл бұрын
Excellent explaination of real time usecase. Thanks.
@boundlessgyan
@boundlessgyan Жыл бұрын
Thanks for educating on this. Can we use the same test runner for smoke and regression tests?
@MrRajkiran123
@MrRajkiran123 Ай бұрын
Thanks a lot !!
@abhishekkandalkar9646
@abhishekkandalkar9646 4 ай бұрын
❤❤
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 115 МЛН
Part 5. Roblox trend☠️
00:13
Kan Andrey
Рет қаралды 3 МЛН
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
路飞与唐舞桐
Рет қаралды 29 МЛН
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 115 МЛН