HomeHome
MarathonMarathon
MarathoniteMarathonite
CompanyCompany
ContactContact
WeblogWeblog
 

You are currently browsing the archives for the Marathon category.

CATEGORIES

BOOKMARKS

Working on assert_content implementation for JRuby. And straight-away headed into a road block. The call to assert_content looks like this:

assert_content('component', [['R1C1', 'R1C2', 'R1C3'], ['R2C1', 'R2C2', 'R2C3']])

This function from ruby should call a java function:

assertContent(String componentName, String[][] content);

Now it is easy enough in JRuby to convert an array of strings to java array of strings:

['hello'].to_java :String #=> String[]

But converting a array of array of strings is not that straight forward. After a bit of hacking, I found this way.

[['r1c1', 'r1c2'], ['r2c1', 'r2c2']].to_java([].to_java(:String).class) #=> String[][]

Is there any better way of doing this?

Posted by KD Posted in JRuby, Marathon | 4 Comments »

This post is about two features that are yet to be released for Marathon. We are working on these features and hope to release soon. I am publishing these details in the hope of getting feedback.

Checklists

Checklists are everywhere. The GTD crowd lives by them. A checklist is a tool in testers arsenal when used well makes mundane tasks easy to handle, complex tasks more structured and overall provides systematic way of handling testing.

Read the rest of this entry »

Posted by KD Posted in Marathon | No Comments »

We have been working on creating a dialog (somewhat complicated) using grid bag layout. Designing the form became a hassle some components started moving around quite a bit.

Marathon to the rescue.


Read the rest of this entry »

Posted by KD Posted in Marathon | No Comments »

Running tests headless

June 10th, 2008

Updated. Thanks to Arun for giving me a pointer to pstools.

This will be part of Marathon User Guide when it comes out. I am writing these snippets so that you can benefit from them now.

Now that you wrote a lot tests using marathon how do you run them? The problem with GUI testing is that your desktop is tied up for the duration of the tests. The monitor blinks like a tube-light with a starter problem with Windows popping up all over with crazy titles - ‘testStartAndStopRecordingWithSetupAndTearDown’ or ‘testDeleteFilesWithSomeFailures’. Even if you can live with this - all these popping up windows will be stealing your application’s focus (beside stealing yours) and some of your keystrokes and mouse clicks will go there. In the end you end up not knowing whether a test case failed because of you using the keyboard or a bug in the application under test.

Read the rest of this entry »

Posted by admin Posted in Marathon | 3 Comments »