Discussion about this post

User's avatar
Konstantinos Nikoloutsos's avatar

Great article George, I want to emphasize my question on "Leaves no ambiguity to the developers".

A function name and parameters in the Page Object Pattern may not be enough for the developer to understand what it is requested. In that case do you write comments next to the method or you use a different way?

On top of that, to make it more practical, for example assume you have a screen with 3 labels and we want to assert them. According on PageOP you would write something like:

robot

.assertLabel1(is: "1")

.assertLabel2(is: "2")

.assertLabel3(is: "3")

Now the developer clearly understands what happens but the time performance of the UITest is not good. It's not good because we cannot let the system check the predicates in parallel. Instead we check them sequentially (Check this (speed section) https://medium.com/trendyol-tech/how-to-make-ios-ui-testing-fast-and-reliable-6f572a0955f2 )

So how do you tackle this problem. Would you sacrifice readability over performance, or the other way around?

Expand full comment
1 more comment...

No posts