This problem has been fixed in change set 3408:6471c9b8149c which should be available in the distribution shortly. On Feb 16, 2010, at 9:34 PM, Assaf Gordon wrote:
Hello,
I'm trying to add a <tests> section for a tool which has a boolean/ checkbox parameter. If one of the tests set the parameter's value to "false", the test throws an exception (before starting the actual job). If changed to "true", the test works.
I've seen only a few tools with a boolean parameter (grouping.xml, complement.xml, concat.xml, merge.xml, phastOdds_tool.xml) and all of them only test the "true" value.
I've tried setting the value to "false", to an empty string, and removing the parameter entirely, but it always throws an exception similar to: ================= Traceback (most recent call last): File "/home/gordon/temp/galaxy/test/functional/test_toolbox.py", line 134, in test_tool self.do_it( td ) File "/home/gordon/temp/galaxy/test/functional/test_toolbox.py", line 56, in do_it self.run_tool( testdef.tool.id, repeat_name=repeat_name, **page_inputs ) File "/home/gordon/temp/galaxy/test/base/twilltestcase.py", line 920, in run_tool self.submit_form( **kwd ) File "/home/gordon/temp/galaxy/test/base/twilltestcase.py", line 870, in submit_form raise AssertionError( errmsg ) AssertionError: Attempting to set field 'header' to value '['false']' in form 'tool_form' threw exception: id=None name='false' label=None control: <CheckboxControl(header=[true])> If the above control is a DataToolparameter whose data type class does not include a sniff() method, make sure to include a proper 'ftype' attribute to the tag for the control within the <test> tag set. =================
Any workarounds ?
thanks, -gordon _______________________________________________ galaxy-dev mailing list galaxy-dev@lists.bx.psu.edu http://lists.bx.psu.edu/listinfo/galaxy-dev
Greg Von Kuster Galaxy Development Team greg@bx.psu.edu