You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i have moved to gradle framework from maven. while running our test with gradle on local machine its getting success but while running the same on jekins with gradle commands i'm facing error on the testng cucumber as below
Gradle suite > Gradle test > regressionSuite.TestRunner.feature[0](Address Verification) FAILED
cucumber.runtime.CucumberException at TestRunner.java:64
Caused by: java.lang.AssertionError at Assert.java:94
lines of the code at those lines is as follows: @test(groups = "cucumber", description = "Runs Cucumber Feature",
dataProvider = "features") public void feature(CucumberFeatureWrapper cucumberFeature) throws IOException {
testNGCucumberRunner.runCucumber(cucumberFeature.getCucumberFeature()); }
Not able to find the root cause of this issue
commands using on Jekins file are:
sh """
ls -ltr
pwd
echo "gateway is ${gatewayname}"
chmod 777 ./gradlew
./gradlew clean assemble
./gradlew test -Dcucumber.options="--tags @$gatewayname"
"""
The text was updated successfully, but these errors were encountered:
My only suggestion would be to try to figure out the differences between your local execution environment and the one in Jenkins, like gradle version, Java version, etc.
i'm not able to find those..
any hint..
and the command ./gradlew test i -Dcucumber.options="--tags @$gatewayname" is not running. If i see the Jenkins gradle commands it's starting the test with + ./gradlew build . But i gave above command to run tag wise...
here my tag is SDT but its starting the very first feature file on the test run and failing with exception.
gateway is SDT
chmod 777 ./gradlew
./gradlew clean assemble
Starting a Gradle Daemon (subsequent builds will be faster)
Gradle suite > Gradle test > regressionSuite.TestRunner.feature[0](Address Verification) FAILED
cucumber.runtime.CucumberException at TestRunner.java:64
Caused by: java.lang.AssertionError at Assert.java:94
Hi, i have moved to gradle framework from maven. while running our test with gradle on local machine its getting success but while running the same on jekins with gradle commands i'm facing error on the testng cucumber as below
Gradle suite > Gradle test > regressionSuite.TestRunner.feature[0](Address Verification) FAILED
cucumber.runtime.CucumberException at TestRunner.java:64
Caused by: java.lang.AssertionError at Assert.java:94
lines of the code at those lines is as follows:
@test(groups = "cucumber", description = "Runs Cucumber Feature",
dataProvider = "features") public void feature(CucumberFeatureWrapper cucumberFeature) throws IOException {
testNGCucumberRunner.runCucumber(cucumberFeature.getCucumberFeature()); }
Not able to find the root cause of this issue
commands using on Jekins file are:
sh """
The text was updated successfully, but these errors were encountered: