February 18, 2016

Another way to fix SSLHandshakeException in SoapUI

Filed under: automation,windows — SiKing @ 8:02 am

Started testing a new API in SoapUI, and the very first thing I get is:

ERROR:Exception in request: Received fatal alert: handshake_failure

So off I go, copy-paste the error into Google and see what comes up. There is a lot of advice about this issue here, here, here, none of which worked for me. Although this SO answer did lead me down the right path.

In the end, the problem was much more deluding.

Java comes with its own CA TrustStore. SoapUI, at least on Windows, comes with bundled Java, usually very outdated version of Java. From my past (Linux) experience I know that SoapUI is intelligent enough, that if it does not find the bundled Java it will look elsewhere ($PATH, $JAVA_HOME). So I went to my SoapUI install directory and renamed jre to jre.ignore. Of course I had previously installed the latest Java8. Restart SoapUI, and problem goes away.

I am not sure whom to blame for this WTF. Certainly part of the blame lies with Oracle lawyers for being dickheads (Java8 is not allowed to be pre-installed on any device), part lies with Microsoft for forcing their users to be ignorant retards, and part lies with SmartBear for following the crowd (the “every Java application must also install its own version of Java” crowd) like a sheep.


July 23, 2011

Groovy Selenium WebDriver and SoapUI, part 1

Filed under: automation,linux,windows — SiKing @ 4:13 pm
Tags: , ,

I recently started a new job and a new project that called for me to make use of some things I have used separately over the past few years: combine SoapUI and Selenium into one framework, and make them work together – actually pass information from one to the other and back. While I am at it, I thought I would dust off some skillz from a box that I have not been in for some time: Eclipse and Java (I know the title says Groovy, I’ll get to that).

setting it all up on Windows

Of course at work they must run Windows. 😦

  1. Download and install (unpack?) Eclipse Classic 3.7, and run the Check for Updates. Mental note: gotta look at Eclipse for Testers, someday.
  2. You need to give it Java: set JAVA_HOME and add %JAVA_HOME%\bin to the PATH. The first one that I tried – there were like half-dozen different versions on my machine 🙄 – Eclipse complained that it is missing something called jvm.dll. Better get the real thing.
  3. If you create a shortcut to launch Eclipse from your desktop, I found that it is a good idea to set the “Start in:” field to the same thing as what your workspace is.
    Eclipse shortcut properties
  4. Install SoapUI. This plugin needs some post-install work/commentary. If you also run the SoapUI IDE, especially a different version than what you just downloaded, the two will share one %userProfile%\soapui-settings.xml and there could be collisions; I would really like to find a way to relocate this file for the Eclipse plugin. Also, if you did not start Eclipse from your workspace – point 3 above – then you are going to 1) possibly overwrite your %userProfile%\default-soapui-workspace.xml, and 2) possibly pollute your Eclipse installation with three *.log files that SoapUI always creates on startup. Lastly: what used to be %SOAPUI_HOME%\bin\ext (external jars that should be added to soapUI classpath, for example JDBC drivers) is now %userProfile%\ext; another thing I would really like to relocate for the Eclipse plugin.
  5. Install Groovy. The instructions say to use, but if you read between the lines, you will notice this is the development build and as such it changes often, like almost daily. I used and it seems to have worked right out of the box.
  6. Install SVN. I am not sure why Eclipse still comes pre-installed with CVS; does anyone still use this? When you’re done, make sure it worked. Normally there are problems.

setting it all up on Linux

Of course at home I run Linux. Surprisingly the Linux setup was a little more work. 😕

  1. I run Linux Mint 9 (Ubuntu Lucid Lynx – LTS); the repos have only Eclipse 3.5, which is way too outdated by now. Download and install (unpack?) Eclipse Classic 3.7, and run the Check for Updates.
  2. LM9 comes set up with OpenJDK. Eclipse will run with this, however, when doing this last time, I ran into some problems, like various things kept crashing the JVM. Somewhere on the Eclipse site (unfortunately, I cannot find the link now) they suggested that you use genuine Sun Java. This is accomplished with sudo apt-get install sun-java-jdk, and then you need to modify your eclipse.ini to point to /usr/lib/jvm/java-6-sun/bin/java.
  3. Install SoapUI. I’m still having problems with this one.
  4. Install Groovy. Use the same location as mentioned above, which makes it work right out of the box.
  5. Install SVN. Fix the problems.

July 18, 2011

Windows 7, downwards compatible NOT!

Filed under: automation,windows — SiKing @ 3:13 pm

