Arquillian Portal Extension 1.0.0.Beta1 Released

Since we wrote this post we didn't laze around. Check our latest announcement.

The Arquillian team is proud to announce the 1.0.0.Beta1 release of the Arquillian Portal Extension component!

Highlighted Features

Shrinkwrap Archive type for portlets

We now have PortletArchive for creating Shrinkwrap archives for portlets. (read more)

Helpers for creating portlet.xml

Within PortletArchive there are some simple helpers for creating the contents of portlet.xml. (read more)

Shrinkwrap Archive type for portlets

We can now use PortletArchive instead of WebArchive when we’re creating micro deployments for testing a portlet. In it includes methods for setting the content of portlet.xml without needing to specify the path, in a similar manner that WebArchive provides setWebXML() methods.

Helpers for creating portlet.xml

PortletArchive also adds some nice helpers for creating GenericPortlet or GenericFacesPortlet portlet definitions within portlet.xml. A GenericPortlet can be added to portlet.xml by:

Shrinkwrap.create(PortletArchive.class)
	.createSimplePortlet(MyPortletClass.class);

And adding a portlet for JSF is:

Shrinkwrap.create(PortletArchive.class)
	.createFacesPortlet("portletName", "Portlet Title", "index.xhtml");

For examples on how to use these extensions with their respective portal containers, you can take a look at the testsuite of Portlet Bridge.

We look forward to hearing your feedback about this release in the community forums!

What is Arquillian?

Arquillian is open source software that empowers you to test JVM-based applications more effectively. Created to defend the software galaxy from bugs, Arquillian brings your test to the runtime so you can focus on testing your application's behavior rather than managing the runtime. Using Arquillian, you can develop a comprehensive suite of tests from the convenience of your IDE and run them in any IDE, build tool or continuous integration environment.

Release details

Component Arquillian Portal Extension
Version 1.0.0.Beta1 view tag
Release date 2013-01-31
Released by Ken Finnigan
Compiled against

Published artifacts org.jboss.arquillian.extension

  • org.jboss.arquillian.extension » arquillian-portal-api jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-portal-spi jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-portal-impl jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-portal jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-portal-shrinkwrap-api jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-portal-shrinkwrap-impl jar javadoc pom

Release notes and resolved issues 2

Feature Request
  • ARQ-1279 - Create PortletArchive as Shrinkwrap archive type for portlets

Thanks to the following list of contributors: Ken Finnigan

Arquillian Android Extension 1.0.0.Alpha2 Released

The Arquillian team is proud to announce the 1.0.0.Alpha2 release of the Arquillian Android Extension component!

Arquillian Android Extension has reached the Alpha2 milestone. This is a bugfix release with a few new nice features.

Significant changes in 1.0.0.Alpha2

Ability to specify ABI

Since Android 4 the SDK allows to define multiple ABI types for the emulator. We now honor this property and fail fast if multiple ABIs are available during creation of the emulator.

arquillian.xml
<extension qualifier=“android”>
<property name=“abi”>armeabi-v7a</property>
</extension>
Ability to inject Android Driver instance into the test

You now have limited control of the device from the test itself.

AndroidApkInstallationTestCase.java
@ArquillianResource
AndroidDevice device;
    
    @Test
public void installAndUninstallApk() throws AndroidExecutionException {
    device.installPackage(new File("src/test/apk/calculator.apk"), true);
    
        List<String> installedApps = getInstalledPackages(device);
    
        Assert.assertTrue("Calculator app was installed", installedApps.contains(CALCULATOR_APP));
    device.uninstallPackage(CALCULATOR_APP);
    
    installedApps = getInstalledPackages(device);
Assert.assertFalse(“Calculator app was uninstalled”, installedApps.contains(CALCULATOR_APP));
}

Big thanks go to Jan Papousek (@jan_papousek) for improving and testing this release!

We hope that you’ll enjoy the improvements. We look forward to hear your feedback in the community forums.

What is Arquillian?

Arquillian is open source software that empowers you to test JVM-based applications more effectively. Created to defend the software galaxy from bugs, Arquillian brings your test to the runtime so you can focus on testing your application's behavior rather than managing the runtime. Using Arquillian, you can develop a comprehensive suite of tests from the convenience of your IDE and run them in any IDE, build tool or continuous integration environment.

Release details

Component Arquillian Android Extension
Version 1.0.0.Alpha2 view tag
Release date 2013-01-09
Released by Lukas Fryc
Compiled against

