Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Karate feature file + calling Java class with spring annotations, getting PolyglotException

I have some classes having Java code with spring annotation, however its observed when we call them from .feature file, getting org.graalvm.polyglot.PolyglotException. When removed those annotation it worked. Now we have my libraries which use such classes, so can anybody help on same how to invoke spring flavoured classes from feature files.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Please note that re-using "production" objects in your test-suites is a common mistake, please don’t do it. Because the risk is that when you re-factor some Java classes, you will never know if it really breaks some API consumers.

You can assume that what you are trying to do is not supported by Karate. If you follow this process, others will be in a better position to suggest a workaround: https://github.com/karatelabs/karate/wiki/How-to-Submit-an-Issue

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading