Skip to content

Instantly share code, notes, and snippets.

@lfryc
lfryc / TestHandler.java
Created September 3, 2012 19:26 — forked from nallachaitu/lukas.java
test file that contains the javascript test functions
class TestHandler {
static void runQUnitMethod(WebDriver browser, String className, String methodName) {
String url = ...; // compose URL
browser.get("...");
// wait and read results
}
}
public class ABC {
@Test
public void xyz() {
// open URL
browser.navigate.to("file:///mnt/workspace/test.html?filter=xyz");
// read results
...
}
}
@lfryc
lfryc / gist:3508324
Created August 29, 2012 08:06 — forked from bleathem/gist:3508270
Graphene Login component
public class LoginComponent {
@Root
private WebElement driver;
@FindBy(id="loginForm:username")
private WebElement usernameInput;
@FindBy(id="loginForm:password")
private WebElement passwordInput;
http://82.225.216.221:4242/blog/2012/08/01/news-richfaces-cdk/
=======
Fragmnets warning - JIRA link
cc:renderFacet is adequeate to the same tag from composite components
wildcard - it can even support onkey*:oninputkey* mapping
component - was always available, but now it is cast additionally to given class automatically
@lfryc
lfryc / Pom.xml
Created July 26, 2012 16:11 — forked from nallachaitu/Pom.xml
pom file for drone test
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.arquillian.example</groupId>
<artifactId>arquillian-tutorial</artifactId>
<version>1.0.0-SNAPSHOT</version>
<dependencyManagement>
package org.richfaces.test.application.push;
import static org.junit.Assert.assertTrue;
import java.net.URL;
import javax.servlet.http.HttpServletRequest;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.container.test.api.RunAsClient;
package org.richfaces;
import static org.junit.Assert.assertTrue;
import java.net.URL;
import java.util.Collection;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.container.test.api.RunAsClient;
import org.jboss.arquillian.drone.api.annotation.Drone;
<!-- JBoss, Home of Professional Open Source Copyright 2010, Red Hat, Inc.
and individual contributors by the @authors tag. See the copyright.txt in
the distribution for a full listing of individual contributors. This is free
software; you can redistribute it and/or modify it under the terms of the
GNU Lesser General Public License as published by the Free Software Foundation;
either version 2.1 of the License, or (at your option) any later version.
This software is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
details. You should have received a copy of the GNU Lesser General Public
<?xml version="1.0" encoding="UTF-8"?>
<!--
JBoss, Home of Professional Open Source Copyright 2010, Red Hat,
Inc. and individual contributors by the @authors tag. See the
copyright.txt in the distribution for a full listing of
individual contributors. This is free software; you can
redistribute it and/or modify it under the terms of the GNU
Lesser General Public License as published by the Free Software
Foundation; either version 2.1 of the License, or (at your
option) any later version. This software is distributed in the
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0