Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Arquillian Liferay Test Suite
Hi All,
I am looking for an Arquillian test example on a plugin portlet. If any one has successfully done that please provide me the details, to proceed.
Thanks in Advance.
Regards,
Kaushik
I am looking for an Arquillian test example on a plugin portlet. If any one has successfully done that please provide me the details, to proceed.
Thanks in Advance.
Regards,
Kaushik
Hi Kaushk,
I was able to to it with a little bit of digging using this dev.life session as a guide https://www.liferay.com/-/20141101-dev-life-devcon-webcast?redirect=https%3A%2F%2Fwww.liferay.com%2Fcommunity%2Fdev.life%2Fprevious%3Fp_p_id%3D101_INSTANCE_2wvNGOKWjJYi%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-2%26p_p_col_pos%3D3%26p_p_col_count%3D5.
The video deals specifically with ANT to use arquillian however I was able to do it successfully using Maven. I have the notes all written down but haven't yet put it into a blog post (hoping to do it soon though).
Are you using maven for your plugins or ANT?
I was able to to it with a little bit of digging using this dev.life session as a guide https://www.liferay.com/-/20141101-dev-life-devcon-webcast?redirect=https%3A%2F%2Fwww.liferay.com%2Fcommunity%2Fdev.life%2Fprevious%3Fp_p_id%3D101_INSTANCE_2wvNGOKWjJYi%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-2%26p_p_col_pos%3D3%26p_p_col_count%3D5.
The video deals specifically with ANT to use arquillian however I was able to do it successfully using Maven. I have the notes all written down but haven't yet put it into a blog post (hoping to do it soon though).
Are you using maven for your plugins or ANT?
I am using Maven. I'll watch the video .... But just in case can you also provide the steps you followed for easier understanding.
Hey Kaushik --
I'll do my best to write a post today and send you the link when it is done. Stay tuned.
I'll do my best to write a post today and send you the link when it is done. Stay tuned.
After watching the video , i tried to implement the same using Maven . I have liferay jboss bundle at the backend.
Currently I am getting this exception while running the test
Caused by: java.lang.Exception: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"Arquillian-Liferay-Portlet.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Arquillian-Liferay-Portlet.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"Arquillian-Liferay-Portlet.war\"
Caused by: java.lang.LinkageError: Failed to link com/liferay/taglib/util/ParamAndPropertyAncestorTagImpl (Module \"deployment.Arquillian-Liferay-Portlet.war:main\" from Service Module Loader)
Caused by: java.lang.NoClassDefFoundError: com/liferay/portal/kernel/servlet/taglib/BaseBodyTagSupport
Caused by: java.lang.ClassNotFoundException: com.liferay.portal.kernel.servlet.taglib.BaseBodyTagSupport from [Module \"deployment.Arquillian-Liferay-Portlet.war:main\" from Service Module Loader]"}}
Any idea why i am getting this exception ? I am attaching the pom.xml , TestClass and also arquillian.xml for reference.
I am eagerly waiting for your guide to run Arquillian test on Liferay plugin.
Currently I am getting this exception while running the test
Caused by: java.lang.Exception: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"Arquillian-Liferay-Portlet.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Arquillian-Liferay-Portlet.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"Arquillian-Liferay-Portlet.war\"
Caused by: java.lang.LinkageError: Failed to link com/liferay/taglib/util/ParamAndPropertyAncestorTagImpl (Module \"deployment.Arquillian-Liferay-Portlet.war:main\" from Service Module Loader)
Caused by: java.lang.NoClassDefFoundError: com/liferay/portal/kernel/servlet/taglib/BaseBodyTagSupport
Caused by: java.lang.ClassNotFoundException: com.liferay.portal.kernel.servlet.taglib.BaseBodyTagSupport from [Module \"deployment.Arquillian-Liferay-Portlet.war:main\" from Service Module Loader]"}}
Any idea why i am getting this exception ? I am attaching the pom.xml , TestClass and also arquillian.xml for reference.
I am eagerly waiting for your guide to run Arquillian test on Liferay plugin.
Andew Jardine, modified 10 Years ago.
RE: Arquillian Liferay Test Suite
(Answer)
Liferay Legend
Posts: 2416
Join Date: 12/22/10
Recent Posts
Hey Kaushik,
I have only been through this with Tomcat to be honest, but considering that Arquillian is JBOSS project, it should be easier right?
. Here is the post as promised. Let me know how it goes.
https://www.liferay.com/web/jardineworks/blog?p_p_id=33&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-2&p_p_col_count=1
I have only been through this with Tomcat to be honest, but considering that Arquillian is JBOSS project, it should be easier right?
https://www.liferay.com/web/jardineworks/blog?p_p_id=33&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-2&p_p_col_count=1
Thanks a lot Andrew.
I was able to run Arquillian Test on tomcat . But still getting the same issue in JBoss. I'll figure some thing out.
Thanks again for the nice blog, it will surely help many developers.
I was able to run Arquillian Test on tomcat . But still getting the same issue in JBoss. I'll figure some thing out.
Thanks again for the nice blog, it will surely help many developers.
My pleasure. When you sort it out let me know and we can ammend it to include the differences for JBoss! or I coul like to your own post
Hi guys, sorry for the late response.
Here (https://github.com/arquillian/arquillian-extension-liferay/tree/master/arquillian-extension-liferay-example) you have a Maven portlet with some examples: integration and even functional tests. Altought we are working on improving this example, it describes pretty well what you need to know.
Hope it helps you.
Cheers!
Here (https://github.com/arquillian/arquillian-extension-liferay/tree/master/arquillian-extension-liferay-example) you have a Maven portlet with some examples: integration and even functional tests. Altought we are working on improving this example, it describes pretty well what you need to know.
Hope it helps you.
Cheers!
Community
Company
Feedback