Automation for GUI desktop application with java framework [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Lately i bumped into selenuim for web automation which is wonderful tool , gives you the ability to record a test on the web browser and export it into java/c#/etc and modify it as you want in any Java IDE for example.
I know that selenium is only for Web .
Dose selenium got an extension / open source plug in to support desktop GUI application?
There is another framework that do that for desktop GUI application?

One way you can do this
another framework that do that for desktop GUI application
is by using Sikuli. Since it uses image recognition technology
can be used across all desktop applications, also can be driven by multiple languages
and its free.
Just to be full this answer, I'll add that you can combine it with Cucumber and Jenkins like is shown here.
Update
export scripts to Java
is not possible in this sense, since Sikuli scripts are written in Python scripting language and the scripts itself are run using the Jython interpreter (Java base implementation of Python language).
See this answer
and this answer.
Look at these resources how-to:
how-to-write-java-program-in-sikuli
sikuli-java-insertion-dev
use SikuliX API in your JAVA programs

Yes. UiPath can automate desktop, browser, remote desktops or java applications.
Unlike Selenium it has the ability to get access to the internal object model of a java app (recognise the controls and elements you want to click, type, scrape). You can use it from code (SDK) or create automation directly from UiPath Studio.

If you create your application using Swing, so you can test it with FEST. But this lib is no longer supported and works wrong with Linux. There are some another non-free test tools for Swing and JavaFX but I've never used these tools and cannot say whether they good or not.
You can found something about test tools for JavaFX here. For Swing here.

Related

How to choose best automation Tool combination with selenium [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
It might be opinion based question but I am really confused about choosing automation tools combination.
Till date I have been using Selenium webdriver,maven and Java to build automation frameworks. This seems totally working fine.
Now a days I feel that many automation engineers moving to use of WebdriverJS , WebdriverIO, NodeJS etc.
Someone told me that if we build automation framework using WebdriverJS/ WebdriverIO/NodeJS, Then execution will be faster than Java.
I know that I should choose tool based on my requirements but at the same time I feel that we can not use WebdriverJS/ WebdriverIO/NodeJS in some kind of website where all elements must be located by xpath as most of elements changing class / id dynamically.
So If anyone can just give me hint about which tools to choose for which kind of website then it would be really helpful. i.e For AngularJS website Node.Js is fine for automation with selenium.
As per the Selenium Official Webpage, Download Section, you can see in the Selenium Client & WebDriver Language Bindings section the following are listed :
Java
C#
Ruby
Python
Javascript (Node)
So from my personal take would be, these 5 variants which are the most widely used Selenium Clients while dealing with Automation Framework with Selenium
Documentation
Leaving aside Selinium's GitHub ducumentation, its pretty clear majority of the documentation available on internet is on Selenium (Java). It's because of Java's world wide popularity as a Language. So learning becomes easier.
Even the frequency of Selenium (Java) Client Releases would support my native view.
But, personally I have found Selinium's GitHub Documentation for all the client bindings are perfect and precise.
WebdriverIO
WebdriverIO is another variant of the Selenium Release. No doubt the WebdriverIO team have played it hard in building up the catch-up game with the Selenium Client Releases. But my take would be WebdriverIO is still evolving.
Functional Perspective:
From a functional perspective my take will be either on NodeJS or WebdriverJS. Reason is simple I still feel the Selenium-RC way is still in practice when we inject javascript into the Web Browser once the browser loads completely and then use its javascript to drive the Application Under Test within the browser.

Alternatives to Java applets [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm planning to write a simple program that displays course prerequisites for students at my university in graph form (ie as a network of vertices and edges). I'd like to embed the program in a webpage to save people the hassle of downloading an executable.
Currently I'm looking at making my program a Java applet (Java also would give me access to the handy Swing library), but I don't like the fact that applets can't be viewed on most mobile devices.
What alternatives to applets exist for a project like this? I'd like to make it compatible with as many devices as possible, and also not have to build the graphics stuff from scratch.
One final consideration is I'm doing this mostly as a learning exercise. Ideally the tools I'd be working with would be helpful to know in the future.
Please don't use applets. They have been sufficiently deprecated.
The best way to do this is by using html/js/css. A lot of useful libraries exist that can help you with this task. jQuery seems obvious, but there's also d3.js or vis.js for displaying visual representations of data, and bootstrap for responsiveness (mobile friendliness).
You may use Angularjs with angular-chart for Showing graph in Web Browser.
If your graph data is dynamic you might use Nodejs and mongoDB for backend.
angular-chart is responsive and its easy to show dynamic graph. But as it uses HTML5 canvas some mobile browsers might not show its transitions smoothly depending on the device.
I personally do not prefer using applet in web browser when the same functionality can be achieved using great frameworks like Angularjs.
why dont you try to build your project through Servlet framework
by the way cgi were removed by servlet because of the handling of the request
applet uses the same concept

Swing-Library for Android? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I know that Android uses Java but not a fully compatible runtime library. Creating UIs in Android is done completely different than for normal Desktop Java. Nevertheless that's a really stupid thing in my opinion, very much Java applications out there have to be rewritten for Android (instead of modified only slightly).
So my question: is there some kind of (3rd party) Swing-library available for Android? Means a Java-package that contains Swing-compatible classes so that an existing Swing-Application has to be modified only slightly? It of course can't be 100% compatible but modifying some things that do not exist on Android is much less work than rewriting the whole GUI-part...
There is no way you can use swing in android, because android is not based on JavaSE, while swing is. android uses a special java that is designed to run on DVM .
Even if their is no compatibility issue. Swing is used for desktop apps which differ in their UI completely from mobile apps.
So given the above points unfortunately you will have to rewrite the UI again for your software. but on the bright side, android's UI is very simple and fun to work with.
give it sometime and good luck!
Edit:
Comparison between Java SE and Android's Java
CodeNameOne?
Supposed to be very similar to Swing.
Also, in my experience, GWT is somewhat similar to Swing.
Either of these will require a rewrite from Swing though.
There is no Swing on Android. You can always develop a JME application and run it via emulation, but that's as close as it gets. Unfortunately, in technology, things change all the time, so for programmers, it's a case of "adapt or die."
Unfortunately, as far as I know, Java Swing Desktop Apps can't run on Android (Dalvik VM), but the good news is: JavaFX as a successor to Swing GUI technology has already been ported to mobile and embedded platform (e.g. Android). If you're interested in this, go http://gluonhq.com/products/mobile/javafxports/ for details.

Anyone know of any good tutorials for Accessibility Testing Framework? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am trying to find a tool that can help a developer in eclipse keep up to date with correct markup respecting accessibility.
The tool I have come across is this one:
http://www.eclipse.org/projects/project_summary.php?projectid=technology.actf
I have managed to test out web pages from within eclipse, but I can't seem to get the GUI Accessibility feature to work on a JFrame. Anyone have any ideas?
Thanks!
I do not believe there's any way to test Swing based applications with this tool. If you look at
http://www.eclipse.org/actf/docs/users/aDesigner/docs/overviewGui.html
The tool appears to test API's such as MSAA and IAccessible2. JFrame is part of the Swing toolkit so does not support any of these interfaces. In order to make Swing applications accessible you need the Java Access Bridge and a supported screen reader. NVDA is an open source screen reader that supports the Java Access bridge. To my knolidge there is no way to do automated accessibility testing of Swing applications. If you need to make a Swing application accessible you'll have to manually test it out with a screen reader. Also of note is the fact that the Java Access bridge is not widely supported and has not been updated in several years and will not run in a 64 bit JVM. A new version of the access bridge is in beta and will work with 64 bit JVM's but most likely will require updated screen reader support. I do not know of any screen readers that officially support the new beta. More info about the beta can be found at
http://jdk6.java.net/6uNea.html

AutoIt like GUI automation tool for Java [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I need to automate UI testing of a software that my module is plugged in. I do not have an access to code of the host so I need something like AutoIt. Since AutoIt does not work with Swing, is there any AutoIt like GUI automation tool for JAVA based applications?
You can take a look at Marathon, it is for Java.
Java Swing applications can be automated using Jubula Functional Testing Tool.
I like very much Fest but I don't know Autoit :(
TestComplete supports Java, and does not require you to add code to the program you are testing.
Auto can probably do it ? Try the AutoIT JAVA UDF that a friend of mine wrote, it is quite old and may not work anymore..my apols
This UDF currently automates standalone applications and browser-based applets, developed in either Swing or the Abstract Window Toolkit (AWT).
JAVA UDF
May be you can try out JWinAuto
I've heard of sikuli being used for automating java apps

Categories