Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #2323 (closed)

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

Param creation: attributes set incorrectly

Reported by: wmoore Owned by: jamoore
Priority: minor Milestone: OMERO-Beta4.2
Component: General Version: n.a.
Keywords: n.a. Cc: jburel
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: 2010-04-30 (8)

Description (last modified by wmoore)

E.g. Set min = 1.
Param.min.value != 1

Test committed below

wjm:OmeroPy will$ PYTHONPATH=$PYTHONPATH:.:test:build/lib ICE_CONFIG=/Users/will/Documents/workspace/Omero/etc/ice.config python test/integration/scripts.py TestScripts.testUploadOfficialScript
F
======================================================================
FAIL: testUploadOfficialScript (__main__.TestScripts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/integration/scripts.py", line 96, in testUploadOfficialScript
    self.assertEquals(1, param.min.getValue(), "Min value not correct")
AssertionError: Min value not correct

----------------------------------------------------------------------
Ran 1 test in 2.514s

FAILED (failures=1)

Change History (8)

comment:1 Changed 9 years ago by wmoore

(In [6857]) Test fails to set param attributes correctly. See #2323

comment:2 Changed 9 years ago by wmoore

  • Description modified (diff)
  • Owner set to jmoore

comment:3 Changed 9 years ago by jburel

  • Cc jburel added

comment:4 Changed 9 years ago by wmoore

I think this bug might explain this error: The 'values' attribute has been applied to 'max'

Traceback (most recent call last):
  File "uploadRunScripts/runRoiMovieScript.py", line 171, in <module>
    runScript(scriptService, scriptPath)
  File "uploadRunScripts/runRoiMovieScript.py", line 104, in runScript
    proc = scriptService.runScript(scriptId, map, None)
  File "/Users/will/Documents/workspace/Omero/dist/lib/python/omero_api_IScript_ice.py", line 149, in runScript
    return _M_omero.api.IScript._op_runScript.invoke(self, ((scriptID, inputs, waitSecs), _ctx))
omero.ValidationException: exception ::omero::ValidationException
{
    serverStackTrace = 
    serverExceptionClass = 
    message = Invalid parameters:
	OUT OF BOUNDS   ---   green is above max ['red', 'green', 'blue', 'yellow', 'white']

}

comment:5 Changed 9 years ago by jmoore

  • Status changed from new to assigned

comment:6 Changed 9 years ago by wmoore

(In [6884]) Fixed parameters in scripts.py. See #2323

comment:7 Changed 9 years ago by wmoore

  • Resolution set to fixed
  • Status changed from assigned to closed

Seems to be OK now

wjm:OmeroPy will$ PYTHONPATH=$PYTHONPATH:.:test:build/lib ICE_CONFIG=/Users/will/Documents/workspace/Omero/etc/ice.config python test/integration/scripts.py TestScripts.testUploadOfficialScript
min 1
max 10
values [object #0 (::omero::RLong)
{
    _val = 5
}]
.
----------------------------------------------------------------------
Ran 1 test in 19.114s

OK

comment:8 Changed 9 years ago by jmoore

(In [6893]) see #2323 - Trying to reproduce param issue

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.79467 sec.)

We're Hiring!