Menu

LoggingSelenium on Groovy Project

2010-01-27
2013-05-14
  • Hernan Castagnola

    Hi All,
               We are trying to create some selenium scripts in order to test our site and we are using this project to log the results.

    The problem we are having is that we are getting a class not found error when trying to use

    import static com.unitedinternet.portal.selenium.utils.logging.LoggingAssert.assertTrue;
    java.lang.NoClassDefFoundError: org/hamcrest/Matcher
    Caused by: java.lang.ClassNotFoundException: org.hamcrest.Matcher
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    

    Is this a bug on the application or is a problem with the groovyC

    Thanks in advance for your help.

    Hernan

     
  • Hernan Castagnola

    Fixed:

    Add this two libraries:

    <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest-all</artifactId>
                <version>1.1</version>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.7</version>
            </dependency>

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.