Q7

Some way to call methods with arguments via reflection from ECL

Details

  • Type: Story Story
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2.0
  • Fix Version/s: 1.2.3
  • Component/s: None
  • Labels:
  • Test Mode:
    Manual

Description

To get a data in nebula grid it is required to call a method getText(int column). Since method has a parameter it is not accessible via Advanced properties.

The fix might be to extend a get-property to understand method calls with parameters, so the script will look like this:
get-canvas | get-property "getItems[0].getText(1)" | equals "ColumnValue" | verify-true
Or, which I guess is a more preferable way, add a general ECL command like call-method, so the following script might work:
get-canvas | get-property "getItems[0]" -raw | call-method getText 1 | eq "ColumnValue" | assert-true "Unexpected column value"

Activity

No work has yet been logged on this issue.

People

  • Assignee:
    sergey
    Reporter:
    komaz
Vote (0)
Watch (0)

Dates

  • Created:
    23/Jul/12 6:22 PM
    Updated:
    30/Jul/12 10:15 AM
    Resolved:
    30/Jul/12 10:15 AM