filmov
tv
Selenium Cucumber Java BDD Framework 11 | How to run from CommandLine
Показать описание
Hi, I am Raghav. You can follow the notes here:
1 - What is Command Line execution
2 - Why to use Command Line
3 - When to use Command Line
4 - How - Step by Step Demo
#CucumberJavaTutorials
Running your tests or features from command line or terminal without using the IDE or GUI
Command Line
Terminal
Console
Why to use Command Line
No dependency on IDE or GUI
Useful in integrations with other processes
Continuous Integration, Delivery and Deployment
Easier & Faster
Consumes less memory
When to use Command Line
Whenever you need to run the tests faster without opening IDE
Whenever you need to do integrations with other processes
CI, CD, DevOps
Whenever using CI tools like Jenkins
Whenever you need any batch or scheduled execution
Whenever you are done with your test creation and setup
Step 1 - Right-click on the project and select Run As - Maven test
Step 2 - Check the console logs
Step 3 - Troubleshoot and correct the errors
Step 4 - Open CMD prompt
Step 5 - Check MAVEN is installed mvn -version
Step 6 - CD to the project location
Step 7 - Run command mvn test
By default mvn test will run the files with naming syntax
**/Test*.java
Overriding Cucumber Options from Command Line
mvn test
Running with multiple parameters
Can run with multiple parameters from command line
example
mvn test
Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you
You can support my mission for education by sharing this knowledge and helping as many people as you can
If my work has helped you, consider helping any animal near you, in any way you can.
________ ONLINE COURSES TO LEARN ________
Never Stop Learning
Raghav
1 - What is Command Line execution
2 - Why to use Command Line
3 - When to use Command Line
4 - How - Step by Step Demo
#CucumberJavaTutorials
Running your tests or features from command line or terminal without using the IDE or GUI
Command Line
Terminal
Console
Why to use Command Line
No dependency on IDE or GUI
Useful in integrations with other processes
Continuous Integration, Delivery and Deployment
Easier & Faster
Consumes less memory
When to use Command Line
Whenever you need to run the tests faster without opening IDE
Whenever you need to do integrations with other processes
CI, CD, DevOps
Whenever using CI tools like Jenkins
Whenever you need any batch or scheduled execution
Whenever you are done with your test creation and setup
Step 1 - Right-click on the project and select Run As - Maven test
Step 2 - Check the console logs
Step 3 - Troubleshoot and correct the errors
Step 4 - Open CMD prompt
Step 5 - Check MAVEN is installed mvn -version
Step 6 - CD to the project location
Step 7 - Run command mvn test
By default mvn test will run the files with naming syntax
**/Test*.java
Overriding Cucumber Options from Command Line
mvn test
Running with multiple parameters
Can run with multiple parameters from command line
example
mvn test
Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you
You can support my mission for education by sharing this knowledge and helping as many people as you can
If my work has helped you, consider helping any animal near you, in any way you can.
________ ONLINE COURSES TO LEARN ________
Never Stop Learning
Raghav
Комментарии