-
Notifications
You must be signed in to change notification settings - Fork 181
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
Launching a JNLP file .Can I launch a JNLP file and test #45
Comments
@croesch Can we launch JNLP file and tests,I have tool to inspect the swing elements. |
You can test an jnlp application but IMO not via web start. An JNLP file references an application and you should be able to start that application via AssertJ Swing through the This should help you. Please note that web start is not part of Java anymore.. so your application has to find alternative starting technologies. Just reopen, if my answer doesn't help.. |
Thanks for your response. I am not sure how to open it with ApplicationLauncher any code snippets. |
Have a look inside the jnlp file, you should be able to identify the class with the main method. In doubt read the JNLP File Syntax which states that you should see an element That's the one you're looking for. Given that check the link I posted above and insert the main class in the example code of the ApplicationLauncher. |
Thanks again,I dont have an application-desc section in my JNLP. This is my JNLP looks like.I have section called applet desc. |
Ok. In that case just use the |
Yes Thanks,I had a look at it earlier,So my concern is how I can launch the applet by giving the class name only.Fyi I do not have any source codes with me related to the application.I only have the JNLP file. I can try with setting the applet properties as well but Manually what i do is i just double click the JNLP file it launches the app. |
AssertJ Swing works fine if you just have the necessary files on the classpath of your test. It's easier (for debuggin) but not necessary to have the sources available. You just need to make sure that your test knows the AUT. The JNLP file also contains the information about the class path. Please setup your code with the same class path. Either analyze the JNLP file or debug the running Java process at runtime. If you developed the application, then you should be able to know which classpath is relevant. Or at least should know somebody in your organization that can help you. If you're not the developer of the application, you should have the skills to reverse engineer a classpath - I will not give further advice for that scenario, since that usecase is slightly out of scope for AssertJ ;) I feel like you either don't read the links I provide .. Please read the page again, linked multiple times, it contains the information about how to pass parameters to the If you want to have further advice please show me how AssertJ Swing fails, I feel like I gave you enough information to solve your problem. I'm not a Java teacher .. at least until being paid :P |
Thanks,I am a Test Engineer,I just have the JNLP file no contact with any developers.But As you said I will give a try and get back to you. |
@croesch I am getting following error when trying to launch the applet.
java.lang.Error: Unexpected window shown - this window should be handled with WindowInterceptor.
|
Hello @mrif0393 this looks like an application error. Do you have the full stack trace available? I suggest you ask the development department about that message.. |
No description provided.
The text was updated successfully, but these errors were encountered: