Hello Ashish,
I am building the testng.xml but have observed the error "The content of element type "class" must match "(methods|parameter)*".". But not able to find the problem. Can you please help me to resolve the issue?
Testng.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
<suite name="Settings">
<listeners>
<listener class-name="listener.MyTestNGListener"></listener>
</listeners>
<test name="Upload And Download Settings">
<classes>
<class name="dealerSite.UploadAndDownload">
<method>
<method name= "DialerDelay" />
<method name= "Panel Siren" />
<method name = "SirenTimeout" />
</method>
</class>
</classes>
Note: Observed the issue in the class name line.
</test>
</suite> <!-- Suite -->
Instructor
Ashish Thakur Replied on 15/09/2021
Whichversion of testng are you using. Also paste your testng.xml