

Here we will create Two class as 'TestA.class' and 'TestB.class' as show below:Ĭlass - TestA, which has three methods with and methods package com. Let us jump into simple example by taking two classes each has three or more methods.įirst let us take a class or multiple classes which has tests so that we can execute them using batch file and view the output. A batch file (.bat) is used in DOS and Windows, which is an unformatted text file that consists of a series of commands to be executed by the command line interpreter. Now here we will look into executing testng.xml using batch file (.bat) file. In other words, the substitution is made when the script is read into memory by the command processor, not when the script is later run. In previous tutorial we have seen executing testng.xml tests from command line. Unlike other programming languages, in a batch file a variable is substituted by its actual value before the batch script is run.
