Autocompletion using AngularJS, TypeAheadJS, Spring MVC, iBatis

Background

As I’ve mentioned in other articles. We have old web application using Struts 1, Spring, and iBatis.

My boss has informally shared his plan to replace the struts with Spring MVC, replace old javascript with angularJS, and some other exciting plans. However, that’s not a top priority.

The existing web user interface is plain JSP with no Ajax whatsoever.

User still need to key in some value like port code, country code, and other domain-related code using normal input without any sort of hints from the system. And they’ve been using this old software for about 5 years! Amazing! The users can use this software without complaint probably because they’ve been working in their vessel terminal for a very long time. They remember all those codes by heart.

Requirement

We want to gradually provide better UI experience in the newer version of this software. In this article, we’ll focus on providing autocompletion for port code. Continue reading

Functional Testing with Geb (webdriver with steroid) in Java Maven project

Background

My company has existing Java enterprise project.  One of the project is web application developed using old version of Spring, Struts, & iBatis.

My task is to upgrade some of libraries & dependencies, make it works with Microsoft SQL (previously it runs only on top of Oracle DB), and deploy it to Tomcat instead of Oracle Weblogic. Basically, there will be changes but the UI will remain the same. UI will be the last part to upgrade.

Ideally, I can just reuse existing functional testing codes to make sure my modification doesn’t break existing code.

Unfortunately, the previous developer didn’t write a single test code.  So, I’m planning to start covering all the codes with tests, be it unit test, integration, and/or functional tests.

Requirement

For this article, we’ll focus on writing functional testing code

Continue reading