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 3964804
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:22:44+00:00 2026-05-20T03:22:44+00:00

I am some problems since this morning with my Selenium Test. I created a

  • 0

I am some problems since this morning with my Selenium Test.

I created a Selenium Test Class :

public class IEPatchSeleniumTest extends SeleniumTestCase{ 

        @Test 
        public void testTypingXSSCode() { 
                open("/Index"); 
        } 
}

I configured my testng.xml like that :

<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> 
<suite name="Kawwa Tests" verbose="1"> 
        <test name="Integration Tests" enabled="true"> 
                <parameter name="tapestry.web-app-folder" value="src/test/app0"/> 
                <packages> 
                        <package name="net.mm.tapestry.security.integration" /> 
                </packages> 
        </test> 
</suite> 

And my Maven-surefire-plugin declaration looks like :

<plugin> 
    <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-surefire-plugin</artifactId> 
    <version>2.4.3</version> 
    <configuration> 
      <suiteXmlFiles> 
        <suiteXmlFile>src/test/conf/testng.xml</suiteXmlFile> 
      </suiteXmlFiles> 
      <argLine>-Xmx500m -XX:MaxPermSize=256m</argLine> 
    </configuration> 
</plugin>

But when I ran my tests suite, i have got 2 errors :

<test-method status="FAIL" signature="testStartup(org.testng.ITestContext, org.testng.xml.XmlTest)" name="testStartup" is-config="true" duration-ms="0" depends-on-groups="beforeStartup" started-at="2011-02-04T13:46:02Z" finished-at="2011-02-04T13:46:02Z"> 
  <exception class="org.testng.TestNGException"> 
    <message> 
      <![CDATA[ 
Method testStartup requires 2 parameters but 0 were supplied in the @Configuration annotation.]]> 
    </message> 
    <full-stacktrace> 
      <![CDATA[org.testng.TestNGException: 
        Method testStartup requires 2 parameters but 0 were supplied in the @Configuration annotation. 
        at org.testng.internal.Parameters.checkParameterTypes(Parameters.java:147) 
        at org.testng.internal.Parameters.createParameters(Parameters.java:96) 
        at org.testng.internal.Parameters.createParameters(Parameters.java:289) 
        at org.testng.internal.Parameters.createConfigurationParameters(Parameters.java:70) 
        at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:135) 
        at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82) 
        at org.testng.TestRunner.beforeRun(TestRunner.java:501) 
        at org.testng.TestRunner.run(TestRunner.java:469) 
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:324) 
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:319) 
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:292) 
        at org.testng.SuiteRunner.run(SuiteRunner.java:198) 
        at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:821) 
        at org.testng.TestNG.runSuitesLocally(TestNG.java:788) 
        at org.testng.TestNG.run(TestNG.java:708) 
        at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:74) 
        at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92) 
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
        at java.lang.reflect.Method.invoke(Method.java:597) 
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) 
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) 
]]> 
    </full-stacktrace> 
  </exception> 
</test-method> 



<test-method status="FAIL" signature="indicateTestMethodName(java.lang.reflect.Method)" name="indicateTestMethodName" is-config="true" duration-ms="0" started-at="2011-02-04T13:46:02Z" finished-at="2011-02-04T13:46:02Z"> 
  <params> 

      <value> 
        <![CDATA[public void net.mm.tapestry.security.integration.IEPatchSeleniumTest.testTypingXSSCode()]]> 
      </value> 

  </params> 
  <exception class="java.lang.NullPointerException"> 
  <full-stacktrace> 
    <![CDATA[java.lang.NullPointerException 
        at org.apache.tapestry5.test.SeleniumTestCase.indicateTestMethodName(SeleniumTestCase.java:292) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
        at java.lang.reflect.Method.invoke(Method.java:597) 
        at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580) 
        at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398) 
        at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145) 
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:427) 
        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:617) 
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:885) 
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126) 
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:110) 
        at org.testng.TestRunner.runWorkers(TestRunner.java:712) 
        at org.testng.TestRunner.privateRun(TestRunner.java:582) 
        at org.testng.TestRunner.run(TestRunner.java:477) 
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:324) 
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:319) 
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:292) 
        at org.testng.SuiteRunner.run(SuiteRunner.java:198) 
        at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:821) 
        at org.testng.TestNG.runSuitesLocally(TestNG.java:788) 
        at org.testng.TestNG.run(TestNG.java:708) 
        at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:74) 
        at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92) 
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
        at java.lang.reflect.Method.invoke(Method.java:597) 
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) 
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) 
]]> 
            </full-stacktrace> 
          </exception> 
        </test-method>

Anyone had these problems before? Which solution did you choose ?

Thanks a lot.

  • 1 1 Answer
  • 1 View
  • 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-05-20T03:22:45+00:00Added an answer on May 20, 2026 at 3:22 am

    Check the version of TestNG that is being set in your pom.xml. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since this morning (i've updated some plugins, and updated mac os X) I get
I am trying to avoid using Net::SSH::Perl library since there is some problems in
Basically I have something like this: public void Form1_btnStart_click() { Void1() NextLine } Public
I'm trying to use flowplayer, but got some problems with it. Since it has
I'm trying to rewrite some javascript code into Python. Which brings some problems since
I'm having some problems with the Sql query generated by LINQ, Since my environment
I've made some previous question asking for the help with the problems since I
I'm sorry this is a newbie question, but i'm having some problems with Ant,
I'm building an 2.2 and up version application. This gives me some problems using
I was having some problems with a sample code i was testing, since my

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.