Refactor twill tool test driver to encode hda id earlier.

And pass an encoded id to display action in root controller.

Would definitely like to simplify or better yet remove root.display if not used anywhere else, it should be coming in through dataset controller.
Refactor shared code in functional_tests.py into a method.
Small simplification to test/functional/test_toolbox.py.
Refactor test data input setup logic out of TestToolBox into ToolTestBuilder.

Simplifying test_toolbox.py will hopefully make it easier to provide an alternative API driven option.
Refactor data staging and tool running logic out of test/functional/test_toolbox.py.

In a new twill specific interactor class, idea here is to proceed by implementing a matching API interactor class.
Upload a tool test's inputs in parallel.

Probably small optimization in most cases since tests generally have few inputs.
Inject master API key into functional test Galaxy.

Override or set external key with GALAXY_TEST_MASTER_API_KEY.
Tool functional tests - refactor reusable function for verifing output

... from verify_dataset_correctness. Introduce simple, extensible abstraction for fetching outputs for verification in twilltestcase.py. Will want to reuse the core verification of the displayed dataset in the API driven case and will not need or be able to use the extra cruft related to checking UI, job state, etc...

Also small twilltestcase code structure updates for Python 2.6+.
Outline new API based galaxy interactor for functional tests.

Add mechanism to tool test parser code to determine which Galaxy interactor should be used ('twill' or 'api' are current options). This maybe a stop gap to force usage of the API interactor until that becomes the default or may prove in the long term to be essential if there are certain tools that will always require Twill-specific functionality or if new browser-based JavaScript (e.g. w/selenium) are implemented. An interactor value can be specified at the tests level and/or at the level of individual test elements in the tool XML (using the 'interactor' attribute on either element).

The current default interactor is 'twill'. The default interactor app-wide can be overridden with the GALAXY_TEST_DEFAULT_INTERACTOR environment variable.
Twill-less tool tests initial implementation.

Implement GalaxyInteractorApi, is working for simple tests.

Lots left to do likely - conditionals, repeats, composite uploads, pages(?).

Introduces dependency on Python requests package - subsequent changeset will provide urllib2 based fallback if requests unavailable.
Twill-less tool tests - allow tests with GALAXY_TEST_EXTERNAL...

... if GALAXY_TEST_EXTERNAL is ever fixed.
Move test_toolbox's expand_grouping out into tool/test.py.

Will be merged with related tree code already in test.py in a subsequent changeset.
Simplify logic in tool test expand_grouping.
Tool functional tests - all unspecified default conditional values.

Fix should apply to both twill and API variants. For now just grabbing first option in select list, a subsequent changeset adds much richer options including handling of booleans and options labeled as default.
Twill-less tool tests - handle repeats and conditionals.

Expand 'inputs' tree when building tool inputs for API functional tests.

Code is in there for both flat inputs (the way the UI would submit them), and a nested tree structure. The nested tree structure will not work with the Galaxy API currently - but it is the way the API should work :).
Twill-less tool tests fix for nested input filenames.
Twill-less tool tests fix for tests with html outputs.

For example gatk_analyze_covariates.
Twill-less tool tests fix for binary data in results.

Use requests' response.content instead of response.text for reading results.

Fixes the following error 'UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-3: ordinal not in range(128)' when dealing with ASN.1 binary files.
Twill-less tool tests - enhancements related to errors.

 - Report formatted standard error and standard output of tools like Twill interactor.
 - Respect testdef.maxseconds to timeout test cases.
 - Check history item - like Twill interactor do not verify 'error' datasets.
 - Properly raise exceptions with reported API error messages when running tools.
Add new option, tools, and data to functional test framework to test/demonstrate tool framework itself.

Add smaple repeat tool demonstrating some weaknesses of twill-based current framework.