Script Languages and Test Agents
A script language enables developers to rapidly develop and easily maintain test agents. A script language also permits regular expression evaluation, program flow control, and code reuse. As an example, consider a test agent written with TestMaker that monitors weather conditions at a major airport and signals an alert when the temperature becomes too cold for certain equipment to function properly.
The Airport Weather Alert Agent in Listing 22.1 learns the weather from a weather service specific to airports. A second Web service handles signaling the alert by sending an email message to a manager.
Listing 22.1. Airport Weather Alert Agent
# Airport Weather Alert Agent # # Demonstration of an intelligent test ... |
Get Java™ Web Services Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.