Book Image

Arquillian Testing Guide

By : John D. Ament
Book Image

Arquillian Testing Guide

By: John D. Ament

Overview of this book

<p>Integration testing sometimes involves writing complex codes. This book introduces you to the capabilities of Arquillian to enable you to write simple code with a broad range of integration tests for java applications. <br /><br />Arquillian Testing Guide serves as an introductory book to writing simple codes for testing java applications. This book will help you to develop richer test cases which can be run automatically while performing rigorous testing of the software. <br /><br />Arquillian Testing Guide introduces you to Arquillians features and capabilities. This book will help you understand the mechanism of creating deployments and test against those deployments. The book begins with basic JUnit test cases beginning with an enterprise test case, which then go on to discuss remote testing. During the course of the book, you will also learn how to mix container and non-container tests into a single test case. By the end of the book, you will have learned how to extend JUnit tests to work with Arquillian and deploy them to a container automatically.</p>
Table of Contents (17 chapters)

Functional testing


Functional testing is a necessary part of application testing to ensure that the functional requirements of what you are building are satisfied. These can be assumed as passing by reading requirements or acceptance criteria, performing the said function, and validating that the result is as expected.

Historically, functional testing has been performed manually. There is a certain amount of automated testing that has existed, such as automating the browser function and running scripts to ensure system status. Arquillian adds some more powerful assertions to help you get the most out of this automated testing. They are exposed in Drone, Warp, and Graphene, which this chapter covers in depth. We'll also look at some specific Spring MVC examples that use Warp.

Functional testing using Selenium

Once installed, Selenium IDE will be a menu option in Firefox. You can add the icon to your menu bar and launch the recording tool. The recording tool will capture clicks you perform based...