Skip to content

Instantly share code, notes, and snippets.

View nallachaitu's full-sized avatar

chaitanya nalla nallachaitu

  • Ramachandrapuram , India
View GitHub Profile
@nallachaitu
nallachaitu / Pom.xml
Created July 26, 2012 15:44
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>
<dependencies>
<dependency>
<groupId>org.jboss.spec</groupId>
@nallachaitu
nallachaitu / lukas.java
Created September 3, 2012 19:22
test file that contains the javascript test functions
public class lukas
{
@drone
browser initiation...
@Test
public void chaitu()
{
//get to the url
browser.get(....."url");
//reading results
@nallachaitu
nallachaitu / TestHandler.java
Created September 6, 2012 16:35
function for reading the results
package org.jboss.arquillian.qunit.junit;
import java.util.HashMap;
import org.jboss.arquillian.junit.Arquillian;
import org.junit.runner.RunWith;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.WebDriverWait;
@nallachaitu
nallachaitu / ClassGenerator.java
Created September 8, 2012 12:03
class generation -- I have added the name lukas for the areas you need to take a look
package org.jboss.arquillian.qunit.junit;
//Javassist jar is needed to run this code.
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
@nallachaitu
nallachaitu / error.log
Created September 10, 2012 16:39
Error log
javassist.NotFoundException: WebDriver
at javassist.ClassPool.get(ClassPool.java:436)
at javassist.ClassPool.getCtClass(ClassPool.java:501)
at org.jboss.arquillian.qunit.junit.ClassGenerator.getClass(ClassGenerator.java:51)
at org.jboss.arquillian.qunit.junit.ClassGenerator.main(ClassGenerator.java:123)
Exception in thread "main" java.lang.IllegalStateException: javassist.NotFoundException: WebDriver
at org.jboss.arquillian.qunit.junit.ClassGenerator.getClass(ClassGenerator.java:99)
at org.jboss.arquillian.qunit.junit.ClassGenerator.main(ClassGenerator.java:123)
Caused by: javassist.NotFoundException: WebDriver
at javassist.ClassPool.get(ClassPool.java:436)