You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, you have to clone the repository to get the project structure.
10
+
11
+
The project uses TestNG and it is configured to exetcute the tests using the _maven test_ command.
12
+
You will be able to execute it going to project directory (use promp cmd) and executing there the maven command.
13
+
If you want to execute a concreted test suite you can do it executing _mvn clean test -Dtest.suite=[testSuiteName].xml_
14
+
15
+
### Configuring pom.xml parameters
16
+
_pom.xml_ is located in the root path of the project. There, there are defined versions of plugins and technologies, parameters for test executions and dependencies.
17
+
18
+
### Parameters for test executions
19
+
Important parameters to execute tests:
20
+
21
+
1._browser_: Browser used to launch tests. Allowed values: _Firefox_, _Chrome_
22
+
2._local.OS_: OS used to launch tests. Allowed values: _Windows_ , _MAcOS_
23
+
3._webdriver.chrome.driver_: Path in which the Chrome driver is.
24
+
4._webdriver.firefox.driver_: Path in which the Firefox driver is.
25
+
26
+
## src/main/resources folder:
27
+
1. files/software: In this folder we store the browser drivers ([geckodriver versions](https://github.com/mozilla/geckodriver/releases) , [chromedriver versions](https://chromedriver.chromium.org/))
28
+
2. suites: Here you can group sets of tests to run it together.
29
+
3._log4j.properties_: This file sets the logging properties, in this case the output to console.
30
+
4._test.properties_: In this file we store some common tests properties.
31
+
32
+
## src/main/java folder:
33
+
1. pageObject: Here you have every PageObjects. All PageObjects extends BasePageObject, it has important functions.
34
+
2. testSets: Here you can find the tests classes. _@before_ and _@after_ methods are defined here. All tests classes extends DefaultTestSet.
35
+
3. utils:
36
+
* Inizialization - Contains the main selenium webdriver configuration.
37
+
* DataUtils - Class that contains useful methods to provide to us mock data.
0 commit comments