Finally, I found the root cause of the problem. Seems to be a Groovy
bug. In the following
method,

  def ArrayList getSelectorProperties(String jqSelector,
java.util.List<String> props) {
    JSONArray arr = new JSONArray();
    arr.addAll(props);
    String json = arr.toString();
    String out = extension.getSelectorProperties(jqSelector, json);
    return (ArrayList) parseSeleniumJSONReturnValue(out);
  }

I need to add

import java.util.List

and then change the method signature to

def ArrayList getSelectorProperties(String jqSelector, List<String>
props) {
......
}

After that, everything starts working again.

I have been really frustrated by this for couple days, but glad it
solved now.

Now the new methods are added back again.

Also, all maven build for tellurium sub-projects should have been
fixed now.
Please report any Maven build problems if you may come across.

Thanks,

Jian

On Mar 24, 12:20 am, John <[email protected]> wrote:
> Finally, I found where the problem is. It turns out that the new added
> couple methods for JQuery in the BaseDslContext class have problems.
> So,
> I commented out these methods and the build works fine now.  That
> is to say, you can use Maven to compile, package, and run Tellurium
> tests in the trunk/core project now.
>
> Mikhail, we need to look more closer at the new methods. It is also
> possible
> that the library jars we used have some problems for json conversions.
>
> Thanks,
>
> Jian
>
> On Mar 23, 5:19 pm, John <[email protected]> wrote:
>
> > I add the antRun plugin to fix the core Maven build. The compile phase
> > has no problem now and the test-compile phase still got some wired
> > problems when I tried to compile the Java test files. For example, if
> > you uncomment the execute3 section in core pom.xml file for the maven-
> > antrun-plugin plugin, you will see the following error,
>
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] An Ant BuildException has occured: Compilation Failed
>
> > startup failed, Compile error during compilation with javac.
> > /mnt/disk/work/workspace/test/core/src/test/groovy/example/test/java/
> > DogselfDemosPageJavaTestCase.java:21: cannot access
> > org.tellurium.dsl.BaseDslContext
> > bad class file: /mnt/disk/work/workspace/test/core/target/classes/org/
> > tellurium/dsl/BaseDslContext.class
> > undeclared type variable: E
> > Please remove or make sure it appears in the correct subdirectory of
> > the classpath.
> >         d = new DogselfDemosPage();
> >             ^
> > 1 error
>
> > I am still doing some research on this. Matt, please also take a look
> > if you have time.
>
> > The good news is that if we comment out that section, core building,
> > packaging to jar, and running tellurium tests are all working now. The
> > only piece left is to include couple Java test cases in.
--~--~---------~--~----~------------~-------~--~----~
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