Observed The content of element type "class" must match "(methods|parameter)*" in testng.xml file | Selenium Forum
S
saiteja 5 days go

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 -->


A
Ashish 3 days ago

Whichversion of testng are you using. Also paste your testng.xml