| Summary: | RC - Tree action: select parent node missing | ||
|---|---|---|---|
| Product: | [Technology] Jubula | Reporter: | Markus Tiede <markus.tiede> |
| Component: | RC | Assignee: | Project Inbox <jubula.rc-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | Oliver Goetz <Oliver.Goetz> |
| Severity: | enhancement | ||
| Priority: | P4 | CC: | alexandra.schladebeck, torstenjanke |
| Version: | 2.1 | Keywords: | triaged |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Markus Tiede
Sounds like an interesting idea - I'm not sure how many people would need it though. I have a feeling it's one of those "If I need it I really need it, and if I don't, I'd never even imagine anyone needing it". Would a current workaround be to preascend twice and then select the parent node? I just posted a topic that in the forum that asks exactly this. So I guess I fall in the "I really need it", I guess ;)
Here is the usecase: An application creates a tree and auto-selects one node based on some complicated logic. The test should ensure that the right node is selected. Problem is, the selected node is not unique on itself, I need to consider its parent node:
Root
+--- Identifying node 1
| +--- node "abc" (auto-selected)
+--- Identifying node 2
+--- node "abc"
I have not understood the mentione workaround, actually. I would not work to pre-ascend twice and then select the first child node - this would always result in a valid test, since I hardwire in the testcase which one the correct node is. Consider for instance: if the application (wrongfully) auto-selects the second "abc" node, then going up twice and selecting first child would result "true".
Just to crosslink: here's the forum post. I posted a possible workaround there too. http://www.eclipse.org/forums/index.php/t/543548/ The workaround worked in the case of the forum, so I'm going to leave this as a P4 enhancement. Since we're doing a bit of a clear-out, I'm going to close this as wontfix for the reasons mentioned in the comments. Reopen if new information or use cases come to light. |