org.catools.common.annotations.CTestIds Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common.testng Show documentation
Show all versions of common.testng Show documentation
The common TestNG extensions
The newest version!
package org.catools.common.annotations;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.METHOD;
/**
* This annotation {@link CTestIds} uses to mark test with the id which is using for future
* traceability. (i.e. Jira Number)
*
* Please note:
*
*
* - traceability is a most have for any testing system so we should be careful to have a unique
* {@link CTestIds} for each test.
*
- we use Ids from this set when we get TestNG test suite for some scenarios.
*
- we plan to use this id for command line execution in future so using a command line you can
* specify list of one or more tests to be executed.
*
- we use this ids to refer to the test during reporting .
*
*
* @see CDeferred
* @see CAwaiting
* @see COpenDefects
*/
@Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
@Target({METHOD})
public @interface CTestIds {
@JsonProperty("ids") String[] ids();
}