Published artifacts org.jboss.arquillian.extension

  • org.jboss.arquillian.extension » arquillian-android-bom pom
  • org.jboss.arquillian.extension » arquillian-android-api jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-android-configuration jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-android-impl jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-android-spi jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-android-drone jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-android-depchain pom
  • org.jboss.arquillian.extension » arquillian-android-tests jar javadoc pom

Thanks to the following list of contributors: Karel Piwko, Lukas Fryc, Jan Papoušek, Aslak Knutsen

Arquillian Portal Extension 1.0.0.Alpha2 Released

Since we wrote this post we didn't laze around. Check our latest announcement.

The Arquillian team is proud to announce the 1.0.0.Alpha2 release of the Arquillian Portal Extension component!

The Portal extension for Arquillian brings testing into the world of Portlets!

Some of the highlights in this release

URL injection of portlets by name. @PortalURL now supports defining the names of the portlets that you want rendered on the page of the injected URL. You can either specify a single portlet name, multiple, or leave it empty and it will load all portlets defined within portlets.xml onto the page. Injecting a URL of a portlet page with the MyPortlet portlet present is done by:

MyTest.java
@ArquillianResource
@PortalURL("MyPortlet")
URL portletPage;

Annotation for marking portlet tests. @PortalTest now represents a marker on a test class that signifies to Portal extension implementations that a portlet test is being invoked. This enables for augmenting the test deployment with whatever information is needed for particular portlet containers to enable a portlet to be tested. It has the added benefit of decoupling a test needing to inject a @PortalURL if the tests don’t require a URL to the portlet page.

Currently there are two implementations of this extension for use with Pluto and GateIn portal containers.

For examples on how to use these extensions with their respective portal containers, you can take a look at the testsuite of JBoss Portlet Bridge.

We look forward to hearing your feedback about this release in the community forums!

What is Arquillian?

Arquillian is open source software that empowers you to test JVM-based applications more effectively. Created to defend the software galaxy from bugs, Arquillian brings your test to the runtime so you can focus on testing your application's behavior rather than managing the runtime. Using Arquillian, you can develop a comprehensive suite of tests from the convenience of your IDE and run them in any IDE, build tool or continuous integration environment.

Release details

Component Arquillian Portal Extension
Version 1.0.0.Alpha2 view tag
Release date 2012-10-17
Released by Ken Finnigan
Compiled against

Published artifacts org.jboss.arquillian.extension

  • org.jboss.arquillian.extension » arquillian-portal-api jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-portal-spi jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-portal-impl jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-portal jar javadoc pom

Release notes and resolved issues 6

Enhancement
  • ARQ-1117 - Support Portal URL for specific portlet or several on a page
Bug
  • ARQ-961 - Error in README for the name of additional URL qualifier
Task
  • ARQ-1115 - Introduce Portal depchain
  • ARQ-1116 - Change references of portal container to portlet container
  • ARQ-1151 - Update Portal Extension to Core 1.0.2.Final

Thanks to the following list of contributors: Ken Finnigan, Thomas Delhoménie

Arquillian Portal Extension 1.0.0.Alpha1 Released

Since we wrote this post we didn't laze around. Check our latest announcement.

The Arquillian team is proud to announce the 1.0.0.Alpha1 release of the Arquillian Portal Extension component!

This is the first release of a new Arquillian Extension for assisting in the complex task of testing portlets in a portal environment.

Some of the highlights in this release

Portal URL resource

What is Arquillian?

Arquillian is open source software that empowers you to test JVM-based applications more effectively. Created to defend the software galaxy from bugs, Arquillian brings your test to the runtime so you can focus on testing your application's behavior rather than managing the runtime. Using Arquillian, you can develop a comprehensive suite of tests from the convenience of your IDE and run them in any IDE, build tool or continuous integration environment.

Release details

Component Arquillian Portal Extension
Version 1.0.0.Alpha1 view tag
Release date 2012-05-08
Released by Ken Finnigan
Compiled against

Published artifacts org.jboss.arquillian.extension

  • org.jboss.arquillian.extension » arquillian-portal-api jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-portal-spi jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-portal-impl-base jar javadoc pom

Release notes and resolved issues 4

First Release of Portal Extension

Task
  • ARQ-902 - Add README to portal extension project
  • ARQ-903 - Update pom.xml with missing information
  • ARQ-904 - Update license to ASLv2

Thanks to the following list of contributors: Ken Finnigan

Arquillian Android Extension 1.0.0.Alpha1 Released

Since we wrote this post we didn't laze around. Check our latest announcement.

The Arquillian team is proud to announce the 1.0.0.Alpha1 release of the Arquillian Android Extension component!

