Home > Blockchain >  Maven test run locally but fail in Azure Pipeline using Azure DevOpz Maven POM.xml All test giving t
Maven test run locally but fail in Azure Pipeline using Azure DevOpz Maven POM.xml All test giving t

Time:07-21

Here is my POM.xml When I run from TestNG or Maven test from locally all the test cases are working fine but in pipeline it gives me this error time elapsed .please check the below image attached Using Chrome Driver TestNG Maven Azure Devopz Pipline

<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>Selenium_Framework</groupId>
  <artifactId>Selenium_Framework</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <properties>
     <maven.compiler.target>1.8</maven.compiler.target>
     <maven.compiler.source>1.8</maven.compiler.source>
   
</properties>
<build>
<plugins>
       <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
              <version>3.8.1</version>
        </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.20</version>
            </plugin>
</plugins>
</build>
  <dependencies>

    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>4.1.0</version>
    </dependency>
    <dependency>
        <groupId>org.testng</groupId>
        <artifactId>testng</artifactId>
        <version>6.14.3</version>
    </dependency>
    
    <dependency>
        <groupId>com.googlecode.json-simple</groupId>
        <artifactId>json-simple</artifactId>
        <version>1.1.1</version>
    </dependency>
    <dependency>
        <groupId>org.json</groupId>
        <artifactId>json</artifactId>
        <version>20090211</version>
    </dependency>
    <dependency>
        <groupId>com.paulhammant</groupId>
        <artifactId>ngwebdriver</artifactId>
        <version>1.1.6</version>
    </dependency>
    <dependency>
        <groupId>io.qameta.allure</groupId>
        <artifactId>allure-testng</artifactId>
        <version>2.17.3</version>
    </dependency>
  </dependencies>
</project>

enter image description here

CodePudding user response:

Maven test run locally but fail in Azure Pipeline using Azure DevOpz Maven POM.xml All test giving time Elapsed error

You could try to update your selenium dependencies to the most recent release.

And according to the warning message "unable to find cDP implementation matching 103", you could try to selenium-devtools-v103 in the dependencies, like:

   <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>4.3.0</version>
    </dependency>

    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-devtools-v103</artifactId>
        <version>4.3.0</version>
    </dependency>

If above not resolve your issue, please share the debug build log as txt in your question.

  • Related