JUnit Parameterized Tests with Annotations | JUnit Tutorial With Selenium | Part VI

preview_player
Показать описание
Discover how you can use the @ParameterizedTest annotation provided by JUnit to parameterize your tests without the need for a separate method.
#parameterizedtesting #junit #selenium #framework

This video is in continuation of part V of the JUnit tutorial with Selenium where you learned how to write data-driven tests with different technologies from Real to Angular with Selenium in Java and JUnit framework.

● Value Source (Simple Values annotations)
● Null and Empty Values
● Enum Source annotation (enumeration)
● CSV Literals
● Method Source
● Arguments Source (Custom Argument Provider)
● Custom Annotation

Vɪᴅᴇᴏ Cʜᴀᴘᴛᴇʀꜱ ⛳

00:00 Introduction to JUnit Testing
04:50 Understanding “nullsource” & “emptysource”
08:20 Using ”enumsource”
11:50 Running test with “CSVsource”
17:15 Using “methodsource”
23:06 Understanding “argumentsource”
27:10 Exploring Custom Argument Provider
29:06 How to convert dates and other important strings into other classes
37:33 How to customize the names for a test
38:50 Conclusion

Also, learn 👀
🔹 What are argument sources in JUnit?
🔹 Why Do You Need JUnit Parameterized Tests?
🔹 How do you do annotation parameters?
🔹 What are parameterized tests used for in JUnit?

Cᴏᴍᴘʟᴇᴛᴇ JUnit Tutorial Sᴇʀɪᴇꜱ
➤ What is JUnit Framework In Selenium? | JUnit Tutorial With Selenium | Part I
➤ How To Install JUnit | JUnit Setup | IntelliJ IDEA | JUnit Tutorial With Selenium | Part II
➤ What are JUnit Annotations in Selenium? | JUnit Tutorial With Selenium | Part III
➤ What are JUnit Assertions in Selenium? | JUnit Tutorial With Selenium | Part IV
➤ Parameterized Tests With JUnit | JUnit Tutorial With Selenium | Part V

Learning hub:

Blogs and Related Documents-:

Sign Up for LambdaTest! It’s FREE! 🙌

Register Now to Avail Bonanza Offerings 💎
+ Test website on 2000+ mobile and desktop browser environments over LambdaTest cloud
+ Online scalable Selenium Grid to perform Manual testing as well as Automation testing
+ 100 minutes of free automated testing
+ Sessions with 10 Minutes of Each Free Live Interactive testing per month

EXPLORE
📢 FREE For Limited Time Only 🕑, Enroll Now!

SOCIAL

Disclaimer:
This video features materials protected by the Fair Use guidelines of Section 107 of the Copyright Act. All rights reserved to © 2021 LambdaTest. Any illegal reproduction of this content will result in immediate legal action.
#unittesting #junittesting #junittutorial #datadriventesting #java #tutorial #software #automation #testing #crossbrowsertesting
Рекомендации по теме