Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 438303 - iOS: click in compoment action causes Execution Error: "*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]
Summary: iOS: click in compoment action causes Execution Error: "*** -[__NSPlaceholder...
Status: CLOSED FIXED
Alias: None
Product: Jubula
Classification: Technology
Component: Tools (show other bugs)
Version: unspecified   Edit
Hardware: All Mac OS X
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Oliver Goetz CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 437056
  Show dependency tree
 
Reported: 2014-06-26 12:37 EDT by Maissmaallsmyss Maulhs-Vvuillss CLA
Modified: 2014-08-05 04:09 EDT (History)
2 users (show)

See Also:


Attachments
Test results for Click in components - execution error (14.44 KB, application/zip)
2014-06-26 12:37 EDT, Maissmaallsmyss Maulhs-Vvuillss CLA
no flags Details
Successfull_click_on_Component_with_Text_Input (2.37 KB, application/zip)
2014-06-27 10:41 EDT, Maissmaallsmyss Maulhs-Vvuillss CLA
no flags Details
Click on Textfield (component with text) fails with execution error (104.93 KB, text/html)
2014-06-27 10:47 EDT, Maissmaallsmyss Maulhs-Vvuillss CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maissmaallsmyss Maulhs-Vvuillss CLA 2014-06-26 12:37:49 EDT
Created attachment 244556 [details]
Test results for Click in components - execution error
Comment 1 Maissmaallsmyss Maulhs-Vvuillss CLA 2014-06-26 12:40:11 EDT
Click in component action for iOS Button causes Execution Error: "*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]"
Test results are attached.
Comment 2 Marvin Mueller CLA 2014-06-27 04:39:35 EDT
Since this is a bug which is from a current sprint task i raise the importance to P1
Comment 3 Kiss Tamás CLA 2014-06-27 05:06:07 EDT
Actually I can not reproduce this error. I need more information for this. With which component did you try it? You always can reproduce this error or just sometimes?
Basically this error comes when we try to add a nil value to NSDictionary or NSArray. I just have to figure out where it is happened.
Comment 4 Maissmaallsmyss Maulhs-Vvuillss CLA 2014-06-27 05:24:41 EDT
I´ve got it for clicking on the Button on the main page with label "Buttons" for old aut (with "iPhoneMainStoryboard" storyboard). For new aut  ("iPhone" storyboard) I got  for the same components Execution Error: "+[NSInvocation _invocationWithMethodSignature:frame:]: method signature argument cannot be nil"
Comment 5 Kiss Tamás CLA 2014-06-27 06:51:58 EDT
We figure out this problems comes only for buttons and the problem with the buttons is with object mapping. We easily can map the button label (UIButtonLabel) instead of UIButton.
Comment 6 Maissmaallsmyss Maulhs-Vvuillss CLA 2014-06-27 07:10:12 EDT
The issue is that UIButton is a private thing so we cannot click it thought it is a graphical component. We can think if we should have a normal Label instead of UIButtonLabel for Buttons, because with private labels we cannot do any actions.
Comment 7 Maissmaallsmyss Maulhs-Vvuillss CLA 2014-06-27 10:41:29 EDT
Created attachment 244601 [details]
Successfull_click_on_Component_with_Text_Input

For some mappable components are currently disabled for user interaction (tap, long tap, swipe) and we have on a try to do this Execution Error: "The step timed out after 10.00 seconds: View is not enabled for interaction": I´ve observed such behaviour for UIButtonLabel and when I map a textfield as a "Component with text" (tap) instead of mapping it as a "component with text input" (long tap).

I think at least we should change somehow the error description for such cases, e.g. 
"Action error: this component cannot be tapped" or discuss what other behaviour is correct in this case.
Comment 8 Maissmaallsmyss Maulhs-Vvuillss CLA 2014-06-27 10:47:44 EDT
Created attachment 244602 [details]
Click on Textfield (component with text) fails with execution error

Click on Textfield fails with execution error (not supported user interactions) when it is mapped as a component with text, thought click succeeds for Textfield when it is mapped as a component with text input.
Comment 9 Kiss Tamás CLA 2014-08-05 03:20:13 EDT
Removed the error message ( as we talked with Mma ) when view is not enabled for user interaction.
https://bitbucket.org/jubula/com.bredexsw.jubula.core/commits/507c2d207dbbca510491eb533e0f113fd36c8de5
Comment 10 Maissmaallsmyss Maulhs-Vvuillss CLA 2014-08-05 03:27:30 EDT
I´ve tested, that the error is not occurring any more. Thus, this can be closed as resolved.
Comment 11 Oliver Goetz CLA 2014-08-05 04:09:05 EDT
Setting this to resolved because of comment 9 and closing this ticket because of comment 10