This is a sample selenium framework that supports parallelization and multiple browsers.
Parameters can be passed via suite file, a command line or directly in run settings (VM options).
One should pass parameters using the following syntax: -DparameterName=parameterValue
.
If using different suite file, it has to be selected manually or passed as a CLI or VM option parameter.
- false – default
- true
-Dheadless=true
- Chrome – default
- Firefox
- Edge
-Dbrowser=EDGE
- testng/testng.xml – default
By default, suite files are looked for in thetestng
directory.
-DsuiteFile='file1.xml'