XMPPIntegration
Jun 14 2009
Starting GWT with Maven
I have started studying GWT. I started reading ebook GWT in Practice. It helped me to quickly understand the basics of a GWT Project and Then I looked for how we could create and build a GWT project with Maven. Here are some important points to create a GWT maven project.
- Download and install maven google web toolkit archetype. Download maven-googlewebtoolkit2-archetype-1.0.4.jar file from this link. GWT-Maven Archetype
- Install the downloaded maven archetype
mvn install:install-file \ -DgroupId=com.totsp.gwt \ -DartifactId=maven-googlewebtoolkit2-archetype \ -Dversion=1.0.4 \ -Dpackaging=jar -Dfile=path/to/downloaded/jar/file/maven-googlewebtoolkit2-archetype-1.0.4.jar
- Now you can create the maven GWT project with the following command running in terminal
mvn archetype:create \ -DarchetypeGroupId=com.totsp.gwt \ -DarchetypeArtifactId=maven-googlewebtoolkit2-archetype \ -DarchetypeVersion=1.0.4 \ -DgroupId=myGroupId \ -DartifactId=myArtifactId
- After all this, you can run your GWT project in hosted mode and take all GWT advantages using following command
mvn gwt-maven:gwt
- Or you can build a WAR file using this.
mvn clean gwt-maven install
May 15 2009
Running Selenium Tests with FF3
Last week I have learnt several things on writing Selenium Tests for XWiki.
Selenium is a portable software testing framework for web applications. XWiki uses Selenium for their integration testing. While I am learning how to write selenium tests I have learnt several things. Hope it would help others some times to blog here. XWiki mailing list and IRC helped me a lot to solve issues I faced. :)
I have started with Writing Selenium Tests For XWiki tutorial.
I wrote a test, com.xpn.xwiki.it.selenium.LoginObservationTest for the JIRA issue XWiki-3697.
After writing the test case, For first time run, I went to /enterprise/distribution-test/selenium-tests directory and run the following command as in tutorial
It showed an error saying
The problem is that by default Ubuntu used Firefox 3. Here are the use ful steps to run your XWiki selenium tests with FF3.
mvn install -Dpattern=LoginObservationTest
java.lang.RuntimeException: Firefox couldn't be found in the path! Please add the directory containing 'firefox-bin' to your PATH environment variable, or explicitly specify a path to Firefox like this: *firefox /blah/blah/firefox-bin
- Add your FF3 path to $PATH, if this does not work only change the pom.xml browser path to
<browser>*firefox /path/to/firefox3/firefox-bin</browser>
- change pom.xml selenium-maven-plugin version to
<version>1.0-rc-2</version>
- Enjoy running selenium tests with FF3. :)
Apr 28 2009
Introduction
Hi, I am Tharindu Madushanka, an undergraduate student of University of Moratuwa, SriLanka.
Email : tharindufit at gmail dot com
IM : tharindufit - Google Talk and Skype
Blog : Tharindu Madushanka
Project Name :
XMPPIntegration - XWki Jabber, Google Talk, Skype Integration
Project Description :
The idea is to integrate major IM tools like Jabber, Google Talk, Skype and allow XWiki users to chat with its members. In addition, it allows XWiki users to have multi user chatting with existing XWiki groups, users and also enables recording chat history when necessary. The XWiki users will have an easy to use but elegant user interface, which allows them to chat with XWiki users and also with other IM contacts (non XWiki) in their registered Jabber account. They will be having a great chat interface inside XWiki which is nicely integrated and balanced with existing features. In case, where user does not add their Jabber account details XWiki automatically creates a Jabber account for them. We internally create Jabber accounts for them with a Jabber server installed locally. At the end of this project, we will be using XWiki to chat while taking advantage of its all other advanced features. And more importantly XWiki users will be using their Jabber, Google Talk or Skype ids to chat if they prefer. (Great !)
Contact
Email : tharindufit at gmail dot com
IM : tharindufit - Google Talk and Skype
Blog : Tharindu Madushanka
Introduction to Project
Project Name :
XMPPIntegration - XWki Jabber, Google Talk, Skype Integration
Project Description :
The idea is to integrate major IM tools like Jabber, Google Talk, Skype and allow XWiki users to chat with its members. In addition, it allows XWiki users to have multi user chatting with existing XWiki groups, users and also enables recording chat history when necessary. The XWiki users will have an easy to use but elegant user interface, which allows them to chat with XWiki users and also with other IM contacts (non XWiki) in their registered Jabber account. They will be having a great chat interface inside XWiki which is nicely integrated and balanced with existing features. In case, where user does not add their Jabber account details XWiki automatically creates a Jabber account for them. We internally create Jabber accounts for them with a Jabber server installed locally. At the end of this project, we will be using XWiki to chat while taking advantage of its all other advanced features. And more importantly XWiki users will be using their Jabber, Google Talk or Skype ids to chat if they prefer. (Great !)