Error: Main method not found in class utils.AppUtils, please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application I'm using the TestNG framework. This framework doesn't require a main method during execution. Could you please tell me how to fix this.
TestNG calls a main method internally. Since it is a framework, we need to follow the way it is designed. So inshort to run/execute any lines of code using TestNG, you don't need main method. I have created a separate video on the same. Please check my channel, you will find- How TestNG runs test without a main method. th-cam.com/video/Wd9DPgmpeBw/w-d-xo.html
@@shivanshusharma20.07 Not actually. It is a test framework used by developers and testers. You can learn selenium and testng in parallel or one after the other Finally understand how they are used together. Go through the whole tutorial, things will get clearer over time.
@@chandanguptaSDET Thanks alot brother. Subscribing your channel for updates. But please try to create videos on selenium api testing., Jmeter etc. Good luck :)
Great tutorials to learn about TestNG. Great work Chandan.
Thanks Sanjay !
Learned a lot through this video! Thank you
Thank you so much sir for explaining in details
Thank you - Learnt about TestNG and Benefits.
You are welcome Srinivas.
very informative . 👍
Error: Main method not found in class utils.AppUtils, please define the main method as:
public static void main(String[] args)
or a JavaFX application class must extend javafx.application.Application
I'm using the TestNG framework. This framework doesn't require a main method during execution. Could you please tell me how to fix this.
I cant import org.testng.annotations.Test; for some reason
In this video you are using inheritance. but why in Testdemo class you have not use static main method?
TestNG calls a main method internally. Since it is a framework, we need to follow the way it is designed. So inshort to run/execute any lines of code using TestNG, you don't need main method. I have created a separate video on the same. Please check my channel, you will find- How TestNG runs test without a main method. th-cam.com/video/Wd9DPgmpeBw/w-d-xo.html
Hi sir
What is prerequisite to learn testng?
Basic java should do
@@chandanguptaSDET i mean to ask do i need selenium before following testNG?
@@shivanshusharma20.07 Not actually. It is a test framework used by developers and testers. You can learn selenium and testng in parallel or one after the other Finally understand how they are used together. Go through the whole tutorial, things will get clearer over time.
@@chandanguptaSDET Thanks alot brother. Subscribing your channel for updates. But please try to create videos on selenium api testing., Jmeter etc. Good luck :)
Thanks ❤
"ok"? :)