Got red herring errors below when trying to install
Soyatec's excellent UML Eclipse plugin eUML2. Found real answer in the Soyatec forums here -- install GMF (Graphical Modelling Framework) first.
Worked a treat. Errors after the break.
Software development notes especially observations on Axe sharpening vs. Yak shaving, how to tell the difference and where to focus the time [amongst other observations].
Monday, 13 June 2011
Saturday, 23 April 2011
Bug: SoapUI fails to add REST Test Method to Test Case when using Resource solely to share parameters
[Duplicated from my EviWare/SoapUI forum post here.]
Using SoapUI 3.6.1, I ran into same problem as listed here viewtopic.php?f=2&t=4462&start=15 (which I named this topic after).
I downloaded the 3.6.2 nightly and retried. No fix.
OOI, by opening the project XML in Eclipse, I can see that despite throwing the same error, if I save, the new testStep does appear in the XML. I've tried "Resolve" (no errors), loading and reloading, restarting SoapUI. No help.
Below are more details of the problem some more and a workaround ...
Using SoapUI 3.6.1, I ran into same problem as listed here viewtopic.php?f=2&t=4462&start=15 (which I named this topic after).
I downloaded the 3.6.2 nightly and retried. No fix.
OOI, by opening the project XML in Eclipse, I can see that despite throwing the same error, if I save, the new testStep does appear in the XML. I've tried "Resolve" (no errors), loading and reloading, restarting SoapUI. No help.
Below are more details of the problem some more and a workaround ...
SoapUI aide memoire and groovy scripting (on RTM)
A braindump (not a tutorial) on SoapUI including use of Groovy to script parameter generation!
To whet pre-jump appetites, the SoapUI primary structure:
To whet pre-jump appetites, the SoapUI primary structure:
- Project - houses...
- Methods - Create these including parameters that need populating later (I'm doing REST atm)
- TestSuite - One can only script within a test suite/case so we'll need one
- TestCases - one for each separable chunks of work.
Lots of choices but I've mostly used... - GroovyScript - code to generate values (like hashes)
- PropertyTranfer - Used to copy values between scripts and calls' parameters (REST calls, etc)
- Test Request (REST/SOAP/HTTP/JDBC/AMF!) to make actual calls
- Setup Script and TearDown Script can be placed on TestSuite, TestCase, etc to also house the scripting. (but I've generally found scripts more handy.)
- Project-wide utility methods can only be defined with a SoapUI Pro license (IIUC). Without this, I've ended-up with some copy-and-paste re-use :-( Shame there's no sliding scale from Community to Pro!
Thursday, 21 April 2011
Tacking to pick up the Droid trade wind
Well, wow a lot's happened since that last post. My Father died (yep, "To lose one parent, Mr. Worthing, may be regarded as a misfortune. To lose both looks like carelessness."), decided to re-evaluate life and left Malden Labs. I had a great time there; learned, saw and did lots; met a tonne of interesting people and wouldn't have missed it for anything. However, I always fancied being master and commander of my own boat so am taking The Good Ship UGS (my half-comically, half-seriously named company) to sea. Initially with some Android app and game writing but we'll see which way the wind blows. Android appeals since I've been Java programming since '96 and the current current at last seems strong enough to carry us to promised lands (and/or cities of gold). To top it off, as an ideas person, I'm slightly sickened by the slew of recent business successes that are depressingly (or reassuringly) similar to previous ideas. (I'm sure this isn't unusual but that doesn't make it less sickening ;-) )
So starting simple and trying to focus on failing fast with delicious early feedback, first projects will be a 2D casual game using AndEngine and a personal-itch scratching Android RememberTheMilk Sharer utility (surely it's not that hard to catch the SEND intent, offer to store to RTM with some processing to tidy-up common content.)
Never fear, our regular yak programming will continue (even more so now since I won't be posting on internal blogs and wikis!) but maybe there'll even be some non-yak content! Ok, time for a calming lie down ;-)
So starting simple and trying to focus on failing fast with delicious early feedback, first projects will be a 2D casual game using AndEngine and a personal-itch scratching Android RememberTheMilk Sharer utility (surely it's not that hard to catch the SEND intent, offer to store to RTM with some processing to tidy-up common content.)
Never fear, our regular yak programming will continue (even more so now since I won't be posting on internal blogs and wikis!) but maybe there'll even be some non-yak content! Ok, time for a calming lie down ;-)
Sunday, 30 January 2011
update-alternatives and the Chrome takeover quash
Finally got round to understanding Ubuntu's /etc/alternatives a little more after installing Chrome made it my default browser!? More details after the jump (another first!) but briefly:
- List all alternative-able things:
sudo update-alternatives --get-selections
- Choose which browser:
(these present menu to select from)sudo update-alternatives --config x-www-browser sudo update-alternatives --config gnome-www-browser
Wednesday, 3 November 2010
hg rebase or how to move trunk/default changesets to a branch
Scenario:
One wishes to move changesets on trunk (starting with revision A onwards) to a new branch B.
One wishes to move changesets on trunk (starting with revision A onwards) to a new branch B.
- Enable the Rebase extension for you / the repository per the RebaseExtension docs
- If outstanding changes, commit or shelve them!
(otherwise next step will generate merge request) hg update <A-1>
(the one before you wish to move to branch B)hg branch B
hg status
confirm output has no actual changes (branch change won't be shown)hg commit -m 'create B'
hg branches
get actual revision for B, we'll call it Chg rebase -s A -d C
Monday, 18 October 2010
Error #1069 using namespaced members
Error:
Answer:
Check that both declaration and use are using exactly the same definition of the namespace. For example, check that you don't have a duplicate definition!
We saw this problem when project A had namespace An on methods in class Ac. Used by project B in class Bc. All looked fine, compiled fine but unit testing saw Error #1069. Eventually realised that a bad refactoring had left a second copy of the namespace An in project B (where it had orignally been), leaving An obscured by the identically named Bn. Bc was using Bn which failed to resolve to An hence members in Ac were unreachable!
(Yes, I can add a diagram if anyone wants.)
Obviously ideally the tooling should highlight this.
HTH!
ReferenceError: Error #1069: Property myNamespacedProperty not found on a.b.c.MyClass and there is no default value.Seen when attempting to access a member (property/method/accessor) of a class that uses a custom namespace, e.g:
messaging_internals function getMillisecondsSinceSent():uint { return getTimer() - _lastSentTime; }Obviously here "messaging_internals" is the namespace.
Answer:
Check that both declaration and use are using exactly the same definition of the namespace. For example, check that you don't have a duplicate definition!
We saw this problem when project A had namespace An on methods in class Ac. Used by project B in class Bc. All looked fine, compiled fine but unit testing saw Error #1069. Eventually realised that a bad refactoring had left a second copy of the namespace An in project B (where it had orignally been), leaving An obscured by the identically named Bn. Bc was using Bn which failed to resolve to An hence members in Ac were unreachable!
(Yes, I can add a diagram if anyone wants.)
Obviously ideally the tooling should highlight this.
HTH!
Sunday, 17 October 2010
FlexUnit from both FlashBuilder and FlexMojos for library projects
FlashBuilder leaves its FlexUnitTestRunnerUI files in "src".
For packaging:swf FlexMojos projects, that's fine (*1), it builds them.
*1: OK, it may not be all that fine but it doesn't cause failure.
For packaging:swc FlexMojos projects, they fail with "Type was not found" etc errors! How to fix, after the break...
For packaging:swf FlexMojos projects, that's fine (*1), it builds them.
*1: OK, it may not be all that fine but it doesn't cause failure.
For packaging:swc FlexMojos projects, they fail with "Type was not found" etc errors! How to fix, after the break...
Sunday, 10 October 2010
How to fix Flash Builder debugging after breakage by installing Flash Professional
Short version:
Flash Professional messed up Flash Builder's debugging capability. On Windows, one can replace references to the FP runtime from 'Professional with that to a FlashPlayerDebugger.exe and all will be well.
Flash Professional messed up Flash Builder's debugging capability. On Windows, one can replace references to the FP runtime from 'Professional with that to a FlashPlayerDebugger.exe and all will be well.
Tuesday, 5 January 2010
RESTlet deployment woes (from GlassFish v2 to AppServer v2)
Some incomplete notes on deploying our RESTlet-based application (tested on GlassFish) to our Sun AppServer v2.1.
Subscribe to:
Posts (Atom)