testcontainers / testcontainers/testcontainers-java
Error in video file name. Failed tests are marked as passed.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 1.9k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 9
Description
Hello! I'm use selenium java junit5 testcontainers and i've incorrect name video file and status.
My environments is java11, windows11 gradle 7.2
My gradle.build
plugins {
id 'java'
}
group 'com.test'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
ext {
allureVersion = '2.17.3'
junitVersion = '5.8.2'
}
sourceCompatibility = '11'
targetCompatibility = '11'
dependencies {
implementation('com.codeborne:selenide:6.3.3')
implementation group: 'org.seleniumhq.selenium', name: 'selenium-remote-driver', version: '4.1.2'
testImplementation('org.slf4j:slf4j-simple:1.7.36')
testImplementation "org.junit.jupiter:junit-jupiter:${junitVersion}"
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
implementation 'org.testcontainers:selenium:1.16.3'
implementation "org.testcontainers:testcontainers:1.16.3"
implementation group: 'io.rest-assured', name: 'rest-assured', version: '4.5.1'
implementation "org.testcontainers:junit-jupiter:1.16.3"
}
test {
useJUnitPlatform()
}
My base class create container
@Container
static BrowserWebDriverContainer<?> webDriverContainer =
new BrowserWebDriverContainer<>()
.withRecordingMode(BrowserWebDriverContainer.VncRecordingMode.RECORD_ALL, new File("build"), VncRecordingFormat.MP4)
.withCapabilities(new ChromeOptions().addArguments("--no-sandbox", "--disable-dev-shm-usage"))
.withStartupTimeout(Duration.of(30, SECONDS))
.withEnv(Map.of("SCREEN_HEIGHT", "1080", "SCREEN_WIDTH", "1920", "SCREEN_DEPTH", "24"));
My test class
@Testcontainers
public class SimpleTestUI extends BaseTest{
MainPage main = new MainPage();
@Test
public void runningInChrome() {
main.ext.click();
main.email.clear();
main.email.setValue("privet");
sleep(10000);
}
In test i get error InvalidSelectorException but video file have PASSED and incorrect name.
PASSED-%5Bengine%3Ajunit-jupiter%5D%2F%5Bclass%3Acom.test.uitest.SimpleTestUI%5D-20220309-154859.mp4
Can you help solve this problem?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with the provided Gradle, JUnit 5, Selenium, and Testcontainers setup, then trace how BrowserWebDriverContainer records the video name and result status. Done means an InvalidSelectorException produces a correctly named recording marked as failed rather than PASSED.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, java
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100