The Arquillian Android extension allows you to use the Android SDK in your Arquillian tests. Most notably, it allows you to start an Android Virtual device or connect to a real device. A part of the Android Extension for Arquillian is the Android Drone Extension. This extension allows you to easily configure WebDriver based tests which will be executed directly in an emulator device.

When testing your application, you can then easily switch between desktop and mobile UI or develop mobile specific tests.

How to use it?

First, download the Android SDK from developer.android.com and point the ANDROID_HOME system variable to the directory where you extracted the SDK. You can then update and install specific SDK versions by running the `android` command.

Next, add Android extension to dependencies. This depchain will add both Arquillian Android and Android Drone extensions.

<dependency>
    <groupId>org.jboss.arquillian.extension</groupId>
    <artifactId>arquillian-android-depchain</artifactId>
    <version>1.0.0.Alpha1</version>
    <type>pom</type>
    <scope>test</scope>
</dependency>

Note: Make sure you do NOT have the Arquillian Drone Selenium Server on classpath, as it will collide with the Android SDK unless configured to run on a different port. If you can’t remove it from classpath, you should disable it in arquillian.xml

<extension qualifier="selenium-server">
    <!-- this must be skipped, we run /wd/hub on emulator -->
    <property name="skip">true</property>
</extension>

Download the Android Server APK to be installed to you mobile device from code.google.com. Use android-server-2.6.0.apk for devices including Android 2.3.4, latest version for Android 3.0 and newer.

Set up WebDriver in arquillian.xml

<extension qualifier="webdriver">
    <!-- this makes WebDriver connect hub on Android device -->
    <property name="remoteAddress">http://localhost:14444/wd/hub</property>
</extension>

Set up Android in arquillian.xml

<extension qualifier="android">
    <!-- this is optional, can be set via ANDROID_HOME property -->
    <property name="home">/home/kpiwko/apps/android-sdk-linux_x86</property>
    <!-- Nexus S -->
    <!-- <property name="serialId">3233E8EDB21700EC</property>-->

    <property name="verbose">true</property>
    <property name="apiLevel">13</property>
    <property name="avdName">SnapshotEnabled</property>
    <property name="emulatorBootupTimeoutInSeconds">180</property>
</extension>

Properties explained, required in bold:

  • home – Android SDK home, can be ommited if set via ANDROID_HOME property
  • avdName – name of the Android Virtual Device. It will be either created or reused
  • apiLevel – (10) denotates API level, use android list target to get more variants
  • serialId – replaces avdName if set and available, represents a real device. Use adb devices to get the list
  • skip – (false) skip execution
  • verbose – (false) be verbose
  • force – (false) force emulator recreationg
  • sdSize – (128M) SD card size for emulator
  • emulatorBootupTimeoutInSeconds – (180) maximal time to get emulator started, use Snapshot enabled device if it takes too long
  • emulatorOptions – emulator options

Emulators are created by default in ${basedir}/${avdName}.

Set up Android Drone in arquillian.xml

<extension qualifier="android-drone">
    <property name="androidServerApk">android-server-2.16.apk</property>
</extension>

Properties explained, required in bold:

  • androidServerApk – path to the Android Server APK you’ve downloaded
  • skip – (false) skip execution
  • verbose – (false) be verbose
  • webdriverPortHost – (14444) port on Host connected with port on device
  • webdriverPortGuest – (8080) port on Guest connected with port on Host

Big thanks go to Jan Papousek (@jan_papousek) for improving and testing this release!

What is Arquillian?

Arquillian is open source software that empowers you to test JVM-based applications more effectively. Created to defend the software galaxy from bugs, Arquillian brings your test to the runtime so you can focus on testing your application's behavior rather than managing the runtime. Using Arquillian, you can develop a comprehensive suite of tests from the convenience of your IDE and run them in any IDE, build tool or continuous integration environment.

Release details

Component Arquillian Android Extension
Version 1.0.0.Alpha1 view tag
Release date 2012-02-29
Released by Aslak Knutsen
Compiled against

Published artifacts org.jboss.arquillian.extension

  • org.jboss.arquillian.extension » arquillian-android-bom pom
  • org.jboss.arquillian.extension » arquillian-android-api jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-android-configuration jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-android-impl jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-android-spi jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-android-drone jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-android-depchain pom
  • org.jboss.arquillian.extension » arquillian-android-tests jar javadoc pom

Release notes and resolved issues 1

Initial Support for Android via Drone WebDriver

Thanks to the following list of contributors: Karel Piwko, Aslak Knutsen, Jan Papoušek