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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Everyone
Is there a way to call java method from Jameleon test case?
Thanks :)
Check out the following link: http://jameleon.sourceforge.net/getting-started/customFunctionalPoints.html
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