User scenario testing for Java Applications on PC [closed] - java

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm looking for a good Testing-Framework for Java GUI Applications. For Android I know Robotium and it would be really cool if there is something similar for Java PC Applications.
Example Testcase:
1. Right click on TreeView
2. Click on Menuitem "Expand all"
3. Check if Tree has been expanded and there is a new item visible with maybe "RAM" as text.
I searched for Java Test frameworks but didn't found anything like Robotium.
What are you using to test your Java GUIs?

You have severel options
FEST - compatible with TestNG and JUnit, framework is written to be use specially for Swing testing so it's very fast, in can take screenshots after failures, even sometimes determine the cause of this failure and other features. I would defintely give this one a tyr
Marathon - looks very cool too, also has handful of features but unfortunately has a paid license
Sikuli - image-based testing framework, allows you to write test scripts in Java
Cucumber - you can write your tests in plain English, looks very interesting, so I would definitely give this one a shot
and others...
As you can see, there are many frameworks, so the best is probably to go through their examples and basic tutorials and just grab what fits you the most.

What about fest?
What about ranorex?
What about swinger?
What about Marathon?

Related

I want to make a simplified Java game engine [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I want to make a Java game engine that would be simple to use mainly for it would have a higher level language interpreter. I though about using Lua language with the LuaJ intertpreter, but I've got some really slow results...
I need suggestions for what other Lua-like languages (With a Java interpreter available) exist that (with an interpreter) could execute faster (than LuaJ) on my Java application.
In the domain of game programming, Java itself is considered slow. I would suggest that you can start with code generation facility built on top of Java. I have worked extensively on Drools , Groovy and similar DSLs and can vouch they are "slow" for even a typical enterprise app. One problem is the dynamic interpretation layer built over java. You can see the typical performances in this comparison study at http://www.slideshare.net/michael.galpin/performance-comparisons-of-dynamic-languages-on-the-java-virtual-machine
If you can work on creating a language which generates code before compiling, you will get best of both world. This doesn't mean you will need to know compiler theory stuff from day one. You can simply create utility functions in Java which you can distribute as client library. However, you will need to know Reflections thoroughly to approach the solution in this way. As nobody changes the code in a running production server, you will be perfectly fine.

How to quickly prototype Java code? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Interpreted languages are nice, I can write some quick, prototypical code (i.e. using an interactive shell) for the purpose of exploration before delving into production level code.
What is the best approach for this with Java? Currently I'm creating Maven projects with Eclipse, and exploring things in my test infrastructure using JUnit... but this is less then ideal.
You can also check out Eclipse's Scrapbook Page:
Menu>File>New>Other>(search for)Scrapbook Page
Why not use something like BeanShell ? It's a scripting solution for Java and offers a console-based interactive scripting environment.
Here's the quick start guide. Note that you can also start a BeanShell console from within Maven.
I've picked BeanShell here since it's the closest thing to Java, but interactive. You could pick another console-based JVM language such as Scala, Jython etc. They're more removed from standard Java since they're different languages, but still offer interoperability with your standard Java components.
You might want to try out JRebel for quick code tweaking. Or if you are into web development, check Play framework.
http://zeroturnaround.com/software/jrebel/
http://www.playframework.org/

Java Open Source Projects to be used in teaching [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm trying to assemble a workshop on OOP using Java and one of the things I want to try is to do a sort of autopsy of an application.
The ideia is to show the advantages os OOP through a real-life example of one, or more, complex applications.
My question is: can you sugest a good open-source java project, that is currently under development, and as a bonus is a application that is useful for college students.
Thanks in advance
Ricardo Gomes
This may be a stretch, but if your goal is to get students engaged it may not be.
Take a look at IBM's Robocode. It's an open source Java programming game. You could build / download some existing bots and do your autopsy on them. You could also implement a bot in a very non-OOP manor and refactor it into something more OO.
Do not use Eclipse. That thing is gigantic. It would take an experienced programmer a couple of months just to figure out how it all fits together.
How about HSQLDB? It's a mature project that's used in the real world, and it's fairly complex - but it's also limited in what it tries to do, so the complexity is still manageable.
You can probably look here: http://java-source.net/
My personal one would be something like Eclipse, which everyone uses, works well (enough), is very extensible, and written in Java. But of-course, that's a huge application

Is there an open source java message flow designer or similar tool? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am looking for an opensource product or some code examples of how I might design either a Java or HTML based GUI to design message flows.
One would add nodes/entities to the diagram and then messages that would flow between entities. The properties of the nodes and entities could then be modified.
The reason I want to extend something open source or code it from scrath is that I have numerous formats that i want to export the data in such as :
An image of the flow for use in documentation.
Human readable description of the message flow.
A test script to simulate the flow.
In an ideal world this would eventually be an Eclispe plug-in which is why I'd like it to be done using a sutable Java GUI framework however if a tool exists that could export message flows in a good structured langauge (XML) I guess my tool could just import this and convert to the other formats required.
Any ideas?
Eclipse GMF is a good choice, but it is quite hard once you start putting in advanced features.
Take a look at the jboss jpdl designer. I think it is built on top of an extensible core library for graph modeling. I know for a fact that jBPM is built like that, so this one also might be built along the same lines. If it is so, you should be able to reuse the core library.

Tools for regression testing / test automation of database centric java application? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm looking for a good, preferably free tool for automating tests of a java (EJB3) application without any kind of GUI.
Tool should be capable of at least:
Inserting / updating / deleting data on database
Querying and comparing data on database
Reading and writing to FTP server
Initializing test environment, launching EJB3 bean, cleaning up test environment after the test
Reporting
Some kind of scripting interface is enough, no GUI required
Naturally this could be done using Java & JUnit but it would be pretty tedious. I would appreciate any hints of such tools.
It sounds like you are looking for a combination of DBUnit and Cactus (the FTP stuff might require Commons-NET or Commons-VFS). Use ANT, with its scripting support, to get the reporting on the test results and the scripting.
That hits the checklist. If you want to test those EJB's out of the container, there is EJB3Unit.
Robot framework, Fitnesse and Concordion seem currently the most interesting candidates.

Categories

Resources