I’m currently working on something new – another post coming later – and as usual I try to write scripts for everything which can subsequently serve as a roadmap for full automation. This time I’m doing it on a Win7 machine, which is a 64-bit operating system that is supposedly fully compatible with 32-bit applications. In the file system there are two locations where new programs get installed: c:\Program Files and c:\Program Files (x86). I don’t know if the location of the install actually matters to the operating system – actually makes the system consider the application as a 64- or 32-bit app; I suspect it does not. AFAIK it only serves to further confuse and break stuff. 🙄

January 26, 2010

How to fix Windows Powershell?

Filed under: windows — SiKing @ 2:06 pm

PowerShell icon
I am doing some automation work – it has to run from the command line, and completely unattended. Most recently, I am doing it under Windows. The classic shell has definite limitations, and the next step up is suppose to be the Windows Powershell. As awesome as this scripting shell is </sarcasm>, it unfortunately installs broken by default: you cannot run any scripts. Even though Microsoft calls this a security feature it makes the scripting shell rather useless. The procedure to unbreak it is quite hidden; not to mention written by someone who a) has a very quirky sense of humour, even for a geek, and b) has obviously never heard of Linux or bash.

I will spare you all the (other) bits like:

Most important, you’ll also be able to say things like, “You know, you really ought to dot source that script when you run it.” If that doesn’t impress your colleagues then nothing will.

The (one-time) procedure to unbreak it is:

1. From inside of powershell you need to run:

PS> Set-ExecutionPolicy RemoteSigned

Update: On Vista (and probably later) this will not work – you will get access to modify registry denied. You can either run powershell As Administrator, or you can edit the registry manually:

Windows Registry Editor Version 5.00


2. Then for your .ps1 files, you can associate a Run command:

C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe -noexit &'%1'

Yes, it must be single-quotes! 🙄

August 24, 2009

pwned by Windows

Filed under: automation,windows — SiKing @ 3:50 pm

I am starting to put together a new piece of a continuous integration framework (the self-test part, of course). This one has to be done on a Windows platform, specifically it has to run on XP and Vista, a first for me.

I am used to having everything that I could possibly need at my fingertips on a base install of Linux. I can’t remember EVER having to go and hunt for some tool that I would need to get something like this done that was not already installed.

I first decided to see how far I could go with a base Windows install; that is, the minimum amount of tools that are not part of the original install. This means that I tried to resort to pure .bat scripting. 😥

Syncing different Windows machines

As is often the case, this has to run on multiple machines. I am just too lazy (and error prone) to go and make one small change on every single machine every time I update something. I want the framework to be self-updating! In order to achieve that, I had to install SVN on all he machines. My first rule broken, and I did not even get started. I did not even try to work around this one: some sick munched up network test if a drive is mounted properly, copy over network if the machine is not down, verify the copied files, decide which one is considered the master, …

Getting the day of week on Windows

I want different tests to run on different days of the week – this is strictly a management decision, there was no technical reason to do this. No big deal. In pure .bat scripting this is quite difficult to get, but not impossible … or is it?

The only command that I could find that gives you the day of week is date /T. It dumps out something in the format: “day date”, where “day” is a three-letter code for the day of week, like “Mon”, “Tue”, etc; and “date” is the current date. Now how to parse that? After like an hour of Googling and browsing the specs, I ended up with:

for /F "tokens=1" %%d in ("%date%") do set day=%%d

Nice, huh? They even have a different way of naming the variables inside the loop, depending if you are doing it from the command line or from a script! 😯 To tell you the honest truth, I am not really certain how this actually works. However, the first time I ran it on one of my test machines, %day% ended up being something like “18/08/09”. I’m thinking WTF? Tried it on another machine and got “Tue”. After some more trial and error, I discovered that the output of the date command varies depending on what locale you have set in your preferences. What sick sadistic MF over at Redmond thought this would be a good idea?

Scheduling things in Windows

Of course not everything everywhere is the same. Some parts of the tests need to change between different machines. From the Linux world, I normally did this through environment variables. Bill’s posse decided to outdo Linux by introducing three types of environment variables, only two of which are properly documented! After some trial and error I found a combination that worked … until I tried to run my tests as a Scheduled task. The facts that the tools for scheduling a task 1) are found in completely different location between XP and Vista, 2) have completely redesigned interface, and not for better, and 3) have their file formats that you export/import totally incompatible between the two, no longer dissuaded me. It makes work that much more interesting. But the fact that different variables are passed to the scheduled tasks in different versions of the OS, is another example of Windows’ big middle finger for the programming world.

There was a time once that I used to run a liberated version of Windows on my machine. Today, they could not pay me enough to install that piece of dung on my machine. I wouldn’t want it even for free!

Next: PowerShell. 🙄

August 11, 2009


Filed under: noki,tech,windows — SiKing @ 1:19 pm

