TestNG Prioritization | Set Priority for methods in TestNG | Skip test |use of timeout & description

Share this & earn $10
Published at : December 05, 2021

▶️ In this video, we will learn How to Set Priority for methods in TestNG , how to skip test method using enabled attribute, and use of timeout & description for TestNG test annotation.

▶️ 1] How to set Priority for TestCases in TestNG

- Lowest Priority ==- Run First
- Highest Priority ==- Run last

- Default == 0 ===- Lowest priority ( if user has not given any -ve priority)

- If multiple test methods have same priority level then execution will happen
as per the alphabetical order(as per the ASCII Value) of the method names.

▶️ 2] How to Enable and Disable test methods in TestNG

enabled = true ===- method will run
enabled = false ===- method will not run / skipped in execution

▶️ 3] How to Use Timeout
[Give value in milliseconds]

If method execution completes in given timeout then ==- pass otherwise ==- fail

▶️ 4] How to use Description

description = "msg" ==- This msg will displayed in console and in HTML report

======================================
****************AJ AUTOMATION**************
======================================
Hi guys, Please share and Like the content whichever you find informative to reach more beginner candidates learning Test Automation. Thanks for your Support !!

🔔 Learn automation from basic !! 🔔

✅ Let's Learn the Concept in 5 To 10 Mins :=
https://www.youtube.com/playlist?list=PLlc_LrU50tljSA5wcIpKSYRDrGX3iLQQQ

✅ Selenium series videos Playlist :=
https://www.youtube.com/playlist?list=PLlc_LrU50tliMZrnSa0a9geljzCijPDfq

✅ Maven Tool videos playlist :=
https://www.youtube.com/playlist?list=PLlc_LrU50tlgWOrybr-Ppffg6T_1cXeUb

✅ Selenium WebDriver Exceptions Playlist :=
https://www.youtube.com/playlist?list=PLlc_LrU50tlisWfvF3qXmFTaTKDYkib_p

✅ Selenium Grid With Docker:==
https://www.youtube.com/playlist?list=PLlc_LrU50tliN8PZ7Xk41NwrnelPHchSk

✅ Upload and Download Files in Selenium :=
https://www.youtube.com/playlist?list=PLlc_LrU50tlhD9ezHt9O-mlWjiu3XyS3U

✅ Excel and CSV files operations :=
https://www.youtube.com/playlist?list=PLlc_LrU50tlifVlnHI4ph5XuY1_pNusBy

✅ Java Language Concepts :=
https://youtube.com/playlist?list=PLlc_LrU50tliq2RV-1Yhr2IjJ5RqXCQjU

✅TestNG Framework Videos:=
https://www.youtube.com/watch?v=-KEg20O6Mxs&list=PLlc_LrU50tlgMVcdTBSZXt34JavaOEY8G

✅ Become Master in Xpath:=
https://www.youtube.com/watch?v=Wv1hHLhtnzw&list=PLlc_LrU50tlhzCzcfnY2S2vXnkFWorlT-

✅ Protractor series videos playlist :=
https://www.youtube.com/playlist?list=PLlc_LrU50tlim53VdVwAmCnBr8M2x38y8

✅ Recent Uploads :=
https://youtube.com/playlist?list=PLlc_LrU50tljOnB-LUofJpBkeSMskcQVd

✅ GitHub Repo:= https://github.com/ajautomation

⚡️ Thanks for your support !! ⚡️

======================================
**************** Thanks for watching !!**************
======================================


⚡️ Keep Learning...Keep Sharing...Keep Growing. ⚡️

#LearnSeleniumInEasyWay #SeleniumWebDriver TestNG Prioritization | Set Priority for methods in TestNG | Skip test |use of timeout & description
testng prioritypriority in testngtestng priority negative