cancel
Showing results for 
Search instead for 
Did you mean: 

pluging development issue

VGaur
Contributor

pluging development issue

 

Hey Guys,

 

Trying to dev a plugin to search testcases by tags . It's a workspace plugin and it would go through all the active projects in your workspace and search for tagged cases and list them up. 

 

The plugin works but sometime it doesn't get invoked and gives the following casting issue.I have not shared the code but can someone point me out what the real issue could be? Let me know how I can share the code?

 

 

ERROR [errorlog] java.lang.reflect.UndeclaredThrowableException
java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy55.perform(Unknown Source)
at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:128)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.eviware.soapui.plugins.PluginProxies$DelegatingHandler.invoke(PluginProxies.java:116)
... 40 more
Caused by: java.lang.ClassCastException: com.eviware.soapui.impl.WorkspaceImpl cannot be cast to com.eviware.soapui.impl.wsdl.WsdlProject
at trademe.MyAction.perform(MyAction.java:1)
... 45 more

3 REPLIES 3
sanj
Super Contributor

Re: pluging development issue

Sounds like a technical issue 

you best bet would be contacting support

https://support.smartbear.com/

 

nmrao
Community Hero

Re: pluging development issue

@VGaur,

 

Sorry for the delayed reply. Not sure if the issue still persists.

 

Nice that some one is trying new things and willing to share to the community.

 

We have community members, say for instance @05ten who recently released a plugin @ github for Repeat test steps.

 

So on the same lines, the code for your plugin can be shared on github repository, so that people can offer some help & tips or suggestions.



Regards,
Rao.
VGaur
Contributor

Re: pluging development issue

I am a bit late but as you suggested @nmrao I worked along with smartbear tech support team and was able to get the plugin published through smartbear plugin repo: https://www.screencast.com/t/w0hpn23Q . It went through a series of R&D review and testing phase and finally approved by SmartBear. More details can be found here.

 

Thanks 

Varun

New Here?
Join us and watch the welcome video:
Building with the Collaborator API

Help Documenation
The Collaborator API is a JSON-RPC API that lets you integrate with Collaborator 9.0 and above. For more information about how the API works, check out the API description here:


Sample Plugins
For an example of an add-in that uses the API, take a look at the Microsoft Word Add-in for Collaborator:


We list all the great plugins our network has already built on this page on the SmartBear website.