Skip to content

Instantly share code, notes, and snippets.

@kpiwko
Created April 11, 2012 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kpiwko/2357710 to your computer and use it in GitHub Desktop.
Save kpiwko/2357710 to your computer and use it in GitHub Desktop.
Cover your web and mobile applications with integration tests from scratch
Session Descriptor Fields
* Indicates a mandatory field
Title*: Cover your web and mobile applications with integration tests from scratch
Abstract*:
Using a web application is easy. Testing it should be easy as well. Arquillian, a revolutionary Java Enterprise testing platform, together with its extensions Arquillian Drone and Arquillian Android, allows that.
In this session you will learn how to integrate already existing testing frameworks, like JUnit with web testing tool Selenium. The Maven infrastructure of a project will be leveraged as well. Whatever technology are you using to create web pages, wherever is the application deployed and whatever browser including mobile ones are you using, configuring a test environment is a matter of minutes.
Do not spend time with configuration, skip right to writing web tests.
Presentation Summary*:
This tutorial session is based on an idea of picking an arbitrary application which will be covered by integration tests. I can provide either a JSF based application or use plain HTML5, other technologies can be discussed as well if desired (GWT, for instance).
Attendees will see how easily can integration and unit tests be combined together and how seamlessly they can switch between test and development environments. Test will be developed from scratch. I’ll start with a brief overview of an application and then show users what steps are required to create a test which can be deployed in any continuous integration system.
First, a brief introduction to an application and a basic test using JPA without a view layer would be presented.
Later, I’ll add a simple test which basically checks that an application is deployed. This scenario will be used to show attendees how to easily switch between various browsers and/or application servers.
Next, tests will be upgraded to verify a functionality of the application. These test will be executed on both local and cloud environments.
Finally, the test would be executed on a mobile emulator and on a real device with Android.
Attendees would be convinced that writing an integration tests for continuous integration is pretty easy, no matter where you want to test the application.
Primary Track*: Development Tools and Techniques
Secondary Track: Java EE Web Profile and Platform Technologies
Takeaways*:
* Cover an application with integration tests from scratch
* Reduce the effort required to write web user interface tests
* Execute integration tests on both mobile emulators and real devices
Tags: java testing web mobile cloud
Session Type*: Tutorials
Session Category*: Best Practices
Experience Level*:
Intermediate
Attendee roles*: This field describes the attendee roles toward which the session is geared. You may select a maximum of two roles:
Enterprise Developer
Quality Assurance/Testing Engineer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment