Hi All,
For quite sometime we have been trying to setup the tellurium project
for testing our application but for no avail. Following are the steps
that ngI have followed so far and still unable to get the framework
running.
First did the following
mvn archetype:create -DgroupId=test -DartifactId=demo \-
DarchetypeArtifactId=tellurium-junit-archetype \-
DarchetypeGroupId=org.telluriumsource \-DarchetypeVersion=0.7.0 \-
DarchetypeRepository=
http://maven.kungfuters.org/content/repositories/
releases
Second I ran
MVN Test
Got the following error:
Test set: test.GoogleSearchJUnitTestCase
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.008
sec <<< FAILURE!
test.GoogleSearchJUnitTestCase Time elapsed: 0.011 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class
org.telluriumsource.framework.TelluriumFrameworkMetaClass
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.telluriumsource.framework.bootstrap.TelluriumSupport.class$
(TelluriumSupport.groovy)
at org.telluriumsource.framework.bootstrap.TelluriumSupport.$get$
$class$org$telluriumsource$framework
$TelluriumFrameworkMetaClass(TelluriumSupport.groovy)
at
org.telluriumsource.framework.bootstrap.TelluriumSupport.addSupport(TelluriumSupport.groovy:
17)
Also i tried
mvn archetype:create -DgroupId=newproject -DartifactId=junitdemo \
-DarchetypeArtifactId=tellurium-junit-archetype \
-DarchetypeGroupId=org.telluriumsource \
-DarchetypeVersion=0.8.0-SNAPSHOT \
-DarchetypeRepository=
http://maven.kungfuters.org/content/
repositories/snapshots
and then mvn test
got the below error.
[INFO] Compilation failure
/home/bala/automation/junitdemo/src/test/groovy/test/
GoogleSearchJUnitTestCase.java:[130,8] cannot find symbol
symbol : method useCache(boolean)
location: class test.GoogleSearchJUnitTestCase
/home/bala/automation/junitdemo/src/test/groovy/test/
GoogleSearchJUnitTestCase.java:[131,28] cannot find symbol
symbol : method getCacheState()
location: class module.GoogleSearchModule
/home/bala/automation/junitdemo/src/test/groovy/test/
GoogleSearchJUnitTestCase.java:[134,8] cannot find symbol
symbol : method useCache(boolean)
location: class test.GoogleSearchJUnitTestCase
/home/bala/automation/junitdemo/src/test/groovy/test/
GoogleSearchJUnitTestCase.java:[135,20] cannot find symbol
symbol : method getCacheState()
location: class module.GoogleSearchModule
/home/bala/automation/junitdemo/src/test/groovy/test/
GoogleSearchJUnitTestCase.java:[137,8] cannot find symbol
symbol : method useCache(boolean)
location: class test.GoogleSearchJUnitTestCase
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.BuildFailureException: Compilation failure
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
715)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:
556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:
535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecut