I have released a new version of the Test Suite Batch Converter plugin for Selenium IDE. This version, v1.5, brings the ability to convert test cases directly without requiring them to be part of a test suite via a new menu item “Batch convert test cases”. So now you can convert both test suites and the included test cases using the existing “Batch convert test suites” menu item as well as convert stand alone test cases using the new “Batch convert test cases” menu item.
Along with this, the batch conversion language options (i.e. the formatters) will now be listed in alphabetical order. This version also supports Selenium IDE v1.0.10 and will correctly choose the appropriate file extensions during conversion.
Some interesting things this time included having to make a decision on how to identify that a html file is a test case or not. The parser included in Selenium IDE is very forgiving and treats any html file with table rows as a test case and tries to parse it. Generally, I advise the use of the file extension .sel.htm for test cases. This makes it clear that the file is supposed to be a test case. Alas, such use is not wide spread and hence could not be used. Finally, I had to resort to providing a different menu item for converting just test cases. This way the user has the responsibility to provide valid test cases. This choice also lead to internal refactoring to extract out the common functionality that is now used in two places.
As an aside, the name is no longer accurate, but I have decided not to change it. For those who enjoy the latest cutting edge stuff, you can get it from the versions page on the Firefox addons website. If you want to wait, you will get it automatically as soon as the nice people at AMO approve it. As usual, I would appreciate comments, improvements, advise, criticism, problems… I am still on holiday so responses may be delayed.
I’d really like to be able to control the file extension of the outputted files.
Hi,
Is there any specific reason that you would need to change the default extension? For example, changeing the .java extension to something else may not be very useful.
Cheers,
Samit
Thanks for creating this plugin. I am trying to use it to batch convert a large number of test suites and tests (over a thousand tests) to ruby RSpec.
The issue is about the handling of directory structures. The test suites and tests are in a complex directory structure. The problem is that when I select a test suite (or suites) to convert, the converted suite is fine and has the directory structure preserved. However, the tests wind up being flattened into a single directory. This is causing naming conflicts, etc., and simply put we need the converted tests to be put into a directory structure the same as the one they came from.
Is there any way this can be fixed?
(some details – the suites are usually above a folder where the tests are, though the test folders may have subfolders of more tests but no suites – simpleest case is a suite and its tests in the same folder. )
Just updated to Selenium IDE 1.1.0, and ‘Batch Converter’ disappeared. Thought I’d try to reinstall, but get a failure with message “Requires additional items.” – no mention of which items etc… Thinking this is a general message when incompatibilities exist.
Will try to roll back to previous IDE, as ‘Batch’ saves me too much work to continue with IDE 1.1.0.
– neptune
Hi Neptune,
New version should be out soon. Watch my blog for the announcement.
Cheers,
Samit
Hi,
Very useful tool, however I do not get a convert to java option…?
Should I be getting this option in the ‘Batch….’ options?
Cheers,
Andy
Hi Andy,
The recent versions of Selenium IDE have changed the names of the Java formatters. The new names start with JUnit or TestNG and are based on the underlying framework used.
Cheers,
Samit