How to run testng.xml files from CMD | TestNG Java Framework | Tutorials for Beginners | #31

Опубликовано: 01 Ноябрь 2024
на канале: The Testing Instinct
53
0

#selenium
#testng
#seleniumwebdriver
#seleniumjava
#webautomation
#postman
#java
#maven
#maventutorial
#karate
#restapi
#restapiautomation
#apitesting
#malayalam
#softwaretesting
#beginners
#മലയാളം
#TheTestingInstinct
#tutorials

The video describes about different ways for running single/multiple testng.xml files from CMD using maven surefire plugin.

1) By mentioning testng.xml file location in CMD by creating variable in pom.xml

To run single testng.xml file use the following command after replacing name of testng.xml file.

mvn clean test -Dsurefire.suiteXmlFiles=testng_CMD1.xml

To run multiple testng.xml file use the following command after replacing name of testng.xml files separated by comma.

mvn clean test -Dsurefire.suiteXmlFiles=testng_CMD1.xml,testng_CMD2.xml

2) By mentioning testng.xml file location in pom.xml file using maven surefire plugin

GitHub link: https://github.com/thetestinginstinct...

Video chapters:
0:00 Introduction & Agenda
1:35 Demo - By mentioning testng.xml file location in CMD by creating variable in pom.xml
5:14 Demo - By mentioning testng.xml file location in pom.xml file using maven surefire plugin

Playlist link:   • TestNG | Testing Framework for Java P...  
Maven setup video:   • How to Install Maven in Windows OS. T...  
Software Testing playlist link:    • Software Testing for Beginners| Malay...  
Selenium Java playlist link:    • Selenium Java Tutorials in Malayalam ...  
Postman Playlist link:   • Postman Rest API Testing | Become an ...  
Karate Playlist link:    • Karate REST API Test Automation|REST ...