Arquillian Testing Guide

Get familiarized with the Arquillian framework and its capabilities to carry out integration and functional testing on a Java virtual machine

Arquillian Testing Guide

Starting
John D. Ament

Get familiarized with the Arquillian framework and its capabilities to carry out integration and functional testing on a Java virtual machine
$23.99
$39.99
RRP $23.99
RRP $39.99
eBook
Print + eBook
$12.99 p/month

Want this title & more? Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.
+ Collection
Free Sample

Book Details

ISBN 139781782160700
Paperback242 pages

About This Book

  • Build effective unit tests and integration using Arquillian and JUnit
  • Leverage Arquillian to test all aspects of your application – UI, SOAP and REST based applications
  • Run your tests the easy way using Arquillian in a container

Who This Book Is For

This book is for developers and testers alike. Anyone who has worked with test driven development or building automated test cases will find use in this book. A reader should be familiar with some automation strategies and techniques such as JUnit and should have some exposure to techniques such as mocking.

Table of Contents

Chapter 1: The Aliens Have Landed!
The progression of testing
What is Arquillian
Summary
Chapter 2: The Evolution of Testing
How did we get here?
A jump in technology
Summary
Chapter 3: Container Testing
Containers and deployments
Summary
Chapter 4: Why Did the Test Fail?
Running your tests – the downside
Summary
Chapter 5: Enriching the Enterprise Test Case
Testing the dependency injection
Failure scenarios
Introduction to Arquillian extensions
Summary
Chapter 6: Arquillian Extensions
Extending Arquillian
Testing against a database using JPA
The transaction extension
Multiple artifacts
Spock, very groovy test writing
Summary
Chapter 7: Functional Application Testing
Functional testing
Summary
Chapter 8: Service Testing
Service testing approaches
Summary
Chapter 9: Arquillian and OSGi
OSGi and Arquillian
Summary
Chapter 10: ShrinkWrap in Action
What is ShrinkWrap?
Managing libraries and modules
Summary

What You Will Learn

  • Develop automated tests using Arquillian and JUnit
  • Create tests using Selenium and then execute them paired with Arquillian Drone
  • Test using Arquillian Graphene to manipulate the DOM of your web applications
  • Learn how to use Arquillian and Spring to automatically wire an application context
  • Learn how to deploy your web services and test them automatically using Arquillian and soapUI

In Detail

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.

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.

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.

Authors

Table of Contents

Chapter 1: The Aliens Have Landed!
The progression of testing
What is Arquillian
Summary
Chapter 2: The Evolution of Testing
How did we get here?
A jump in technology
Summary
Chapter 3: Container Testing
Containers and deployments
Summary
Chapter 4: Why Did the Test Fail?
Running your tests – the downside
Summary
Chapter 5: Enriching the Enterprise Test Case
Testing the dependency injection
Failure scenarios
Introduction to Arquillian extensions
Summary
Chapter 6: Arquillian Extensions
Extending Arquillian
Testing against a database using JPA
The transaction extension
Multiple artifacts
Spock, very groovy test writing
Summary
Chapter 7: Functional Application Testing
Functional testing
Summary
Chapter 8: Service Testing
Service testing approaches
Summary
Chapter 9: Arquillian and OSGi
OSGi and Arquillian
Summary
Chapter 10: ShrinkWrap in Action
What is ShrinkWrap?
Managing libraries and modules
Summary

Book Details

ISBN 139781782160700
Paperback242 pages
Read More