First Set The Path of The .Classfiles: To Run Testng XML File From Command Prompt
First Set The Path of The .Classfiles: To Run Testng XML File From Command Prompt
GIT
Command: git init fresh-project
// to initialize or create empty git repository; fresh project is the name og git repository
Assertion in java
Assertion is a statement in java. It can be used to test your assumptions about the program.
While executing assertion, it is believed to be true. If it fails, JVM will throw an error named
AssertionError. It is mainly used for testing purpose.
class AssertionExample{
public static void main( String args[] ){
System.out.println("value is "+value);
}
}
If you use assertion, It will not run since assertion is disabled by default. To enable
the assertion, -ea or -enableassertions switch of java must be used.