Releases: jdi-testing/jdi-light
Releases · jdi-testing/jdi-light
1.4.7
1.4.6
1.4.5
1.4.4 Replace Log4J in jdi-light to Slf4j
- Remove log4j dependency from jdi-light (now only slf4j)
- Update Allure version to 2.17.2
IMPORTANT: in order to have logs now you need to add log4j or any other logger (e.g. logback) in your pom directly
Logback example:
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logger.version}</version>
</dependency>
Log4J example:
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${logger.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${logger.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${logger.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-1.2-api</artifactId>
<version>${logger.version}</version>
</dependency>
1.4.3 Add new loggers
- Refactored JdiLogManager
- Add new loggers in addition to Log4JLogger: Slf4JLogger and ConsoleLogger
- Slf4JLogger now default logger (because of log4j vulnerabilities) - this switch should not require any changes in code in the test projects
- You can set new logger with:
JdiLogManager.setLogger("My Awesome logger", new Slf4JLogger("JDI"));
or add one more logger (stream) using:
JdiLogManager.addLogger("My Awesome logger", new Slf4JLogger("JDI"));
You can create your own logger by implementing interface IJDILogger
Or fully replace jdi logger with new logger by implementing interface ILogger and set your logger to
WebSettings.logger = new AwesomeLogger();
1.4.1 (1.3.23) Add Default settings for pages checks
Added settings for default behavior while page.checkOpened() - method called
in test.properties:
page.check.url = contains
page.check.title = none
in code:
JDISettings.PAGE.checkUrlType = "match"
JDISettings.PAGE.checkTitleType = "equals"
Note: behavior for each page can be specified with @url / @title annotations
1.4.0 Selenium 4
JDI Light with Selenium 4
1.3.22 Security update: Log 4J version 2.17.0
Change version of Log4J to 2.17.0 Cause global vulnerability of lower versions
1.3.21 [dont use it] Accidently has low version of log4j
Selenium4 (#3628) * update version * switch to selenium 4.1 * switch to selenium 4.1 * switch to selenium 4.1 * update log4j to 2.17.0 * update over packages * update mobile to selenium 3 * update mobile to selenium 3 * update mobile to selenium 3 * update to 1.3.22 * update mobile tests to 1.3.22
1.3.20 Security update
- Updated log4j dependency to a version with CVE-2021-44228 and CVE-2021-45046 vulnerabilities neutralized.