Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

I build my project using pom.xml dependency but i am getting the below erro.

34 views
Skip to first unread message

Hirpurkar Jagjivan

unread,
Feb 27, 2025, 6:03:20 AMFeb 27
to testng-users
Hello , 
I am using Java with Selenium using Browserstack app automate. I added all the dependencies under pom.xml file.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<project xmlns="http://maven.apache.org/POM/4.0.0"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>


<groupId>com.bandhanbank</groupId>

<artifactId>bot-poc</artifactId>

<version>0.0.1-SNAPSHOT</version>


<name>bot-poc</name>

<!-- FIXME change it to the project's website -->

<url>http://www.example.com</url>


<properties>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<maven.compiler.release>17</maven.compiler.release>

<maven.compiler.source>17</maven.compiler.source>

<maven.compiler.target>17</maven.compiler.target>


</properties>


<dependencyManagement>

</dependencyManagement>


<dependencies>

<!-- Appium Java Client -->

<dependency>

<groupId>io.appium</groupId>

<artifactId>java-client</artifactId>

<version>7.6.0</version> <!-- Updated to latest Appium version -->

</dependency>


<!-- https://mvnrepository.com/artifact/com.google.android/android -->

<dependency>

<groupId>com.google.android</groupId>

<artifactId>android</artifactId>

<version>4.1.1.4</version>

<scope>provided</scope>

</dependency>


<!-- TestNG for testing -->

<dependency>

<groupId>org.testng</groupId>

<artifactId>testng</artifactId>

<version>7.8.0</version>

<scope>test</scope>

</dependency>


<!-- Selenium WebDriver -->

<dependency>

<groupId>org.seleniumhq.selenium</groupId>

<artifactId>selenium-java</artifactId>

<version>4.25.0</version>

</dependency>


<!-- Commons IO -->

<dependency>

<groupId>commons-io</groupId>

<artifactId>commons-io</artifactId>

<version>2.11.0</version>

</dependency>


<!-- JSON Simple -->

<dependency>

<groupId>com.googlecode.json-simple</groupId>

<artifactId>json-simple</artifactId>

<version>1.1.1</version>

</dependency>


<dependency>

<groupId>org.slf4j</groupId>

<artifactId>slf4j-api</artifactId>

<version>1.7.32</version> <!-- Use a stable version of SLF4J -->

</dependency>

<dependency>

<groupId>org.slf4j</groupId>

<artifactId>slf4j-simple</artifactId>

<version>1.7.32</version> <!-- This provides a simple logging

implementation -->

</dependency>

<!--

https://mvnrepository.com/artifact/com.browserstack/browserstack-java-sdk -->

<dependency>

<groupId>com.browserstack</groupId>

<artifactId>browserstack-java-sdk</artifactId>

<version>1.30.4</version>

</dependency>



</dependencies>


<build>

<pluginManagement><!-- lock down plugins versions to avoid using Maven

defaults (may be moved to parent pom) -->

<plugins>

<!-- clean lifecycle, see

https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->

<plugin>

<artifactId>maven-clean-plugin</artifactId>

<version>3.4.0</version>

</plugin>

<!-- default lifecycle, jar packaging: see

https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->

<plugin>

<artifactId>maven-resources-plugin</artifactId>

<version>3.3.1</version>

</plugin>

<plugin>

<artifactId>maven-compiler-plugin</artifactId>

<version>3.13.0</version>

</plugin>

<plugin>

<artifactId>maven-surefire-plugin</artifactId>

<configuration>

<argLine>

-javaagent:"${com.browserstack:browserstack-java-sdk:jar}"</argLine>

</configuration>

<version>3.3.0</version>

</plugin>

<plugin>

<artifactId>maven-jar-plugin</artifactId>

<version>3.4.2</version>

</plugin>

<plugin>

<artifactId>maven-install-plugin</artifactId>

<version>3.1.2</version>

</plugin>

<plugin>

<artifactId>maven-deploy-plugin</artifactId>

<version>3.1.2</version>

</plugin>

<!-- site lifecycle, see

https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->

<plugin>

<artifactId>maven-site-plugin</artifactId>

<version>3.12.1</version>

</plugin>

<plugin>

<artifactId>maven-project-info-reports-plugin</artifactId>

<version>3.6.1</version>

</plugin>

</plugins>

</pluginManagement>

<plugins>

<plugin>

<artifactId>maven-dependency-plugin</artifactId>

<version>3.3.0</version>

<executions>

<execution>

<id>getClasspathFilenames</id>

<goals>

<goal>properties</goal>

</goals>

</execution>

</executions>

</plugin>

</plugins>

</build>

</project>




error-: 

[ [1;34mINFO [0;39m] SDK run started with id: 99fe2cde-3de6-4c00-8f5f-5d62dc9ab1ed

[ [1;34mINFO [0;39m] Testhub started with id: q1po7sir0wcbyr2k6cu3gcc9c00gam3viw6fvuwh

[RemoteTestNG] detected TestNG version 7.8.0

[main] INFO org.testng.internal.Utils - [[TestNGClassFinder]] Unable to read methods on class com.bandhanbank.bot_poc.chatbotinteraction - unable to resolve class reference org/openqa/selenium/HasDownloads

[main] INFO org.testng.internal.Utils - [[TestNGClassFinder]] Unable to read methods on class com.bandhanbank.bot_poc.chatbotinteraction - unable to resolve class reference org/openqa/selenium/HasDownloads

[main] INFO org.testng.internal.Utils - [[TestNGClassFinder]] Unable to read methods on class com.bandhanbank.bot_poc.chatbotinteraction - unable to resolve class reference org/openqa/selenium/HasDownloads

[main] INFO org.testng.internal.Utils - [TestNG] Running:

D:\bot-poc\bot-poc\testng.xml



===============================================

Suite

Total tests run: 0, Passes: 0, Failures: 0, Skips: 0

===============================================


[ [1;34mINFO [0;39m] Visit https://observability.browserstack.com/builds/q1po7sir0wcbyr2k6cu3gcc9c00gam3viw6fvuwh to view build report, insights, and many more debugging information all at one place!


[ [1;33mWARN [0;39m] Unable to show build URL, as build capability is not used

[ [1;34mINFO [0;39m] SDK run ended for id: 99fe2cde-3de6-4c00-8f5f-5d62dc9ab1ed, testhub id: q1po7sir0wcbyr2k6cu3gcc9c00gam3viw6fvuwh

Krishnan Mahadevan

unread,
Mar 2, 2025, 11:31:31 PMMar 2
to testng...@googlegroups.com
This is not related to TestNG. You should ensure that your project uses the same selenium dependency versions as that needed by Appium.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribblings @ https://rationaleemotions.com/

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/testng-users/e6b92f3b-0816-4753-b58e-a9fa01cceb5en%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages