Hello !
I have the following testng.xml file:
-------------------------------------------------------------------------------
<?xml version = "1.0" encoding = "UTF-8"?>
<!DOCTYPE suite SYSTEM "
http://testng.org/testng-1.0.dtd" >
<suite name = "Suite #1" configfailurepolicy="continue">
<listeners>
<listener class-name="com.codeborne.selenide.testng.SoftAsserts"/>
</listeners>
<test name = "Know my IP test">
<classes>
<class name="tests.KnowMyIP"/>
</classes>
</test>
<test name="Check PDF content">
<classes>
<class name="tests.PDFContentTest"/>
</classes>
</test>
</suite>
-------------------------------------------------------------
And after running it, i got:
Starting ChromeDriver 114.0.5735.90 (386bc09e8f4f2e025eddae123f36f6263096ae49-refs/branch-heads/5735@{#1052}) on port 31175
Only local connections are allowed.
Please see
https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
июн. 05, 2023 1:22:32 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
WARNING: Unable to find an exact match for CDP version 114, so returning the closest version found: 113
java.lang.IllegalStateException: You must configure you classes using JUnit4/JUnit5/TestNG mechanism as documented in
https://github.com/selenide/selenide/wiki/SoftAssertions
I use Selenide for UI Automation:
<dependency>
<groupId>com.codeborne</groupId>
<artifactId>selenide-testng</artifactId>
<version>6.15.0</version>
<scope>compile</scope>
</dependency>
The author of framework said that this is probably issue in TestNG.
Could you help me resolve that issue ?
I use 7.7.0 testng version:
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.7.0</version>
</dependency>