How to automate Java Web start application? - java

I have to automate a JWS application (with *.jnlp extension) . We cannot automate the same using selenium as it is an windows type application. I also tried with AutoIt but it is not able to capture element properties using the same.
Could anyone please help how can I automate this application .I am trying to automate JWS application for the first time.

QTP and TestComplete are very good to automate Java desktop applications. I am using QTP currently to automate Calypso (a java application) and it works perfectly. I've used TestComplete previously to automate similar Java desktop application. They both are paid software, but well worth it if you want to automate complex applications.

Swing applications can be automated using [SWTBot][1]. Its an open source alternative to automate swing applications. This requires understanding of Swing framework and controls.
[1]: http://www.eclipse.org/swtbot/
EDIT: Maybe any of this can help for testing swing applications: Automated tests for Java Swing GUIs

Related

Does Selenium Support automate to Desktop Applications [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
i want to use selenium to automate desktop application but desktop applications does not provide locators and elements X path,how can i locate elements in desktop application
No, Using selenium we can automate only web based application. Selenium doesn't provide any way to automate desktop applications. For automating desktop application we can use other tools such as AutoIT.
Refer here for some idea->http://seleniumsimplified.com/2016/01/can-i-use-selenium-webdriver-to-automate-a-windows-desktop-application/
Answering your question straight, No, Selenium doesn't support to automate Desktop Applications.
As you want to use Selenium to automate desktop application, Winium can be the best solution to your needs.
Winium:
Winium is a new open source framework, that’s based on Selenium and consists of 3 parts:
Supports test automation on Windows applications.
Supports test automation on Windows Phone operating system context (home button, notifications bar, toggles etc.)
Supports test automation on Windows Phone applications.
Pros:
In case you are already using Selenium WebDriver and familiar with its API, using Winium is straightforward.
Cons:
As a result of it’s being a new project, few struggles come in the way. Its API still isn’t complete and not on the same maturity level as other tools in this category.
Bottom line:
In case you are considering Winium, my suggestion is to wait until it’s more baked.
Additional Resources:
You can find some more Open Source Test Automation Tools for Desktop Applications here.
You can you below tools :
Winium (https://github.com/2gis/Winium ) for windows desktop automation.
in this case you'd need to use some desktop inspecting tools like UISpy.
benefit of using this would be, you must be aware of methods and calls in selenium, same methods are there in this tool too.
AutoIT : this is less reliable in case your test script does some job on web and later you want to perform something on the desktop. AutoIT script compiles to an exe which can be triggered from the test script BUT remember AutoIT exe/script would start executing from wherever the cursor is located.
I guess you can use AWT classes to do few of the stuff on desktop but it'd incur a lot of time investment in developing the complete flow. (BAD IDEA, don't do that.)
Not very sure but in a few cases, I have seen Sikuli (An image-based automation API) work fine.(have a look on this quick example https://www.guru99.com/sikuli-tutorial.html)
We have different ways to handle desktop application using selenium webdriver.
below are the different real time techniques
AutoIT : AutoIT is the best option to work on window based application
Sikuli : Sikuli is image based automation tool.
for more reference visit below link
https://sqa.stackexchange.com/questions/9254/can-i-use-selenium-to-do-desktop-application-testing
No you can't automate native windows application with selenium.
But still you can achieve it by autoit or sikuli and again these tools are having few limitation on element activities, handling and reporting.
I would recommend you to take a look on RPA tools. which is trending in market now. you can automate any kind of apps like browser,native windows, citrix.
Consider uipath or blue prism.
I agree these are all not opensource but it's deserved to pay. Uipath you can get some trial version try to use it.
Allt the best!!
You can not automate windows windows based application using selenium . Now it depends on whether you want to use open source tools or microsoft tools.
Open source tools :
Auto IT . Its is very fast and its librarry can be integrated with C# or JAva
Microsoft based tools :
Coded UI - its the latest tool which can work for both windows based and web based application.

How to run a Swing application on a web page?

I have created a Swing application in Netbeans that is basically a chat system (between multiple clients and server using socket programming).
Now I wanted to run this application on a webpage. Is this possible without changing any code?
Now I wanted to run this application on a webpage. Is this possible without changing any code?
No. It would have to be a JApplet to be embedded in a web page, and applets have been effectively killed off. See Java Plugin support deprecated and Moving to a Plugin-Free Web.
On the other hand, a desktop application (based on a JFrame) can be launched from a link on a web page using Java Web Start.
Edit
Scrap that advice regarding JWS, apparently it too is being deprecated as of Java 9.

JavaFX for Presentation Layer in Standalone Desktop App

We are going to create a java standalone Desktop application. We are searching for the best solution for the presentation layer. I saw javaFX and really liked it, but I am a bit confused. Can it be used in standalone Desktop applications?
Can I use javaFX in my standalone Desktop app and also use css to style the Ui?
It is perfectly possible to use JavaFX in a standalone Desktop app and apply CSS styling to it.
In JavaFX's lingo, this is know as a "Standalone" or "Self-Contained" deployment.
You can even integrate it with Swing or SWT, if the need arises. Note, though, that it's not possible the other way round.

Java integrated or embedded browser

I need a integrated or embedded java browser. I used WebEngine of javafx which support basic css as well html & java script but could not able to run flash file. Any way to do so.
Or any other Project u know which could fulfill my requirement.
You can also look at JxBrowser Java library that allows embedding Chromium-based web browser control into Java AWT/Swing application.
It supports both Java Swing and JavaFX.
BTW: the browser control is totally lightweight. All rendering happens in a separate native process by native Chromium engine. The web page looks like it's displayed in Google Chrome.
Check those (although they are not JavaFX but I suppose that they can be used):
http://lobobrowser.org/java-browser.jsp - pure Java
http://www.javadesktop.org/articles/jdic/index.html - better imho, but no longer maintained

Interacting With Java Applet

Does anyone know if it is possible to interact with a java applet via .net?
Edit: I was able to use the UI Automation framework to locate the java applet, and from there use OCR to read data and simulate mouse/keyboard input into the applet.
You may well be able to do it using accessibility APIs, which are designed to let screen-readers and so on interact with programs. Have a look at:
http://en.wikipedia.org/wiki/Microsoft_UI_Automation

Categories

Resources