Not much actually. 😐

So my Noki is now officially outdated. 😦 Man, €500 and 19 months later, and stuff is no good anymore. 😯 Am I the only one who thinks that a device I pay that much money for should last me at least a decade? Yea, naïve, I know. 😥

Update 09/08/21: Now I know why. Nokia N900 running full Linux. Yea baby!

I am so over 64bit operating systems, regardless of the vendor. I suspect the biggest problem that is killing the whole thing are peripheral vendors. Apparently 64bit support was available in CPUs from 2003, and OS supported it from 2001 – both on the desktop. However, five years after the fact, support from (closed source) hardware vendors is flaky at best! Here is just one example of a miserable issue I recently ran headlong into.

Here is a good one. The other day, while I am installing something – something that I have been installing the same way at work for the past 6 months – out of nowhere pops up the following:

Site Server 3

This is a 10-year old product ❗ And I get this popup only when I am installing over the network. Anyone know where the heck this comes from ❓

February 25, 2009


Filed under: linux,windows — SiKing @ 2:10 pm

For the past several days, I have been experimenting with Wine – the WINdows (not!) Emulator. The first, perfectly valid, question is: why bother? Well, I have several devices (iPod, Nokia smart phone, Magellan GPS) that all come with some supporting software – software that will only run under Windows. Allegedly Wine has come a long way. However, I was met with disappointment in every single case. In several cases, the software did not even install, even though the installer said it did. If it did manage to install, it certainly did not work properly, and in most cases it was not able to detect the device it belongs with. Wine is not even able to keep track of what is where, and was not able to uninstall any of the software – rm -rf ~/.wine does the trick nicely. Lucky for me, there are Linux-native replacements that do what I need done.

For my buck, wine is a waste of effort; if I actually need Windows then I will stick with running it in a virtual machine.

August 15, 2008

Winblows in Frankfurt too

Filed under: windows — SiKing @ 8:15 am

Not an uncommon site on my recent stop-over in Frankfurt:

Windows error

Here is what you get if you try to fix it:

Windows BSOD

Here is what happens when a professional fixes it:

Windows sleeping

Man, I can’t believe that people still pay for this stuff. 🙄

June 4, 2008 not colourful enough!

Filed under: ooo,windows — SiKing @ 4:11 pm


I am big fan of FOSS. I don’t know what existed before the Netscape suite, and I don’t much care for anything outside of that family of products today. I always looked at MS competition, but their Office suite was usually forced down my throat due to compatibility issues with management and marketing at work. really grabbed me only after version 2.

The other day, I needed to generate some birthday party invitations for my 8y.o. daughter. How hard can that be? Just grab a nice template off the net and off you go. Right? 😕

Anything nice here?”

“No,” says my daughter, “I like horsies.”

“OK,” resisting the knee-jerk reaction. “Let us see what we can find on the Internet.”

“I don’t like any of those either. Why don’t you go to that really colourful one daddy?” I know she is talking about MS-Office, and you should know that she has never seen 2007 version.

“Well let’s try just one more look.”

“Daddy, is this going to take long?” Still looking over my shoulder, but a little more impatient. Actually, so am I; this should not be that difficult!

Screw it! Three clicks later, I’m staring at Active-X errors in Firefox. 🙄

Why is it that anytime I have a chance to show somebody something relatively simple in some office suite, keep in mind that I am not an office drone and so I am no guru with any office suite, I can usually come up with a better, but more importantly faster, solution in MS?

May 15, 2008

Tell me I’m wrong

Filed under: google,windows,wp,yahoo — SiKing @ 10:52 pm

There are people who would describe me as a Microsoft-hater. I don’t actually hate their technology, and I believe there’s even a place for it. I am a software tester by trade, and all software is flawed and buggy, it’s only a matter of degrees. What I don’t like about MS is their marketing strategy and their stance on many other things that matter. Right from the start little Bill let the world know that he is in it for the money! MS has had its share of dumb luck over the years. But when they realized that the free-loading, commie loving, open sourcie guys actually had something, they opted for all out war. They used some down right evil strategies over the years and are still doing it today, and in doing so they made the world a worse place to be. In the end, when they finally discover they can’t beat them they decide to join them? Gimme a break!

