Gradle

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
To raise new issues or bugs against Gradle, please use forums.gradle.org.
  • Gradle
  • GRADLE-1532

Gradle throwing error when trying to execute parallel functional test with Selenium Grid and testNG

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.0-milestone-4

Description

I am using TestNG with Gradle to run functional tests in parallel with
Selenium Grid. I was getting this error while trying to execute two
test classes in parallel.

Failed to dispatch message
org.gradle.messaging.dispatch.MethodInvocation@1c71474e.
org.gradle.messaging.dispatch.DispatchException: Failed to dispatch
message org.gradle.messaging.dispatch.MethodInvocation@1c71474e.
at org.gradle.messaging.dispatch.ExceptionTrackingDispatch.dispatch(ExceptionTrackingDispatch.java:34)
at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:129)
at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)
at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:69)
at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:63)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.IllegalArgumentException: Received a completed
event for test with unknown id '1.8'.
at org.gradle.api.internal.tasks.testing.results.StateTrackingTestResultProcessor.completed(StateTrackingTestResultProcessor.java:48)
at org.gradle.api.internal.tasks.testing.results.AttachParentTestResultProcessor.completed(AttachParentTestResultProcessor.java:51)
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.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.messaging.dispatch.ExceptionTrackingDispatch.dispatch(ExceptionTrackingDispatch.java:32)
... 7 more

Initially I didn't know what was going on. Later I noticed two methods
in each class had same name. When I changed the name of one of the
methods(that had same name as in other class) in one class, the tests
ran in parallel without any error.

It has to be problem with either Gradle or TestNG. It should be able to handle same method names in two different classes.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    sample.zip
    03/Jun/11 4:39 AM
    1 kB
    Szczepan Faber
    1. File
      build.gradle 0.2 kB
    2. File
      src/.DS_Store 6 kB
    3. Java Source File
      src/test/java/SomeTest.java 0.2 kB
    Download Zip
    Show
    Zip Archive
    sample.zip
    03/Jun/11 4:39 AM
    1 kB
    Szczepan Faber

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
  • TeamCity
  • Commits
  • Source
  • Reviews
Hide
Permalink
Szczepan Faber added a comment - 03/Jun/11 4:39 AM

very tiny project that reproduces the problem

Show
Szczepan Faber added a comment - 03/Jun/11 4:39 AM very tiny project that reproduces the problem
Hide
Permalink
Szczepan Faber added a comment - 18/Jun/11 10:37 AM

Fixed in master

Show
Szczepan Faber added a comment - 18/Jun/11 10:37 AM Fixed in master

People

  • Assignee:
    Unassigned
    Reporter:
    Asmita Vaidya
Vote (1)
Watch (1)

Dates

  • Created:
    12/May/11 9:24 AM
    Updated:
    04/Jan/13 5:09 AM
    Resolved:
    18/Jun/11 10:37 AM
  • Atlassian JIRA (v5.0.3#729-sha1:bf569e4)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Gradle. Try JIRA - bug tracking software for your team.