mauriciotogneri / green-coffee

Green Coffee
MIT License
231 stars 21 forks source link

Duplicate tests #21

Closed alastorohlin closed 5 years ago

alastorohlin commented 5 years ago

Hello everyone! 😄

I have a scenario outline with 5 steps, when I run the tests it appears to me this message "Starting 10 tests on Nexus2(AVD) - 9"

Can you help me with this problem?

this is my login.feature:

file.txt

and this my LoginFeatureTest.java:

file2.txt

mauriciotogneri commented 5 years ago

Hi @alastorohlin,

I don't see any problem in the code. Do you have the following methods in your LoginSteps.java file?

@When("^the stylist open the app$")
public void method1()
{
}

@When("^the stylist insert data field Employe Number \"(.*)\" and Selling PIN \"(.*)\"$")
public void method2(String employeeNumber, String pin)
{
}

@When("^press button Sign in, the message \"(.*)\" should be visible.$")
public void method3(String message)
{
}

Where does the message "Starting 10 tests on Nexus2(AVD) - 9" appears? The tests are not executed? An exception running the tests?

alastorohlin commented 5 years ago

Hi, thanks for your answer @mauriciotogneri. I have the LoginSteps.Java file.txt The message appears in the console, the test are executed and this exception appears 😆 "com.mauriciotogneri.greencoffee.exceptions.StepFailureException: Error processing step", but it is normal because when they repeat themselves they start to fail because they can not find the elements.

mauriciotogneri commented 5 years ago

Everything in the file looks good. It's probably an error using the login page object.

alastorohlin commented 5 years ago

Hola, vi que también hablas español. Quité los page Objects y el problema persiste, estoy usando tu librería con UI Automator ¿será ese el problema? Gracias 😄

mauriciotogneri commented 5 years ago

Hola, Nunca he usado UI Automator y es posible que haya un conflicto al intentar usar los dos a la vez. ¿Para qué funcionalidad en concreto lo necesitas? GreenCoffee está especialmente diseñado para tener una gran compatibilidad con Espresso, que por lo que entiendo es una mejora del UI Automator. Si puedes, te recomiendo que uses Espresso ya que es más moderno.

alastorohlin commented 5 years ago

Tengo una aplicación en react-native, he usado UI Automator para ingresar a los elementos de un In-App Browser, no estoy usando espresso, intente configurarlo pero no me funcionó. Si el problema persiste lo intentaré de nuevo, gracias por tu consejo.