Observed The content of element type "class" must match "(methods|parameter)*" in testng.xml file | Selenium Forum
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">
<listener class-name="listener.MyTestNGListener"></listener>
<test name="Upload And Download Settings">
<class name="dealerSite.UploadAndDownload">
<method name= "DialerDelay" />
<method name= "Panel Siren" />
<method name = "SirenTimeout" />


Note: Observed the issue in the class name line.

</suite> <!-- Suite -->

Ashish 3 days ago

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