So why a WP blog, why not a Yahoo! 360 blog? I mean I have been a long-time user of Y! Whenever I needed anything, I would usually turn to Y! as my first choice. My first blog was a 360 blog. I have been a fan of Y! search, even when everyone else around me was using HotBot and AltaVista. I have had GeoCities websites before (and after) the buyout. I was the first in line to sign up for Y! e-mail. And there were other services that I tried and even actively used over the years. The problem is that Y!, IMHO, has a nasty habit of taking a good idea and totally crippling it to the point of uselessness. Are you allowed to have non-Y! friends? What about something slightly simpler, like any visitor (even a non-Y! one) being able to leave a comment on your 360 blog? Once they realize the execution of the idea is shit they completely abandon the product and just let it bit-rot. Has anyone today heard of Y! briefcase? Unfortunately, the most useful (and still documented) feature is now turned off and has been for a very long time. How long has Y! 360 been in beta? The list is endless. I’m not even going to get into the recent public affair between Y! and MS. The one single thing that speaks for itself though, is the Yodel Anecdotal: the Yahoo! Corporate blog. Once the page loads up, check the source (somewhere under the View menu of your browser), and look at line 9 – the one that starts with <meta name="generator". Hey, what’s good enough for Jerry is good enough for me! 🙂

Blogger is in a different category … for now. I will admit that my choice between Blogger and WordPress was based solely on this Slashdot article – admittely, not a very informed choice. I already use some of the Google’s other services (mail, search), and there are some that I am afraid suffer from bit-rot (browser sync). But overall, I get the impression that Google is everything the above two are not.

September 21, 2007

In the news recently

Filed under: linux,windows — SiKing @ 12:36 pm

For the past several months, especially since I started reinstalling thetao on a weekly basis, my workstation distro of choice has been KNOPPIX. I was actually surprised how little customization (1 script, 10 lines long, runs about 10 seconds) on top of the KNOPPIX configuration I had to make, in order to have it automatically access all machines that I need on our work network and to be able to do everything that I need to do. I have been eagerly awaiting the next major release of KNOPPIX for quite some time. Because I plan on making several (tiny) changes to some of the KNOPPIX scripts and submitting them back to the developers, I got onto the debian-knoppix mailing list. I was glad to see this totally unofficial announcement … however, considering that I am writing this the next day after the post and still nothing, I wonder.

SCO, the the scourge of all things Linux, have been making news all over the place and have finally admitted they are in deep shit. Good for them and more so for us.

Microsoft have suffered a major defeat in the EU courts. Now, while I’m no Mickey lover, there is one item in this particular ruling that I find troubling. As part of the deal, Microsoft are forced to sell a version of Windows that does not include their Media Player. I believe that any vendor of any software should be allowed to enhance / cripple their software in any way they please. It is theirs after all. Having lawyers dictate what should or should not be bundled with software will lead to no good! That is how we got Windows in the first place.

June 18, 2007

Windows 2000 SP5 and Linux Ghost

Filed under: linux,windows — SiKing @ 12:29 pm

How do you backup stuff? Do you even bother? I took some time today to go through a proof of concept exercise for myself, just to see if I could do it; actually, it was a couple of different exercises strung together in a row.

Slipstreaming Windows

I recently updated etanol from WinXPx64 to Win2k. I used an SP1 CD to perform the install, and I had previously downloaded SP4 which had to be installed afterwards, and after that Microsoft also released an Update Rollup, and then about 50 additional fixes. After that, IE needs to be upgraded to version 6, and WMP is now up to version 9, and… To make a long story short, to install the basic system with all updates takes a very long time. In order to make this easier, you can slipstream all this stuff into the install CD.

I created a Windows 2000 SP5 install CD using the hfslip utility; vg’f yvprafr serr, yrzzr xabj vs lbh jnag n pbcl! The utility even allows you to update IE, OE, WMP, .NET, Java and some other stuff all to latest versions! If nothing else, the page is an interesting read on the incompetence of Microsoft. The process of creating the CD and then installing it, is much faster than installing everything separately. Tried the resulting install CD on my test machine, and it seemed to have gone fine. The really kool thing is: the entire utility is a 220k batch script!


I knew about this *NIX utility from before, but only after reading Hack #48 in Knoppix Hacks did I find out actually how easy this thing is!

To backup the entire drive, you just run sudo dd if=/dev/hda of=/media/sda2/ &, where /dev/hda is the entire disk you want to backup and /media/sda2 is a mounted location where the backup image hda.img will be created. You can watch the progress with watch ls -l /media/sda2/hda.img as it will take some time. Since everything in *NIX is a file, you can backup only one partition by telling dd if=/dev/hda1 or whichever. Have a read through the man page to see what all it can do.

To whack the entire disk, just to prove a point, I used the shred utility, described next door in Hack #49.

To restore the backup you just switch the targets of the if= and of= that you passed to dd.

As with everything else in *NIX world, dd can be piped to / from a remote machine across a network. And for those that are a little squeamish about the command line, there is even a menu-driven front end.

Man, screw that other thing!

Next Page »

Blog at