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

org.catools.common.annotations.CSeverity Maven / Gradle / Ivy

The newest version!
package org.catools.common.annotations;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.catools.common.testng.listeners.CIMethodInterceptor;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.METHOD;

/**
 * This annotation {@link CSeverity} uses to mark test with the level of severity which has been
 * assigned to the test. This information will be used to define if the test should be executed
 * based on value of TESTNG_RUN_SEVERITY_LEVEL
 *
 * 

Please note: * *

    *
  • You must include {@link CIMethodInterceptor} in your listeners. *
  • Any tests without {@link CSeverity} will be ignored if value of TESTNG_RUN_SEVERITY_LEVEL * is greater than Zero. *
  • Any test with {@link CSeverity} value less than OR equal to TESTNG_RUN_SEVERITY_LEVEL will * be included in execution suite. *
  • Any tests with both {@link CRegression} and {@link CSeverity} should have both condition * true if value of TESTNG_RUN_SEVERITY_LEVEL and TESTNG_RUN_REGRESSION_DEPTH is greater than * Zero. *
* * @see CDeferred * @see CAwaiting * @see COpenDefects */ @Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @Target({METHOD}) public @interface CSeverity { @JsonProperty("level") int level(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy