padcom13.blogspot.com
Padcom's blog: January 2015
http://padcom13.blogspot.com/2015_01_01_archive.html
Friday, January 30, 2015. Finding elements with duplicate element IDs on a page. I know - IDs on a page should be unique. That's absolutely right! But have you seen the browser spitting a message that you duplicated one? Here's a piece of JavaScript code that'll check your DOM for duplicate IDs:. Var elements = document.getElementsByTagName("*"); for (i = 0; i elements.length; i ) if (elements[i].id! Var elements = document.getElementsByTagName("*");. For (i = 0; i elements.length; i ) {.
padcom13.blogspot.com
Padcom's blog: Linux, BlueJeans and SpringSource Tool Suite
http://padcom13.blogspot.com/2014/12/linux-bluejeans-and-springsource-tool.html
Monday, December 8, 2014. Linux, BlueJeans and SpringSource Tool Suite. Not everything is gold that shines. This has been a long, long day. I learned once again that people don't care about users using their programs but they care very much about those few that give them money. This is also the case with BlueJeans. And it was gone. But hey - you need to work with it and besides the fact that it is screwing with the main application you're using on a daily basis (pretty much 80% of the time) everything el...
padcom13.blogspot.com
Padcom's blog: Finding elements with duplicate element IDs on a page
http://padcom13.blogspot.com/2015/01/finding-elements-with-duplicate-element.html
Friday, January 30, 2015. Finding elements with duplicate element IDs on a page. I know - IDs on a page should be unique. That's absolutely right! But have you seen the browser spitting a message that you duplicated one? Here's a piece of JavaScript code that'll check your DOM for duplicate IDs:. Var elements = document.getElementsByTagName("*"); for (i = 0; i elements.length; i ) if (elements[i].id! Var elements = document.getElementsByTagName("*");. For (i = 0; i elements.length; i ) {.
padcom13.blogspot.com
Padcom's blog: August 2014
http://padcom13.blogspot.com/2014_08_01_archive.html
Sunday, August 10, 2014. Selenium tests - a couple of loose thoughts. Recently I've blogged about how to employ fluent interface when creating a framework for Selenium-based integration tests. After a few talks I gave I think I have a some grasp of what the major concerns for taking this approach are. Let's go quickly through what I observed was the top 5 questions. Assertions shall be done in tests - not in page objects. This is probably the numero uno. Instead of simply calling people.sort(). This is p...
padcom13.blogspot.com
Padcom's blog: March 2014
http://padcom13.blogspot.com/2014_03_01_archive.html
Saturday, March 29, 2014. Are Spock and others dead? I've been looking for a good alternative to writing unit tests, maybe in a more BDD-like form, or just to get some fresh perspective on how one could do unit tests. I think it's because me getting old and the middle-life crisis hitting on me :) And so I examined a few of the usual suspects in the Java space. I remember the time when Szczepan showed us fest-assert framework in action. Szczepan was well known for his passion for fluentization. Well, It s...
padcom13.blogspot.com
Padcom's blog: February 2014
http://padcom13.blogspot.com/2014_02_01_archive.html
Thursday, February 20, 2014. Selenium and reusable scenarios. In my last post. I've shown you how to structure your code describing the application under test so that it allows for easier construction of more readable integration tests. Today I'll try to complement that with the concept of reusable blocks of tests - scenarios. Let me give you an example of a scenario that everyone can relate to: logging in to an application. Let's consider what does it actually take to perform this task:. I, O scenario) {.
padcom13.blogspot.com
Padcom's blog: December 2014
http://padcom13.blogspot.com/2014_12_01_archive.html
Monday, December 8, 2014. Linux, BlueJeans and SpringSource Tool Suite. Not everything is gold that shines. This has been a long, long day. I learned once again that people don't care about users using their programs but they care very much about those few that give them money. This is also the case with BlueJeans. And it was gone. But hey - you need to work with it and besides the fact that it is screwing with the main application you're using on a daily basis (pretty much 80% of the time) everything el...
padcom13.blogspot.com
Padcom's blog: September 2014
http://padcom13.blogspot.com/2014_09_01_archive.html
Wednesday, September 17, 2014. Running transmission as a different user. Sometimes things should just be easier. One config file, restart, done. This time I faced quite a different daemon so I though I'll share since it took me a while to figure it out. It's about the transmission-daemon running as a different user. I need to download files from the Internet using BitTorrent protocol (like Ubuntu ISO for example) and I'd like to do that using a computer that's serving as my home server. Then I removed th...
padcom13.blogspot.com
Padcom's blog: November 2014
http://padcom13.blogspot.com/2014_11_01_archive.html
Saturday, November 22, 2014. Opening and closing resources. It's the silliest thing that's been bothering me for agest: why on earth would someone go through all the trouble to write code like that:. InputStream in = null;. In = openInputStream();. Do something with in. It's just so pointless I can't stand it. InputStream in = openInputStream();. Do something with in. Now isn't that a lot more readable, simpler and everything? Can anyone please be kind and explain this complete insanity to me? We're intr...
padcom13.blogspot.com
Padcom's blog: Using the Arduino environment with Eclipse
http://padcom13.blogspot.com/2015/02/using-arduino-environment-with-eclipse.html
Sunday, February 8, 2015. Using the Arduino environment with Eclipse. I've recently fallen in love with the AVR MCUs especially because of the Arduino and it's hugely successful Arduino IDE. It seems that if there is a piece of hardware, a sensor perhaps, then Arduino has a library for it that you can use. It's just great! So You have the Arduino IDE, you have UNO board (possibly a cheep chinese clone) and you have done the Blink example to the death. Now it's time to do some serious damage! That'll give...