Unable to run the test parallelly on 2 devices through testng (appium java) > code runs individually << failed due to unable to locate the element
Los mantenedores suelen responder en 5 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Área
- mobile-dev, testing-qa
Línea de trabajo
Empieza con el XML de TestNG y tests.Muti_LoginTC2; después inspecciona Base2.startServer y los puntos de entrada de SplashPage, GetVerificationCodePage y OTPVerificationPage. Reproduce login1 y login2 en paralelo en los dos dispositivos indicados y captura la búsqueda de elementos que falla; se considera terminado cuando ambos flujos encuentran sus elementos y se completan sin interferencias.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
testng XML :
Test :
package tests;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
//import Practice.BluesecureTC.Base1;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.android.AndroidElement;
import pages.GetVerificationCodePage;
import pages.InviteUserPage;
import pages.OTPVerificationPage;
import pages.SplashPage;
import utils.Base;
import utils.Base2;
public class Muti_LoginTC2 extends Base2{
@BeforeTest()
public void killAllnodes() throws IOException, InterruptedException {
Runtime.getRuntime().exec("taskkill /F /IM node.exe");
Thread.sleep(3000);
}
// @AfterTest
// public void stop()
// {
// stop_service();
// }
//
@Test
public void login1() throws IOException, InterruptedException
{
AndroidDriver<AndroidElement> driver1 = startServer("8244","Bluesecure","RZ8R915W2KW");
driver1.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
System.out.println("Thread one is" +Thread.currentThread().getId());
SplashPage s1=new SplashPage(driver1);
GetVerificationCodePage verify = new GetVerificationCodePage(driver1);
OTPVerificationPage otp = new OTPVerificationPage(driver1);
s1.naviagte();
// String expected="android.widget.ScrollView";
// String actual =
verify.allow_permissions();
verify.login("8755875532");
otp.verifyOtp();
}
@Test
public void login2() throws IOException, InterruptedException
{
AndroidDriver<AndroidElement> driver2 = startServer("8241","Bluesecure","HA4L6TGQGET4CMDI");
//AndroidDriver<AndroidElement> driver = capabilities("Bluesecure");
driver2.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
System.out.println("Thread two is" +Thread.currentThread().getId());
SplashPage s2=new SplashPage(driver2);
GetVerificationCodePage verify2 = new GetVerificationCodePage(driver2);
OTPVerificationPage otp2 = new OTPVerificationPage(driver2);
s2.naviagte();
// String expected="android.widget.ScrollView";
// String actual =
verify2.allow_permissions();
verify2.login("9544696100");
otp2.verifyOtp();
//
}
// @Test
// public void login3() throws IOException, InterruptedException
// {
// AndroidDriver driver = startServer("8997","Bluesecure","RZ8R915W2KW");
// //AndroidDriver driver = capabilities("Bluesecure");
// driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
//
//
// SplashPage s1=new SplashPage(driver);
//
// GetVerificationCodePage verify = new GetVerificationCodePage(driver);
// OTPVerificationPage otp = new OTPVerificationPage(driver);
//
// s1.naviagte();
//// String expected="android.widget.ScrollView";
//// String actual =
//
// verify.allow_permissions();
// verify.login("9544696100");
// otp.verifyOtp();
////
// }
}
- Lenguaje dominante
- Java
- Estrellas
- 1.3k
- Forks
- 755
- Merge medio
- 5 d 14 h
- PR fusionados (30 d)
- 8
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de appium/java-client
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
appium/java-client#2426 ·
Los mantenedores suelen responder en 5 días
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
appium/java-client#2372 ·
Los mantenedores suelen responder en 5 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
appium/java-client#2368 ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 30/100
appium/java-client#2341 · 1 comentario ·
Los mantenedores suelen responder en 5 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
appium/java-client#2323 ·
Los mantenedores suelen responder en 5 días
Todos los issues de appium/java-client
Issues similares
-
ScyllaDB Manual: 3 broken linksAbiertolink-check link-check:manual
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 91/100
open-telemetry/opentelemetry-java#8870 ·
Los mantenedores suelen responder en 1 día
-
P2 testing
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
enhancement javascript
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
area/core kind/bug status/triage team/core-shared
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día