Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.corp.bdd.AcceptanceTestSuite > java.lang.Object.BeforeStories FAILED net.serenitybdd.core.exceptions.SerenityManagedException at JUnitTestEventAdapter.java:58 #18

Open
premsagarbhamidipati opened this issue May 1, 2023 · 0 comments

Comments

@premsagarbhamidipati
Copy link

premsagarbhamidipati commented May 1, 2023

Hi,

I am experiencing below error while running integration tests. The integration test fails when the AcceptanceTestSuite class starts executing. We have upgraded gradle from 5.6.1 to 7.3.3. Thanks in advance.

com.corp.bdd.AcceptanceTestSuite > java.lang.Object.BeforeStories FAILED
net.serenitybdd.core.exceptions.SerenityManagedException at JUnitTestEventAdapter.java:58

Below are my serenity dependencies in my build.gradle

buildscript {
repositories {
ext {
repoUrl = "nexus/repourl" }
maven { url repoUrl }
}
dependencies {
classpath 'com.bmuschko:gradle-cargo-plugin:2.6.2'
classpath 'net.serenity-bdd:serenity-gradle-plugin:2.0.40'
classpath 'org.apache.mina:mina-core:2.0.4'
classpath 'org.unbroken-dome.gradle-plugins:gradle-testsets-plugin:1.0.2'
}
sourceSets.main.java.srcDirs += '/gen-src/'
}

dependencies {
cargoruntime files("../service/build/libs/${rootProject.name}-service-${version}-${environmentName}.jar")
testImplementation "net.serenity-bdd:serenity-core:${serenityCoreVersion}"
testImplementation "net.serenity-bdd:serenity-jbehave:${serenityJBehaveVersion}"
testImplementation "net.serenity-bdd:serenity-spring:${serenityCoreVersion}"
testImplementation "org.apache.sshd:sshd-sftp:${sshdSftpVersion}"
testImplementation 'org.apache.sshd:sshd-core:0.10.1'
testImplementation "org.jvnet.mock-javamail:mock-javamail:${emailMockVersion}"
testImplementation "org.mockito:mockito-core:${mockitoVersion}"
testImplementation "com.icegreen:greenmail:${greenMailVersion}"
implementation LOG4J2
runtimeOnly('org.slf4j:slf4j-api:1.7.10') { exclude module: 'log4j'}
}

public class AcceptanceTestSuite extends SerenityStories {

public AcceptanceTestSuite() {
super();
findStoriesIn(TestIntegrationConstants.STORIES_FOLDER);
}

@premsagarbhamidipati premsagarbhamidipati changed the title com.swacorp.mx.spm.bdd.AcceptanceTestSuite > java.lang.Object.BeforeStories FAILED net.serenitybdd.core.exceptions.SerenityManagedException at JUnitTestEventAdapter.java:58 com.org.bdd.AcceptanceTestSuite > java.lang.Object.BeforeStories FAILED net.serenitybdd.core.exceptions.SerenityManagedException at JUnitTestEventAdapter.java:58 May 1, 2023
@premsagarbhamidipati premsagarbhamidipati changed the title com.org.bdd.AcceptanceTestSuite > java.lang.Object.BeforeStories FAILED net.serenitybdd.core.exceptions.SerenityManagedException at JUnitTestEventAdapter.java:58 com.corp.bdd.AcceptanceTestSuite > java.lang.Object.BeforeStories FAILED net.serenitybdd.core.exceptions.SerenityManagedException at JUnitTestEventAdapter.java:58 May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant