Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9010047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:21:24+00:00 2026-06-16T02:21:24+00:00

I have always getting this error for test tag (at line test name=Bing-Search-Sample…) in

  • 0

I have always getting this error for test tag (at line test name=”Bing-Search-Sample…) in TestNG XML configuration file, when eclipse is trying to validate the XML against its DTD. The file is working fine and seems to have no problems:

The content of element type “test” must match
“(method-selectors?,parameter*,groups?,packages?,classes?)”.

XML File:

<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >

<suite name="tests" allow-return-values="true"
    verbose="10">
    <test name="Bing-Search-Sample-Test">
        <classes>
            <class name="package.TestFactory" />
        </classes>
        <groups>
            <run>
                <include name="sample-tests" />
            </run>
        </groups>
        <parameter name="testInterfaceXML" value="SearchInterface.xml"></parameter>
        <parameter name="testSuiteXML" value="SearchTest.xml"></parameter>
    </test>
</suite>

Since the XML is working fine, I am wondering if there is a problem with TestNG DTD or in the XML file validation with eclipse.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T02:21:26+00:00Added an answer on June 16, 2026 at 2:21 am

    Apparently the order of the elements are important. First comes the parameters, then groups, and classes should be the last element in the test element. That’s the correct format of configuration file:

    <suite name="tests" allow-return-values="true"
        verbose="10">
        <test name="Bing-Search-Sample-Test">
            <parameter name="testInterfaceXML" value="SearchInterface.xml"></parameter>
            <parameter name="testSuiteXML" value="SearchTest.xml"></parameter>
            <groups>
                <run>
                    <include name="sample-tests" />
                </run>
            </groups>
            <classes>
                <class name="package.TestFactory" />
            </classes>
        </test>
    </suite>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Multi-Test TestNG.xml file results in java.lang.NullPointerException Hello Quality Team, I need help getting TestNG
I have always wondered about this. So many application setups have a zip file
I am getting this error when I try to send via the local server
Ive tried anything to do this, but always get the same error $(.tooltip).draggable('disable'); Error:
I have this line of code: delete_btn = uicontrol(rr_ops, 'Style', 'pushbutton', 'String', 'Delete Graphic',
I keep getting this error: alt text http://img514.imageshack.us/img514/2203/help.tif What is it? I never even
I seem to be getting this error message: (a:ActionNotSupported) The message with Action 'GetServices'
This is the error I'm getting when trying to compile some code that uses
I'm getting this error when uploading an image on my hosting. Request for the
I have repeatedly test this #blankety-blank# stored procedure on SQL Server, and it returns

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.