Purchase Solution

We Service Unit Testing Tools

Not what you're looking for?

Ask Custom Question

Hi,
I need assistance in the following problem please.
I am supposed to write 800 my own words with referencing please.

We have discussed a few web service Following are the Unit testing tools. In your opinion, are they really useful?
In several cases, we may want to test the web services without running a browser, HttpUnit/ServletUnit (http://httpunit.sourceforge.net/) help us to achieve this task. HttpUnit (written in Java) emulates the relevant portions of browser behavior, including form submission, JavaScript, basic http authentication, cookies and automatic page redirection, and allows Java test code to examine returned pages either as text, an XML DOM, or containers of forms, tables, and links. When combined with a framework such as JUnit that we have discussed during week 3, it is fairly easy to write tests that very quickly verify the functioning of a web site.

HtmlUnit (http://htmlunit.sourceforge.net/) is another java unit testing framework for testing web based applications. It is similar in concept to HttpUnit but with very different implementation. While HttpUnit models the http protocol (so we can deal with request and response objects), HtmlUnit models the returned document (so we can deal with pages and forms and tables).

jWebUnit (http://jwebunit.sourceforge.net/) is a Java testing framework that combines the functionality of HttpUnit with JUnit and includes ready-to-use assertions. jWebUnit extends JUnit with WebTestCase.

Quilt (http://quilt.sourceforge.net/) can be used for measuring coverage in the testing of Java programs and it could be applied to the above Unit test tools.

Other client side automatic web testing tools include:
 Canoo (http://webtest.canoo.com/) that lets you to specify a sequence of test steps and run it (e.g., get login page, validate the login page, input login name/password, click the OK button, and verify the returned page)
 MaxQ (http://maxq.tigris.org/) that records your using of a web site and turns the links you click on and any other input into a Python script that you can play back at any time
 JSpider (http://j-spider.sourceforge.net/) that can check web site errors, links, and analyze site structure
 JMeter (http://jakarta.apache.org/jmeter/) that can be used for performance test both on static and dynamic resources (files, Servlets, Perl scripts, Java Objects, Data Bases and Queries, FTP Servers and more)

Though the above mentioned tools are mainly for client side Web service Unit testing, Cactus (originally called J2EEUnit, http://jakarta.apache.org/cactus/) is a simple test framework for server-side unit testing tool (e.g., to test Servlets, EJBs, Tag Libs, Filters, etc.).

Thanks & Best Regards,

Purchase this Solution

Solution Summary

This solution presents a brief analysis of the various web service unit testing tools including HTMLUnit and JWebUnit.

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Javscript Basics

Quiz on basics of javascript programming language.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.