moksh
Joined: 31 Aug 2007 Posts: 17
|
Posted: Sat Sep 01, 2007 4:56 pm Post subject: Emulating User Activity via Black Box Tests |
|
|
Black Box tests emulate user interaction with an application. Keeping the tests closely aligned with the manner in which users interact with the application is the key for quality tests.
Historically, writing Black Box tests was difficult. Applications used different GUI technologies and communication protocols; thus, the potential for tool reuse across applications was low. Commercial testing-tool packages relied on capturing mouse clicks and keystrokes, which proved brittle to change. The combination of wide usage of HTTP/HTML standards and an emerging number of open source projects makes Black Box testing an easier task. Emulating user activity on web sites can be done in several manners:
*Automating Internet Explorer via the SHDocVw COM interface.
*Using a commercial testing tool.
*Using an open source Java package like HttpUnit or jWebUnit.
HttpUnit is the focus of this article for several reasons:
*HttpUnit covers the useful spectrum of HTTP/HTML standards functionality, including forms, frames, JavaScript, SSL, cookies, headers. *HttpUnit can be used to test a web site written in any programming language.
*HttpUnit is written in Java, so the test cases can use the entire spectrum of Java functionality.
*HttpUnit executes within a JVM as a standard Java library and can be integrated easily with Ant scripts and daemon test agents.
*HttpUnit is an open source project. |
|