Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ICEpack provides several facilities for load testing ICEfaces applications - somebody used that?  RSS feed

 
Tibi Kiss
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to know if somebody has some experience using ICEpack.
Somebody can provide us a very short review of ICEpack offerings?

I am interesting in load and functional testing facilities offered by ICEpack.
I saw discussions on icefaces forums that functional testing with Selenium sometimes is really tricky in the sense that you have to write messy codes.
I was using HtmlUnit to cope with Icefaces.
Therefore I am interested of ICEfaces Java Test Client application, if it really worst looking into it?
 
Rainer Eschen
author
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, we do not use the ICEsoft services.

But, we have used Selenium. "Messy" depends on the programming style (like with any other programming stuff). We tried to create reusable scripts that allow us to be reused even if forms change their members. To find a solution that allows to address HTML components by their unique id was somewhat tricky. I never understood why JSF is creating those id paths. But, we found a solutions that could be used in 80% of our test cases. All this depends on the rendering result of certain ICEfaces component. Some rendering results are pretty unexpected ;-).

At the moment we redesign the test processes. Maybe we'll skip Selenium in the end. This also depends on the Maven integration of other solutions.
 
Tibi Kiss
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Rainer!

The annoying thing about Selenium is that you must handle manually asynchronus requests using timeouts and similar techniques.
The AjaxController of HtmlUnit helps because you can write your tests in a synchronus way.

Some posts also mentioned that problem.
It looks like HTMLUnit seems to be the better choice in the long run. In the first place, I was impressed by the easy UI recording tool from Selenium. But after trying to write some nice testing and stress test scripts I ended up writing stuff like:

In this sense I mentioned as "messy".

Regarding the IDs, looks like we need to write explicitely some hand written IDs, instead of fighting with JSF generate one.

I also used Maven and Hudson. I created functional tests in HtmlUnit which at the end can be used to stress testing too.
The idea was that a JUnit test method it was executed within a group of threads, alineated by a CountDownLatch. Which made possible creating progressive stress tests, using 10,20,30,... threads. The measured time values can be used to draw meaningful graphs.
 
Rainer Eschen
author
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, this kind of "Messy". I understand. Our id solution sets ids for the ICEfaces components explicitly and deletes the path in front of those. So, we get the classic HTML id label that can be addressed "directly". As far as I remember I did it like a filter in the Selenium runtime.
 
Tibi Kiss
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While trying to grasp your ID fixing solution, I found a different solution in this article.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!