0

ZATS: NoSuchMethodError for org.mozilla.javascript.Parser()

asked 2016-01-05 05:16:36 +0800

drewmorris gravatar image drewmorris
1

I'm running a rather simple ZATS test:

public class ImporterModuleTest {

@BeforeClass
public static void beforeClass()
{
    Zats.init("./webapp"); //this works fine
}



@Test
public void testImportDialog()
{
    DesktopAgent app = Zats.newClient().connect("/importer.zul"); //this works fine

    ComponentAgent importButton = app.query("#uploadButton");
    Assert.assertNotNull("uploadButton not found!", importButton);  //this passes
    importButton.click();   //problem happens here.

    ComponentAgent importerDialog = app.query("#importDialog");
    Assert.assertNotNull("importDialog not found!");
}

@After
public void after()
{
    Zats.cleanup();
}


@AfterClass
public static void afterClass()
{
    Zats.end();
}

}

I get the following stack trace: at org.zkoss.zats.mimic.impl.au.AuUtility.filterNonJSON(AuUtility.java:211) at org.zkoss.zats.mimic.impl.EmulatorClient.flush(EmulatorClient.java:268) at org.zkoss.zats.mimic.impl.operation.GenericClickAgentBuilder$ClickAgentImpl.click(GenericClickAgentBuilder.java:47) at org.zkoss.zats.mimic.impl.DefaultComponentAgent.click(DefaultComponentAgent.java:188) at ImporterModuleTest.testImportDialog(ImporterModuleTest.java:44)

Stepping through the code, the error comes when trying to instantiate org.mozilla.javascript.Parser

I'm running ZK 7.0.3 and ZATS 1.2.0

Any insights on what I might be missing?

delete flag offensive retag edit

Comments

@Darksu Thanks for the suggestion, but it's really not related to my issue.

drewmorris ( 2016-01-05 16:15:29 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-01-05 09:00:49 +0800

Darksu gravatar image Darksu
1991 1 4

Hello drewmorris,

Please check out the following forum post where a similar issue has been resolved:

http://forum.zkoss.org/question/84809/zats-desktopagentquery-not-working-with-ids/

Best Regards,

Darksu

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2016-01-05 05:16:36 +0800

Seen: 9 times

Last updated: Jan 05 '16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More