t.me/atinfo_chat Telegram группа по автоматизации тестирования

Не запускаются тесты на Slave с помощью Jenkins когда код хранится на git lab.

gitlab
ci
jenkins
infrastructure
selenide
Теги: #<Tag:0x00007fb2f9a92cd0> #<Tag:0x00007fb2f9a92b90> #<Tag:0x00007fb2f9a92a50> #<Tag:0x00007fb2f9a92910> #<Tag:0x00007fb2f9a927d0>

(Roman Rogoziansky) #1

Ситуация следущщая:
Тесты с помощью Selenide локально на Intelija IDEA работают отлично.
Интегрирую запуски тестов с помощью Jenkins на Slave машине.
Если код тестов находится на слейве, то работают как надо.
А если запускаю с gitlab то в консоли дженикинса следующая ошибка:
package com.codeborne.selenide does not exist.

pom file:

<?xml version="1.0" encoding="UTF-8"?>
<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>Discovery</groupId>
    <artifactId>Discovery</artifactId>
    <version>1.0-SNAPSHOT</version>
<dependencies>
    <dependency>
        <groupId>org.junit.jupiter</groupId>
        <artifactId>junit-jupiter-engine</artifactId>
        <version>5.4.0</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>com.codeborne</groupId>
        <artifactId>selenide</artifactId>
        <version>5.7.0</version>
        <scope>test</scope>
    </dependency>
	    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>3.141.59</version>
    </dependency>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.12</version>
        <scope>compile</scope>
    </dependency>
	      <dependency>
          <groupId>org.testng</groupId>
          <artifactId>testng</artifactId>
          <version>6.7</version>
          <scope>test</scope>
      </dependency>
</dependencies>
<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.1</version>
            <configuration>
            <source>1.8</source>
            <target>1.8</target>
            </configuration>
        </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>3.0.0-M4</version>
        <configuration>
          <includes>
            <include>LDAP_tests.java</include>
          </includes>
        </configuration>
      </plugin>
    </plugins>
</build>
</project>

Вывод консоли Jenkins:

Started by timer
Running as SYSTEM
Building remotely on PC-201 (Window Node) in workspace C:\Jenkins\workspace\001_LDAP  setup tests
using credential aed7a552-c7f4-471b-99f7-ccdd334bf8b9
 > git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git.exe config remote.origin.url http://dev.gttb.com:8082/git/autotests.git # timeout=10
Fetching upstream changes from http://dev.gttb.com:8082/git/autotests.git
 > git.exe --version # timeout=10
using GIT_ASKPASS to set credentials 
 > git.exe fetch --tags --progress -- http://dev.gttb.com:8082/git/autotests.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
 > git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
Checking out Revision 7ce9cfdc4a6ac1f1b2d050e2840342fb3d534dd0 (refs/remotes/origin/master)
 > git.exe config core.sparsecheckout # timeout=10
 > git.exe checkout -f 7ce9cfdc4a6ac1f1b2d050e2840342fb3d534dd0 # timeout=10
Commit message: "[autotests] Updated Selenide dependency"
 > git.exe rev-list --no-walk 7ce9cfdc4a6ac1f1b2d050e2840342fb3d534dd0 # timeout=10
