It's based on GUIDancer, a commercial product, that they've open-sourced and are now developing as an Eclipse project. The free version lacks the code coverage reporting that the commercial version provides. But what's free is really impressive. SWTBot API is not intuitive. WindowTester produces buggy tests and is not open-source. Neither one does drag&drop. I want to try this.
I was wondering about running tests during build and poked around http://www.eclipse.org/jubula/ and found this:
Is it possible to run GUIdancer / Jubula in a continuous integration process?
Yes, we have a command line client which allows this. The use of this client is described in the user manual.
You can also run tests on the AUT using a virtual frame buffer if you want the testing to take place independently of the actual GUI environment.
Is it possible to run GUIdancer / Jubula with Ant?
There is no direct ant target for executing GUIdancer or Jubula. However, the exec command can easily be used, for example:
< exec executable="GUIdancerCMD.exe" vmlauncher="false" failonerror="false" resultproperty="testResult" />
Can you recommend any best practices for integrating GUIdancer / Jubula into the build environment?
We recommend using a tool or framework for continuous build integration. This tool can then execute tests and evaluate the results.
We use Hudson as our continuous build integration framework. Hudson runs on a dedicated test computer, which has a stable environment and configuration. Our tests are run from this machine, with AUT agents running both locally and on other remote test machines. Hudson:
checks out the source files from the repository,
builds the application,
starts the tests, and
reports the test results.
The most basic smoke tests are run after commits throughout the day, more complex tests are executed every night, and tests with very long execution times are executed over the weekend. In this way, defects can be identified within a short time after they are committed to the repository.
What ports does GUIdancer / Jubula require for testing?
We require various ports to communicate in two directions:
From the client to the AUT agent: this port is defined in the preferences.
From the AUT to the client: this port is dynamically chosen, and cannot currently be defined. Therefore, any ports available on your test machine must also be open on the machine from which the test is being run.
If opening all ports in this way is not an option, we recommend using the command line client on the test machine to run the tests, so that all communication is done locally.
Looks promising to me!
Hola, mucho gusto me llamo Jhulie, soy una aprendiz de Jubula, quisiera saber que puedo utilizar, para que me valide si es correcto o no lo que me imprime en un input text. es decir si al generar un proyecto y ejecutarlo me arroja un mensaje de validación que dice “Ha sido creado su nueva factura” pero en verdad me deberia de decir”Su factura ha sido creada”. entons que puedo utilizar para que el jubula me identifique ese error.
ReplyDeleteGRACIAS
Reply
Jhulie says:
Your comment is awaiting moderation.
June 1, 2011 at 17:11
Hello, glad my name is Jhulie, I am an apprentice Jubula, let me know that I use, so that I validate whether correct or not is that I printed on an input text. that is to say whether to generate a project and run it it throws me a message validation which says “Has been created your new Bill” but in truth I should say “your invoice has been created”. entons that I can use so that the jubula identify me that error.
Thank you
ahss.. no esa vaina como comento de feo....
ReplyDelete