All Downloads are FREE. Search and download functionalities are using the official Maven repository.

junit5.TestUtil Maven / Gradle / Ivy

Go to download

Selenium-Toolkit is a Java based test-toolkit for selenium-testing with testNg. The goal of the toolkit is, to suport you in different things like 'how to manage testdata in the source', parallelisation, Webdriver-managemet, reporting and a lot more.

There is a newer version: 3.0.12
Show newest version
package junit5;

import org.junit.platform.launcher.TestIdentifier;

import java.util.Arrays;
import java.util.List;

public class TestUtil {
    public static final List webTestIdentifier = Arrays.asList("ST", "Selenium", "SeleniumTest", "Web", "WebTest");
    public static boolean isWebTest(TestIdentifier testIdentifier){
        return webTestIdentifier.stream().anyMatch(webTestIdentifier -> testIdentifier.getTags().stream().anyMatch(tag -> webTestIdentifier.equalsIgnoreCase(tag.toString())));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy