Showing posts with label selenium. Show all posts
Showing posts with label selenium. Show all posts

Monday, May 14, 2012

In the foothills of Alps - wrap-up of ConFess 2012


Last week, I have been in Austria at ConFess conference.

From my perspective, the conference underwent two significant changes: the venue was moved to Leogang, Austria and at second I was speaking there. :-)

For the first point, I really loved the place - I'm the big fan of hiking and alpinism, so I really enjoyed the moments when we were discussing outside the conference rooms, breathing the fresh air and admiring the beauties of surrounding nature.



At second it was really pleasure to speak at ConFess, as it is the first conference where I've ever been, and I like returning there.



My first talk was about latest movements in world of HTML5, what developers needs to consider and how JSF and RichFaces fit that story.



Second talk was structured as comprehensive guide to designing test suites for Java EE applications. I have revealed some of latest movements at planet Arquillian (like JSFUnit.NG or JRebel extension).

Thanks to Jan Papousek who captured the photo.

Friday, February 24, 2012

Wrap-up: Arquillian Hackfest @ Developer Conference 2012 Brno


Thank all participants for contributing to discussions on Arquillian HackFest!

The 10 people has attended and shared their ideas on selected topics,
and others came to see us on video stream and IRC channel!


The initial idea for this Hackfest has arisen when we were discussing the topics we would like to cover in conference days, just after Arquillian SPI talk from Aslak.


Although we wasn't able to cover all declared topics,
we focused on the ones which were most related to incoming Arquillians,
the notes and white-boards can be find here:

Future: GWT

Future: JavaScript

Future: Performance testing

Future: JSFUnit.NG
( no notes here, it was really short session - after Arquillian SPI talks, it didn't left much more to discuss - thanks Aslak! )


It was pleasure to see so much ideas flowing, let's grab them and equip Ike with even more mighty weapons for fighting with bugs. ;-)

Tuesday, September 20, 2011

1-day conference in Vienna - Slides and Wrap up

Last event I have attended was a great success.

I have made two talks there for which I would like to share slides with you:
I had got very valuable feedback from attendees on both sessions, thank you!

Wednesday, August 31, 2011

Talking on RichFaces@mobiles and on JSF testing in Vienna

I would like to invite you on JSF and RichFaces workshop UNIQA held at September 7-9th in Vienna, Austria.

While first two days will be Max Katz covering thoroughly JSF and RichFaces, last conference day will be dedicated to topics related to RichFaces.

I will be presenting on what can RichFaces offer in upcoming mobile era and what are current state-of-art techniques in testing JSF applications with Arquillian, Selenium and JSFUnit.

You can also see detailed program and you can watch the event on Lanyard.

Looking forward to meet you there!

Sunday, March 21, 2010

New Richfaces Selenium Library for Automated functional testing of RichFaces 3.3.x

Motivation

We needed this library because we wanted to have stable automated tests against different browsers and on different platforms for RichFaces functional testing. It encapsulates good functionalities for testing AJAX behaviours and is ready for testing Firefox and Internet Explorer. Its' first implementation is used for testing RichFaces 3.3.X in 403 unique tests for in over 76 test cases for each RichFaces component.

Internet Explorer ready

What makes this project unique is its own implementation of own HttpCommandProcessor which enables functionality in Internet Explorer – it handles known Permission denied exceptions in Selenium when you are trying to access JavaScript from TestRunner window before the page is loaded. This is caused by security model of Internet Explorer and really harden usage of selenium functions in Internet Explorer in comparison to Firefox.

JQuery Selectors over the XPath

The support for JQuery Selectors as location strategy isn't unique but it is complete and nice to have to support multiple browsers for test. This makes test suite run with Internet Explorer more reliable. This browser has at the moment very slow Xpath evaluator and that's why test cases written in this language suffer in execution speed. Implementation of JQuery Selectors to our test cases was simple, but we had to rewritte all of the locators to JQuery Selector syntax. It actually reduced execution time from 4:30hr to 1:30hr and made lots of test cases pass. It enabled to have same test suites for Firefox and Internet Explorer.

Testing Dragable

Also the Drag class is important – it encapsulates sequence of commands to drag one object to target object and enables testing of behaviour of dragged object in each phase of dragging sequence. Nice for testing Drag-and-Drop support in RichFaces.

Waiting-improved

Waiting for satisfying conditions

The last big feature which needs to be mentioned is Wait class. It is similar to Wait class from Selenium 1.0, but it has much more readable and customizable syntax, for example:

Wait.dontFail().timeout(5000).interval(500).until(new Condition() { … })

or

Waiting waitForModelUpdate = Wait.timeout(30000).interval(2000);

waitForModelUpdate.failWith(“Causes {0}”, someObjectToFormat).until(new Condition() { … });

Customizable behaviour of failure

It wasn't something what we could not implement with Selenium's Wait class (except the dontFail/failWith handling the resulting exception when waiting timeouts).

Wait for change conditions

Pretty usable is also addition of waitForChange(...) and waitForChangeAndReturn(...) methods. Its purpose is also quite self-describing. Sample followes:

waitForModelUpdate.waitForChange(“phase 2”, new Retrieve() { String retrieve() { selenium.getText(locator); });

Maven-based integration

What I'm really proud of is Maven configuration for Selenium tests (it isn't a part of the library yet, but we are planning so). For better overview, take a look at readme doc or POM. It enables us to have same configuration for Windows and Linux Hudson machines incl. various browsers (Firefox and IE) and various containers (JBossAS and Tomcat). It contains selenium-maven-plugin, cargo deployer and maven-surefire-plugin executing test suite. Really nice is the debugging feature (look for Debugging in readme.html) when you are running the SeleniumServer on one host, container on another host and you are running test suite in debugging mode from your preferred IDE.

Stay warmed...

Please keep an eye on this blog space. We are planning new version of richfaces-selenium library introducing type-safety and commonness to full-featured AJAX testing!

How to start?

Source code of richfaces-selenium library

RichFaces LiveDemo and it's test-suite
(example of test case - Editable Table with Modal Panel)