Also, in the project pom.xml file, if you uncomment the following line,
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <includes>
                        <include>**/*_UT.java</include>
                        <!--<include>**/*TestCase.java</include>-->   <--
this line
                    </includes>
                </configuration>
            </plugin>

Then, the following Maven command

mvn clean test

should be able to run the tests.

Thanks,

Jian


On Wed, Jul 14, 2010 at 8:40 PM, Jian Fang <[email protected]> wrote:

> That is really wired. Did you load up the tellurium-website project by its
> pom.xml file?
>
> Thanks,
>
> Jian
>
>
> On Wed, Jul 14, 2010 at 5:35 PM, Jade <[email protected]> wrote:
>
>> Thank you for the feedback. I ended up getting the tellurium-website
>> project to run in IntelliJ (I may try again with eclipse later).
>> However, it couldn't find the TelluriumConfig.groovy file even though
>> it's in the basedir of the project. Here's the output from the run:
>>
>> ... -junit4
>>
>> org.telluriumsource.test.TelluriumDownloadsPageJUnitTestCase,testDownloadTypes
>> "Cannot find configuration file: TelluriumConfig.groovy, use default
>> values"
>> Configure UI Object Builders with default values
>> Configure widget modules with default values
>> Configure event handler with default values
>> Configure data accessor with default values
>> Configure dispatcher with default values
>> Configure Embedded Selenium Server with default values
>> Warning: No user-extensions.js
>> log4j:WARN No appenders could be found for logger
>> (org.openqa.selenium.server.SeleniumServer).
>> log4j:WARN Please initialize the log4j system properly.
>> Configure Selenium Client with default values
>>
>> Cannot find configuration file: TelluriumConfig.groovy
>>
>> What do I need to change for it to find the TelluriumConfig.groovy
>> file?
>>
>> Thanks,
>>
>> Jade
>>
>> On Jul 14, 10:09 am, Jian Fang <[email protected]> wrote:
>> > Hi Jade,
>> >
>> > The Maven pom is configured to run unit tests only if I remember
>> correctly.
>> > You could load up
>> > the test cases in your IDE to run the tests as suggested by Haroon. Or
>> you
>> > can specify which
>> > test to run by Maven command.
>> >
>> > Maven compiles the test files before it run any tests.
>> >
>> > The ant build file is not actual used any more and you don't need to
>> update
>> > your java home any more.
>> >
>> > For dsl scripts, there is a groovy script in the bin directory in the
>> 0.7.0
>> > tar bar for you to run, which uses Groovy grape.
>> >
>> > The rundsl.sh requires hard-coded jar path, thus, we don't use them any
>> > more.
>> >
>> > Thanks,
>> >
>> > Jian
>> >
>> > On Wed, Jul 14, 2010 at 10:43 AM, Jade <[email protected]> wrote:
>> > > Hi,
>> >
>> > > Tellurium looks like it will be a great test framework. Could someone
>> > > help me get past this stumbling block. I'm trying to run the tests
>> > > such as TelluriumDownloadsPageJUnitTestCase.java in the tellurium-
>> > > website reference project so I can change them around and learn more
>> > > about tellurium. (see
>> > >http://code.google.com/p/aost/wiki/TelluriumNewReferenceProjects#Tell.
>> ..
>> > > )
>> >
>> > > I've run mvn package and then mvn test but the only output is:
>> >
>> > >  T E S T S
>> > > -------------------------------------------------------
>> > > There are no tests to run.
>> >
>> > > Results :
>> >
>> > > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
>> >
>> > > I'm also new to maven and it appears that the pom.xml file doesn't
>> > > include instructions to compile the Test files?
>> >
>> > > At this point, I thought that I'd try to follow the instructions in
>> > > the How To file.
>> >
>> > > Thus, I tried following the instructions in the HowTO of the
>> tellurium-
>> > > website reference project but I could use some clarification.
>> >
>> > > I downloaded tellurium-0.7.0.tar.gz from
>> > >http://code.google.com/p/aost/downloads/list
>> >
>> > > The next instruction is "Before build the project using the ant
>> > > script, please first change
>> > > the javahome in the build.properties file, i.e., replace the following
>> > > line
>> >
>> > > javahome = /usr/java/current"
>> >
>> > > There are many buid.xml files and I don't really want to build
>> > > tellurium-core, I just want to run the tellurium-website junit tests.
>> >
>> > > Thus, I tried running the shell script: rundl.sh but I get this error:
>> >
>> > >  . ./rundsl.sh src/test/resources/org/tellurium/dsl/TelluriumPage.dsl
>> > > Exception in thread "main" java.lang.NoClassDefFoundError: org/
>> > > telluriumsource/dsl/DslScriptExecutor
>> > > Caused by: java.lang.ClassNotFoundException:
>> > > org.telluriumsource.dsl.DslScriptExecutor
>> > >        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>> > >        at java.security.AccessController.doPrivileged(Native Method)
>> > >        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>> > >        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>> > >        at
>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>> > >        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>> > > Could not find the main class:
>> > > org.telluriumsource.dsl.DslScriptExecutor.  Program will exit.
>> > > j...@agile1-tdl:~/workspaceRefactor/vireo-tellurium-tests$
>> > > j...@agile1-tdl:~/workspaceRefactor/vireo-tellurium-tests$ . ./
>> > > rundsl.sh src/test/resources/org/tellurium/dsl/TelluriumPage.dsl
>> > > Exception in thread "main" java.lang.NoClassDefFoundError: org/
>> > > telluriumsource/dsl/DslScriptExecutor
>> > > Caused by: java.lang.ClassNotFoundException:
>> > > org.telluriumsource.dsl.DslScriptExecutor
>> > >        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>> > >        at java.security.AccessController.doPrivileged(Native Method)
>> > >        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>> > >        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>> > >        at
>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>> > >        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>> > > Could not find the main class:
>> > > org.telluriumsource.dsl.DslScriptExecutor.  Program will exit.
>> >
>> > > Jade
>> >
>> > > --
>> > > You received this message because you are subscribed to the Google
>> Groups
>> > > "tellurium-users" group.
>> > > To post to this group, send email to [email protected]
>> .
>> > > To unsubscribe from this group, send email to
>> > > [email protected]<tellurium-users%[email protected]>
>> <tellurium-users%[email protected]<tellurium-users%[email protected]>
>> >
>> > > .
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/tellurium-users?hl=en.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "tellurium-users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<tellurium-users%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/tellurium-users?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en.

Reply via email to