samedi 24 août 2019

Compilation error of test scripts from Jenkins

Jenkins maven project shows [ERROR] COMPILATION ERROR after step --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile). All selenium-elements are non-recognized. Also, there are rather strange slashes "/" instead of "\" in files paths. If compilation starts through maven:surefire in IntelijIdea, such problems don't appear.

Here are links to Jenkins configure and pom.xml photos

[Jenkins conf1]https://prnt.sc/ox1wzb

[Jenkins conf2]https://prnt.sc/ox1yye

[pom1]https://prnt.sc/ox1xzg

[pom2]https://prnt.sc/ox1xzg

What could be the mistake?

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/WebDriverSettings.java:[5,27] package org.openqa.selenium does not exist
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/WebDriverSettings.java:[6,27] package org.openqa.selenium does not exist
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/WebDriverSettings.java:[7,34] package org.openqa.selenium.chrome does not exist
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/WebDriverSettings.java:[8,35] package org.openqa.selenium.support does not exist
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/WebDriverSettings.java:[9,38] package org.openqa.selenium.support.ui does not exist
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/WebDriverSettings.java:[13,19] cannot find symbol
  symbol:   class WebDriver
  location: class script_1_2_3.WebDriverSettings
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/WebDriverSettings.java:[14,19] cannot find symbol
  symbol:   class WebDriverWait
  location: class script_1_2_3.WebDriverSettings
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/PageObjects.java:[3,27] package org.openqa.selenium does not exist
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/PageObjects.java:[4,27] package org.openqa.selenium does not exist
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/PageObjects.java:[5,35] package org.openqa.selenium.support does not exist
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/PageObjects.java:[6,38] package org.openqa.selenium.support.ui does not exist
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/ListsOperating.java:[3,27] package org.openqa.selenium does not exist
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/PageObjects.java:[12,71] cannot find symbol
  symbol:   class WebElement
  location: class script_1_2_3.PageObjects
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/PageObjects.java:[13,59] cannot find symbol
  symbol:   class WebElement
  location: class script_1_2_3.PageObjects
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/PageObjects.java:[14,59] cannot find symbol
  symbol:   class WebElement
  location: class script_1_2_3.PageObjects
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/PageObjects.java:[15,59] cannot find symbol
  symbol:   class WebElement
  location: class script_1_2_3.PageObjects
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/PageObjects.java:[16,59] cannot find symbol
  symbol:   class WebElement
  location: class script_1_2_3.PageObjects
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/PageObjects.java:[17,59] cannot find symbol
  symbol:   class WebElement
  location: class script_1_2_3.PageObjects
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/roz/src/test/java/script_1_2_3/PageObjects.java:[18,64] cannot find symbol
  symbol:   class WebElement
  location: class script_1_2_3.PageObjects

Aucun commentaire:

Enregistrer un commentaire