Parsing POMs
Established TCP socket on 63209
maven35-agent.jar already up to date
maven35-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
[Discovery] $ "C:\Program Files\Java\jdk1.8.0_201/bin/java" -cp "C:\Jenkins\maven35-agent.jar;C:\Program Files\apache-maven-3.6.3\boot\plexus-classworlds-2.6.0.jar;C:\Program Files\apache-maven-3.6.3/conf/logging" jenkins.maven3.agent.Maven35Main "C:\Program Files\apache-maven-3.6.3" C:\Users\rogoziansky\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\59\284a91bb-7621a81d C:\Jenkins\maven35-interceptor.jar C:\Jenkins\maven3-interceptor-commons.jar 63209
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven:  -B -f C:\Jenkins\workspace\001_LDAP  setup tests\Discovery\pom.xml clean test -P chrome
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------< Discovery:Discovery >-------------------------
[INFO] Building Discovery 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ Discovery ---
[INFO] Deleting C:\Jenkins\workspace\001_LDAP  setup tests\Discovery\target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Discovery ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Jenkins\workspace\001_LDAP  setup tests\Discovery\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ Discovery ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 12 source files to C:\Jenkins\workspace\001_LDAP  setup tests\Discovery\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/common/MainMenu.java:[5,37] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/common/MainMenu.java:[5,1] static import only from classes and interfaces
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Schedule_Tab.java:[6,37] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Schedule_Tab.java:[6,1] static import only from classes and interfaces
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Tabs_Buttons.java:[5,37] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Tabs_Buttons.java:[5,1] static import only from classes and interfaces
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[3,30] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[6,37] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[6,1] static import only from classes and interfaces
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Remedial_Action_Tab.java:[3,35] package com.codeborne.selenide.impl does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Remedial_Action_Tab.java:[7,37] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Remedial_Action_Tab.java:[7,1] static import only from classes and interfaces
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Remedial_Action_Tab.java:[8,37] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Remedial_Action_Tab.java:[8,1] static import only from classes and interfaces
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Target_Tab.java:[3,30] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Target_Tab.java:[7,37] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Target_Tab.java:[7,1] static import only from classes and interfaces
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/common/LoginPage.java:[4,37] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/common/LoginPage.java:[4,1] static import only from classes and interfaces
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/EndPoint/DomainObjectTree.java:[3,30] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/EndPoint/DomainObjectTree.java:[7,37] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/EndPoint/DomainObjectTree.java:[7,1] static import only from classes and interfaces
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/EndPoint/EndPointPage.java:[5,37] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Discovery_Server_Scan_Tables.java:[3,30] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Discovery_Server_Scan_Tables.java:[6,37] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Discovery_Server_Scan_Tables.java:[6,1] static import only from classes and interfaces
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Table.java:[4,30] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Table.java:[5,30] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Table.java:[6,30] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Table.java:[16,37] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Table.java:[16,1] static import only from classes and interfaces
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Table.java:[17,37] package com.codeborne.selenide does not exist
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Table.java:[17,1] static import only from classes and interfaces
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/common/MainMenu.java:[19,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.common.MainMenu
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/common/MainMenu.java:[25,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.common.MainMenu
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/common/MainMenu.java:[31,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.common.MainMenu
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/common/MainMenu.java:[36,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.common.MainMenu
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/common/MainMenu.java:[42,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.common.MainMenu
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Tabs_Buttons.java:[17,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Tabs_Buttons
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Tabs_Buttons.java:[22,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Tabs_Buttons
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Tabs_Buttons.java:[27,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Tabs_Buttons
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Tabs_Buttons.java:[33,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Tabs_Buttons
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Tabs_Buttons.java:[38,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Tabs_Buttons
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Schedule_Tab.java:[16,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Schedule_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Schedule_Tab.java:[22,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Schedule_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Schedule_Tab.java:[24,28] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Schedule_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Schedule_Tab.java:[30,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Schedule_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Schedule_Tab.java:[31,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Schedule_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Schedule_Tab.java:[32,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Schedule_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[32,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[33,32] cannot find symbol
  symbol:   variable Condition
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[33,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[39,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[44,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[49,37] cannot find symbol
  symbol:   variable Condition
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[49,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[50,41] cannot find symbol
  symbol:   variable Condition
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[50,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[56,127] cannot find symbol
  symbol:   variable Condition
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[56,88] cannot find symbol
  symbol:   variable Condition
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[56,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[57,41] cannot find symbol
  symbol:   variable Condition
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[57,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[63,137] cannot find symbol
  symbol:   variable Condition
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[63,98] cannot find symbol
  symbol:   variable Condition
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[63,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[64,41] cannot find symbol
  symbol:   variable Condition
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[64,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[70,126] cannot find symbol
  symbol:   variable Condition
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[70,87] cannot find symbol
  symbol:   variable Condition
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[70,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[71,41] cannot find symbol
  symbol:   variable Condition
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[71,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[77,13] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[78,13] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[79,13] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[80,13] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[89,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[103,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[109,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[115,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/System/LDAP_Integration.java:[120,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.System.LDAP_Integration
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Remedial_Action_Tab.java:[21,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Remedial_Action_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Remedial_Action_Tab.java:[26,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Remedial_Action_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Remedial_Action_Tab.java:[27,30] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Remedial_Action_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Remedial_Action_Tab.java:[29,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Remedial_Action_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Remedial_Action_Tab.java:[34,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Remedial_Action_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Remedial_Action_Tab.java:[39,26] cannot find symbol
  symbol:   method $$(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Remedial_Action_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Remedial_Action_Tab.java:[41,49] cannot find symbol
  symbol:   method $$(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Remedial_Action_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Remedial_Action_Tab.java:[46,29] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Remedial_Action_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Target_Tab.java:[29,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Scan_Target_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Target_Tab.java:[30,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Scan_Target_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Target_Tab.java:[35,27] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Scan_Target_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Target_Tab.java:[42,39] cannot find symbol
  symbol:   variable Condition
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Scan_Target_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Target_Tab.java:[42,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Scan_Target_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Target_Tab.java:[43,33] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Scan_Target_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Target_Tab.java:[50,16] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Scan_Target_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Target_Tab.java:[54,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Scan_Target_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Target_Tab.java:[55,33] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Scan_Target_Tab
[ERROR] /C:/Jenkins/workspace/001_LDAP  setup tests/Discovery/src/main/java/DLP_Setup/Discovery_Server/Cloud_Platforms/Cloud_Scan_Target_Tab.java:[62,9] cannot find symbol
  symbol:   method $(org.openqa.selenium.By)
  location: class DLP_Setup.Discovery_Server.Cloud_Platforms.Cloud_Scan_Target_Tab
[INFO] 100 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.418 s
[INFO] Finished at: 2020-02-28T10:05:17+02:00
[INFO] ------------------------------------------------------------------------

На сколько я понял, то jenkins просто не видит библиотеку selenide.
Возможно необходимо дописать какуюто зависимость либо добавить саму библиотуку на git репозиторий, чтоби slave агент скачивал ее каждый раз при запуске нового теста в workspace

Пишу на java использую selenide + junit + maven
буду рад услышать/прочитать совет по решению вопроса


(Vasily) #2

На PC-201 интернет-то внешний доступен?
Как вы запускаете тесты на машине не прибегая к Jenkins?


(Roman Rogoziansky) #4

PC-201 это мой рабочий ПК. Интернет есть.
Я использую Jenkins. На нем настроил запуски на slave agent. Соответственно установил этот агент на PC-201


(Vasily) #5

Мой вопрос был про это.
Я так понял, если вы сами руками на машине PC-201 запускаете тесты - всё норм.
А если Дженкинс выкачивает код из репозитория - то эти тесты не запускаются.
Добавьте к команде мавена -Dfile.encoding=UTF-8
Ещё желательно, в поме надо указать

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

(Roman Rogoziansky) #6

Хорошо. Попробую.


(Roman Rogoziansky) #7

Не помогло.
Все те же ошибки
package com.codeborne.selenide does not exist … и.т.д
Он не может определить что это за библиотека как ее подключить.


(Roman Rogoziansky) #8

Проблема решена.
maven не мог выкачать библиотеки. Покопавшись в настройках и очистив место на диске он начал их выкачивать.