CREATING CUSTOM VIEWMATCHER FOR ESPRESSO

CREATING CUSTOM VIEWMATCHER FOR ESPRESSO

Por Thiago Lopes Silva

Hello my friends. It’s been a while since I’ve been writing here, right ? let’s go further and learn how to create a custom ViewMatcher for espresso on specific scenarios of testing.
Before going further I recommend you to take a look at this post to learn a few about espresso and this one to learn about the Hamcrest library. It’s used a lot by espresso to match views and do tests that will be our focus on this post.

Let´s start

Sometimes when you are doing e2e tests you need to create custom Matcher that attend your business rules. I will tech you how to solve this particular problem using a great feature named ViewMatcher.

Leia o restante do post clicando aqui.

Deixe uma resposta

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

div#stuning-header .dfd-stuning-header-bg-container {background-image: url(https://www.cesar.org.br/wp-content/uploads/2018/08/IMG_9090-1.jpg);background-size: initial;background-position: top center;background-attachment: initial;background-repeat: initial;}#stuning-header div.page-title-inner {min-height: 650px;}