Thursday, May 15, 2008

Watij - Web Application Testing in Java

WATIJ stands for 'Web Application Testing in Java'. J2EE deals with creating Web Applications, and like in most cases project teams cannot afford dedicated testers due to "resource limitations", "schedule limitation", "management limitations" and for many other unique explanations and reasons. In some cases where they even do hire manual testers, the job of the tester becomes tedious since most of the team nowadays follows Iterative development model like AGILE, Spiral etc. And thus they need to repeat testing for same set of functionality with every release to ensure that 'new' has not broken 'previous'. And thus with every release the burden on the poor fellow only keeps on getting tougher. Like many other web application, one very important but common feature is Authentication & Authorization. Authentication stands for identifying the users while Authorization refers to validating user's rights within the system. For all these functionalities the tester has to check every time with every release whether they are intact or not. THIS CAN BE AUTOMATED and thus bringing hours of testing effort to be reduced to minutes of self automated runs.

Now, I know that you know that it can be automated using costly tools like QTP etc. But what I am telling you is that it can be done free of cost using a Open Source tool name as WATIJ. Watij is built over JUnit and thus provides similar interfaces to write the tests. But writing tests are very very simple, when I say simple it means so simple that even my QC and QA who doesn't had previous experience on Java where able to write hundreds of tests. The (wiki) site provides easy tutorials to start with and I am sure you will love it when you start using it.

But there is a catch, as there are few limitations to the tool at the moment.

1. Currently it only works with IE
2. It doesn't works with Applet (Huh, like any body is using it nowadays).

I tried it with AJAX and it gave good response on many occasions but not sure if it can support advance javascript functionalities like "Drag and Drop" etc. But with all the features it has, mind you it is worth trying.

7 comments:

Anonymous said...

ITSolusenz departments manage all components web application, software development including, Application Development Company, software development company india, Software Development Services.

Anonymous said...

Can anyone recommend the robust Remote Management program for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central system monitoring
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!

Amit said...

Hi,

I'm currently using Watij library to create JUnit test cases for my UI automation.
But I'm stuck at automating HTTP Authentication.
Since the Authentication dialog box is not a DOM object but a native one, Watij is not able to detect it.
Please suggest a way out.

deven on February 14, 2011 at 6:17 PM said...

can u pls give me the basic information i.e.which and where jar file is import.
can u send me small tutorial on watij "search in google" and pls share the path for downloading the watij because i am also facing some problum to download
can it use for pega application?
my mail id is-
deven87@gmail.com

Rahul Choudhary on February 14, 2011 at 8:47 PM said...

Dear deven, this is a very old post. Since then there was a very small improvement in Watij and probably this open source project died. I recomment using Selenium-rc (it has four variants, rc is what you need), it is the best automation framework available and usage is exactly similar to Watij. There are lot of resources available on Selenium. Hope this helps
Cheers!

deven on February 16, 2011 at 12:13 PM said...

Hi Rahul,
thanks for that, but I want to test pega web application i hope selenium-rc is suitable for that application.
have you use watij api for testing because i have very confused how to use it.I see the watij.com in that lunch another api webspec_1.3.1.
I want to use that
thaks a lot rahul

happy testing :)
Regards,
Deven Pawar

akhilapriya404 on October 22, 2018 at 6:46 PM said...

Thanks for sharing this blog post,Nice written skill selenium Online Training Bangalore

 

Site Info

Text

Java 2 Enterprise Edition Copyright © 2009 Community is Designed by Bie