Closed derTobsch closed 9 years ago
Hi John,
I am using serenity 1.0.53, i migrate my test from thucydides 0.9.268 but i am getting this error, even though my assertion were ok in thucydides [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project serenityCucumberIntacct: Compilation failure: Compilation failure: [ERROR] /C:/Users/mpojar/testW/serenityCucumberIntacct/src/main/java/com/pages/HomePage.java:[3,1] package org.junit does not exist [ERROR] /C:/Users/mpojar/testW/serenityCucumberIntacct/src/main/java/com/pages/BillPage.java:[12,17] package org.junit does not exist [ERROR] /C:/Users/mpojar/testW/serenityCucumberIntacct/src/main/java/com/pages/HomePage.java:[66,17] cannot find symbol [ERROR] symbol: variable Assert [ERROR] location: class com.pages.HomePage [ERROR] /C:/Users/mpojar/testW/serenityCucumberIntacct/src/main/java/com/pages/BillPage.java:[299,17] cannot find symbol [ERROR] symbol: variable Assert [ERROR] location: class com.pages.BillPage [ERROR] -> [Help 1] [ERROR]
can you add your pom.xml here if you use maven?
Actually the problem were Junit Assertions and i changed them to org.assertj.Assert. And i have also junit in pom. Now i am facing other problem, i had some cucumber features that i moved them in my serenity-cucumber project. I am using Scenario Outline And Examples and for param "", but i see that in the vanilla serenity-cucucmber is used single quote 'param'. The idea is that i was able to execute my feature from Eclipse as Cucuymber Feature, but not as Junit ot from cmd "mvn clean verify -Dcucumber=DefinitionStep -Dwebdriver.driver=nameOfBrowser"
replace € with nothing to avoid number format exception in Europe