Skip to content

Instantly share code, notes, and snippets.

View kpiwko's full-sized avatar

Karel Piwko kpiwko

  • Red Hat
  • Brno, Czech Republic
View GitHub Profile
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.8.1</version>
<executions>
<execution>
<id>default-test</id>
<goals>
<goal>test</goal>
@kpiwko
kpiwko / gist:1848342
Created February 16, 2012 22:25
Running Arquillian Drone tests

Prerequisites and software used in the demo

  • Install Eclipse, JBoss Tools 3.3.0.M5
  • JBoss AS 7.1.0.CR1b into Eclipse as runtime
  • Create a new HTML5 based example from JBoss Central
    • Note that project must consists of letters only, to be precise must represent a a valid database table name.

Example modification

@kpiwko
kpiwko / gist:2037065
Created March 14, 2012 15:02
Usage of ShrinkWrap Maven Resolver depchain and bom artifacts
<dependencyManagement>
<dependencies>
<!-- We are overriding version of ShrinkWrap Maven Resolver from Arquillian BOM-->
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-bom</artifactId>
<version>2.0.0-alpha-1</version>
<type>pom</type>
<scope>import</scope>
@kpiwko
kpiwko / gist:2357710
Created April 11, 2012 07:54
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.
@kpiwko
kpiwko / gist:2357721
Created April 11, 2012 07:57
Unified Continuous Integration Tests for Mobile and Web Applications
Title*: Unified Continuous Integration Tests for Mobile and Web Applications
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.
@kpiwko
kpiwko / gist:2375587
Created April 13, 2012 10:12 — forked from lfryc/gist:2375140
New Drone configuration proposal (brain-storming section)
# the driver implementation selection using implementationClass is pain in the ass, consider following
<extension:drone>
<firefoxDriver>
</firefoxDriver>
</extension:drone>
Other idea is to have a possibility to use capabalities, which are much more common in webdriver world than Drone exposes.
@kpiwko
kpiwko / gist:2502823
Created April 26, 2012 20:29
ShrinkWrap Maven Resolver Use Cases
package org.jboss.shrinkwrap.resolver.test;
import java.io.File;
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.jboss.shrinkwrap.resolver.api.DependencyResolvers;
import org.jboss.shrinkwrap.resolver.api.maven.Maven;
import org.jboss.shrinkwrap.resolver.api.maven.MavenConfigurationTypes;
@kpiwko
kpiwko / gist:2507583
Created April 27, 2012 08:54
W-JAX 2012: HTML5 testing: Unify Desktop and Mobile Tests using Cloud
Title*: HTML5 testing: Unify Desktop and Mobile Tests using Cloud
Abstract*:
Using a web application is easy. Testing it should be easy as well.
In this session you will learn how to integrate existing testing frameworks, like JUnit, Selenium and Android SDK together using Arquillian testing platform. Arquillian will give you to possibility to migrate tests from desktop browsers to mobile ones or easily switch deployment location.
Do not spend time with manual steps anymore!
Extended Abstract:
-------------------------------------------------------------------------------
Test set: org.jboss.shrinkwrap.resolver.impl.maven.integration.PluginIntegrationTestCase
-------------------------------------------------------------------------------
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.272 sec <<< FAILURE!
strictlyLoadTestDependencies(org.jboss.shrinkwrap.resolver.impl.maven.integration.PluginIntegrationTestCase) Time elapsed: 4.393 sec <<< ERROR!
org.jboss.shrinkwrap.resolver.api.NoResolutionException: Unable to get artifact from the repository
at org.jboss.shrinkwrap.resolver.impl.maven.MavenStrategyStageImpl.using(MavenStrategyStageImpl.java:125)
at org.jboss.shrinkwrap.resolver.impl.maven.ConfiguredResolveStageImpl.importAnyDependencies(ConfiguredResolveStageImpl.java:160)
at org.jboss.shrinkwrap.resolver.impl.maven.ConfiguredResolveStageImpl.importRuntimeDependencies(ConfiguredResolveStageImpl.java:111)
at org.jboss.shrinkwrap.resolver.impl.maven.integration.PluginIntegr
@kpiwko
kpiwko / gist:3736492
Created September 17, 2012 09:52
ShrinkWrap Maven Resolver 2.0.0-alpha-2 dependency tree
org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:jar:2.0.0-alpha-2
+- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven:jar:2.0.0-alpha-2:compile
| \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api:jar:2.0.0-alpha-2:compile
+- org.sonatype.aether:aether-api:jar:1.13.1:compile
+- org.sonatype.aether:aether-impl:jar:1.13.1:compile
+- org.sonatype.aether:aether-spi:jar:1.13.1:compile
+- org.sonatype.aether:aether-util:jar:1.13.1:compile
+- org.sonatype.aether:aether-connector-wagon:jar:1.13.1:compile
+- org.codehaus.plexus:plexus-classworlds:jar:2.4:compile
+- org.codehaus.plexus:plexus-utils:jar:2.0.6:compile