Question

For example, plugin Intellij Idea TestNG has extension point:

<extensionPoints >
    <extensionPoint qualifiedName="com.theoryinpractice.testng.listener" interface="org.testng.IDEATestNGListener"/>
</extensionPoints>

I want to use this extension point as follows:

<extensions defaultExtensionNs="TestNG-J">
    <com.theoryinpractice.testng.listener implementation="org.example.MyTestNGListener" />
</extensions>

public class MyTestNGListener implements org.testng.IDEATestNGListener {
    ...
}

But it did not work. What am I doing wrong?

(If there are errors, I'm sorry, did the translation from Google Translate)

Was it helpful?

Solution

defaultExtensionNs must have FQN prefix of EP, not plugin ID:

<extensions defaultExtensionNs="com.theoryinpractice.testng">
    <listener implementation="YourListenerFQN"/>
</extensions>

(http://devnet.jetbrains.com/message/5504720#5504720)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top