-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binding-Context / Object Access #25
Comments
hi,
is what you‘re looking for (freehand coding of the above, so read with caution :) |
We recently added an example in OPA docs: https://openui5nightly.hana.ondemand.com/#/topic/21aeff6928f84d179a47470123afee59.html |
Hi Volker, Maxim, OK - I've chosen a bad example again :-) Yes - in this case the absolute binding path would be perfect, as I am searching for the primary key. You are right. Thanks for this. Still it is not 100% the flexibility I'd hoped for. As a more general requirement, I'd like to have full access to the model-object behind the binding path. So another example (for the same URL) - I have a complex search, and if I am searching for a specific "value" i am only expecting results with "ShipVia": 6419 - even though there is no single visible control on the screen, which is showing the Ship-Via. In such a case I really do not see a way to use that binding path, right? Thanks again, |
Hi Timo, |
Ok - perfect. That is an answer i can totally agree with. One last question: You are using the MatcherFactory internally ( https://github.com/SAP/openui5/blob/2fc8e8ebc9ee447c5976062f59e243d193484b0d/src/sap.ui.core/src/sap/ui/test/matchers/ ). Unfortunately this one is hardcoding the supported matchers. Theoretically it is possible to create custom matchers (inherting from sap.ui.test.matchers.Matcher - we did that a few times in former projects ). Thanks, |
Hi Timo, |
Hi,
I already asked a similar question in #12 - I am not 100% sure though if i got you correctly here.
Example: I want to select Order Id 7991 in your demo-application browse-orders ( https://openui5.hana.ondemand.com/test-resources/sap/m/demokit/orderbrowser/webapp/test/mockServer.html ).
The order ID however is not available as "clean-technical-identifier". I can only ask for the Property title ("Order 7991"), which might be language dependent. If I check the binding context of this object, i see that the information I want, is perfectly available.
So I would expect a matcher:
BindingContext: { model: undefined, path: 'OrderID', value: 7991}
Unfortunatly the documentation of openui5 does not seem to provide such a matcher.
So the question: Where am I missing something here in that use case? Or are you "accepting" tests to be based on language dependent texts?
Regards,
Timo
The text was updated successfully, but these errors were encountered: