 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Peter Nicolai Motzfeldt
RE: check_component return nil [ reply ] 2008-07-11 08:35
|
Hi
I did also look into the AdvancedDataGrid issue yesterday. And did also get the error you mention. I actually do not remember why I changed the framework to take all children, but it was an issue earlier. I also did a little local fix, which makes me able to test the advanced datagrid as a regular datagrid (not the fancy stuff yet).
Could you post the changes you did, I think they might be better than mine :-)
|
By: Ilkka Kudjoi
RE: check_component return nil [ reply ] 2008-07-11 06:15
|
Hi Peter,
thanks for the reply and debug tip. I tried to debug a little bit, and I found that AdvancedDataGridGroupItemRendererAutomationImpl/get automationName gets called for a renderer that does not have listData, thus an error is thrown because automationName tries to access listItemRend.listData.label. My AdvancedDataGrid has three nodes, but four renderers are created, I wonder if this is an extra render that the ADG creates for future use?
Sure it is dumb that this AutomationImpl throws an error, but I just wonder, why FunFX tries to access every child of the app but not only automation children? I'd be happy to stick only to automation children, my ADG has only three automation children of this kind, and I believe that this fourth child is not one. I sure can have this wrong, but this is my hypothesis about the problem.
BR Ilkka
|
By: Peter Nicolai Motzfeldt
RE: check_component return nil [ reply ] 2008-07-10 15:46
|
Hi Ilkka
So you are able to perform some actions against flex components, but it is inside the accordion it fails?
It is no easy way to debug FunFX, I have not found any better way that creating a button in the application you are testing, and adding the FunFXAdater as a project rather than a swc file on the compiler option. Then you can create an instance of FunFX and call the methods from the button. Not a pretty way to debug, but it works.
Let me know if you need any more help og figure out what the problem is.
|
By: Ilkka Kudjoi
check_component return nil [ reply ] 2008-07-10 11:55
|
Hi,
I've been trying to incorporate functional ui test to our software project, but unfortunately I can't get too far. Our program first requires login and then selection of a proper view from an accordion, which I manage to automate, but then I fail to do anything inside the view. I get this error message:
NoMethodError: private method `split' called for nil:NilClass [path to gems]/FunFX-0.0.4/lib/flex.rb:33:in `method_missing'
This happens because check_component in line 31 returns nil unexpectedly. I have tried accessing variuous components without success, and the names of the components I've tried to access are unique.
I'd appreciate any kind of advice and improvements of the framework. I'd also be happy to debug the fw myself if I knew how to debug the actionscript part of the fw when running ruby code.
The fw seems very promising to me, keep up on the great work you're doing!
Cheers,
Ilkka Kudjoi
|
|
 |