IllegalArgumentException:wrong number of arguments

320 views
Skip to first unread message

tyoko 张

unread,
Nov 22, 2016, 11:33:23 PM11/22/16
to webdriver
when I follow the test demo to write my login test case,it's reported failure.

the report is below:
App URL: http://my.XXXX.com/login, Browser: firefox

Test Steps [ - ]

    class java.lang.IllegalArgumentException:wrong number of arguments(stacktrace)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
    at org.testng.internal.MethodInvocationHelper.invokeDataProvider(MethodInvocationHelper.java:135)
    at org.testng.internal.Parameters.handleParameters(Parameters.java:426)
    at org.testng.internal.Invoker.handleParameters(Invoker.java:1383)
    at org.testng.internal.Invoker.createParameters(Invoker.java:1075)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1180)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

    ⇜Krishnan Mahadevan⇝

    unread,
    Nov 23, 2016, 12:20:41 AM11/23/16
    to webdriver
    You haven't shown us what your code looks like which is causing this error. 
    Without the code its hard to say what's going on (But it looks to me from the stacktrace that your error is perhaps coming in from TestNG)

    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
    My Scribblings @ http://wakened-cognition.blogspot.com/
    My Technical Scribbings @ http://rationaleemotions.wordpress.com/

    --
    You received this message because you are subscribed to the Google Groups "webdriver" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+unsubscribe@googlegroups.com.
    To post to this group, send email to webd...@googlegroups.com.
    Visit this group at https://groups.google.com/group/webdriver.
    For more options, visit https://groups.google.com/d/optout.

    Bill Ross

    unread,
    Nov 23, 2016, 12:23:12 AM11/23/16
    to webd...@googlegroups.com
    It is related to your testng programming I think. There is no webdriver in the stack.

    Bill
    To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
    Reply all
    Reply to author
    Forward
    0 new messages