Browse Prior Art Database

BeanTester: A Web Application for Testing Server-Side Java Beans

IP.com Disclosure Number: IPCOM000013969D
Original Publication Date: 2001-Nov-01
Included in the Prior Art Database: 2003-Jun-19
Document File: 2 page(s) / 59K

Publishing Venue

IBM

Abstract

Developers of server-side Java Web applications require an easy way to test Java bean components. The BeanTester lets developers easily test the Java bean components they are developing or using in their applications. The BeanTester can be used to test any Java bean class or serialized object. The BeanTester is fully dynamic in the sense that no code generation is required. Without using a tool like the BeanTester, the developer would have to write a test client by hand. With the BeanTester, any bean can be immediately tested. The BeanTester is very easy to use since it is dynamic. The developer simply specifies the name of the bean as a request parameter to the BeanTester which then introspects the bean and presents a Web based user interface that lets the developer select a method to test, enter input parameters, invoke the method, and display the result. For example, suppose a Web Service named TemperatureConverter is being developed. To test this service, the developer deploys it, generates a client proxy Java bean named, e.g., weather.app.proxies.TemperatureConverterProxy, deploys the proxy to the BeanTester application, and invokes the BeanTester using the following URL: http://localhost:8080/WeatherDemo/test/testclient.jsp?beanName=weather.app.proxies.Tem

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 53% of the total text.

Page 1 of 2

BeanTester: A Web Application for Testing Server-Side Java Beans

Developers of server-side Java Web applications require an easy way to test Java bean components. The BeanTester lets developers easily test the Java bean components they are developing or using in their applications. The BeanTester can be used to test any Java bean class or serialized object. The BeanTester is fully dynamic in the sense that no code generation is required. Without using a tool like the BeanTester, the developer would have to write a test client by hand. With the BeanTester, any bean can be immediately tested.

The BeanTester is very easy to use since it is dynamic. The developer simply specifies the name of the bean as a request parameter to the BeanTester which then introspects the bean and presents a Web based user interface that lets the developer select a method to test, enter input parameters, invoke the method, and display the result.

For example, suppose a Web Service named TemperatureConverter is being developed. To test this service, the developer deploys it, generates a client proxy Java bean named, e.g., weather.app.proxies.TemperatureConverterProxy, deploys the proxy to the BeanTester application, and invokes the BeanTester using the following URL:

http://localhost:8080/WeatherDemo/test/testclient.jsp?beanName=weather.app.proxies.Tem
peratureConverterProxy

where the localhost:8080 denotes the host and port of the BeanTester application and WeatherDemo is the name of the Web application where BeanTester and the proxy are deployed. In this example, the BeanTester user interfa...