Menu

How to trigger java method from Jameleon?

Help
emma
2010-04-22
2013-04-25
  • emma

    emma - 2010-04-22

    Hi Everyone

    Is there a way to call java method from Jameleon test case?

    Thanks :)

     
  • Ayhan Tek

    Ayhan Tek - 2010-04-29

    If you want to call Java method from your Function Tag, as Christian pointed out, you can use Functional points : you can do this inside the testBlock() method.
    If you want to call Java from your test case XML, you can use jelly script. It has many libraries, if you cannot find one that serves your purpose, you can even create your own. For example, to call a bat file from testcase:
    <testcase xmlns:"jelly:jameleon" xmlns:j="jelly:core" xmlns:ant="jelly:ant">
         <j:jely>
              <ant:exec executable="cmd">
                   <!- Call your bat file ->
            ….
    </testcase>

    Cheers,
    Ayhan Tek

     

Log in to post a comment.