-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command line running karate throws FileNotFoundException #529
Comments
closing as duplicate of #520 - we've done a lot of work on this front and now need community help also see if the released beta version 0.9.0.RC1 fixes this for you. if you still see issues, continue the discussion at 520 |
@ali-nutmeg I took a closer look and the problem was in the JUnit runner which I did not expect initially. you can see the fix made in the commit log above. I can confirm this will work fine in 0.9.0 final. |
@ptrthomas Thanks for taking a look at this. I checked out the branch where the fix was made and looks likes it's all working fine. Thank you |
@ali-nutmeg just released 0.9.0.RC2 - (may take a few minutes to show up) great to get your feedback ! you can try using 0.9.0.RC2 in prod, it passes all the regression suites. |
Hi Peter, HTML report: (paste into browser to view) | Karate version: 0.9.6
|
@rohit1212s please stop spamming your logs here, if this continues you will be blocked |
Hi Peter,
I am really sorry for spamming unknowingly . I have been trying to create
an executable jar for my karate test framework for the last 2 weeks so it
can run on Azure DevOps pipeline and it is a very big project within ING
bank in the Netherlands. So I just want to know if it is possible to create
an executable jar from maven for the karate test framework or not? if it is
possible to create an executable jar then what is the process to do that?
Thanks and Regards,
Rohit Kumar
…On Fri, Jun 18, 2021 at 3:05 PM Peter Thomas ***@***.***> wrote:
@rohit1212s <https://github.com/rohit1212s> please stop spamming your
logs here, if this continues you will be blocked
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#529 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJYEKQ7IZOREHXVFMVEACB3TTNAAFANCNFSM4FVF5SYA>
.
|
@rohit1212s yes. see #1650 as just one recent example of a team that has done this. other examples are here: https://stackoverflow.com/a/58339662/143475 |
Hi Peter,
Thankyou so much for your quick response and yes I am able to run the
executable jar by using this one #1650
<#1650> . But when I run the
executable jar it is not reading the java class which is being used in the
feature file. see the below error log:-
19:48:39.163 [pool-2-thread-1] ERROR com.intuit.karate -
classpath:epos/productsandaccounts/feature/GetAllAccounts.feature:109
* def createCheckAccountTerminationrequest = javaclass.getPayload(map)
>>> js failed:
01: javaclass.getPayload(map)
<<<<
org.graalvm.polyglot.PolyglotException: Could not initialize class
epos.productsandaccounts.service.test.GetAllAccountsRequestTest
- sun.misc.Unsafe.ensureClassInitialized(Native Method)
-
java.lang.invoke.DirectMethodHandle$EnsureInitialized.computeValue(DirectMethodHandle.java:330)
-
java.lang.invoke.DirectMethodHandle$EnsureInitialized.computeValue(DirectMethodHandle.java:327)
- java.lang.ClassValue.getFromHashMap(ClassValue.java:229)
- java.lang.ClassValue.getFromBackup(ClassValue.java:211)
- java.lang.ClassValue.get(ClassValue.java:117)
-
java.lang.invoke.DirectMethodHandle.checkInitialized(DirectMethodHandle.java:351)
Thanks and Regards,
Rohit Kumar
…On Mon, Jun 21, 2021 at 10:00 AM Peter Thomas ***@***.***> wrote:
@rohit1212s <https://github.com/rohit1212s> yes. see #1650
<#1650> as just one recent example
of a team that has done this. other examples are here:
https://stackoverflow.com/a/58339662/143475
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#529 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJYEKQZRSQSZMPYABLUQ3ELTT3WSPANCNFSM4FVF5SYA>
.
|
@rohit1212s no idea. so this is not a priority for me. let's hope someone reading this offers to help - but in the meantime your best course of action is to find a solution and submit a PR or at least provide some pointers to us for the fix ( just like it was done in #1650 ) |
is there an example of working code somewhere? The link for the code at the top of the page is broken. |
@pankajguptaphd no idea. see if there are any hints in linked issues |
Problem: We package a jar file with all the dependencies so that we can run this karate tests on command line via our CI tools.
This worked in v 0.6.0 but is broken in 0.8.0
We're doing this using:
Code available in: https://github.com/ali-nutmeg/broken-karate
Steps to reproduce:
maven clean install
java -jar target/broken-karate-test-jar-with-dependencies.jar
To prove that it is broken:
I would be interested in a fix to this before I am forced to move to using the standalone karate runner.
Thank you
The text was updated successfully, but these errors were encountered: