Skip to main content
Version: 6.2.3 (Unmaintained)

Quick Reference

Minimal factory​

import org.paramixel.api.Paramixel;
import org.paramixel.api.action.Action;
import static org.paramixel.api.action.Sequential.sequential;
import static org.paramixel.api.action.Step.step;

@Paramixel.Factory
public static Action smoke() {
return sequential("smoke")
.child(step("step", ctx -> doWork()))
.build();
}

Using named builders​

For shorter action tree definitions, use the named builder factories:

import static org.paramixel.api.action.Sequential.sequential;
import static org.paramixel.api.action.Step.step;

@Paramixel.Factory
public static Action smoke() {
return sequential("smoke")
.child(step("arrange", ctx -> arrange()))
.child(step("act", ctx -> act()))
.child(step("assert", ctx -> assertResult()))
.build();
}

See Named Builders for the full method reference.

Annotations​

AnnotationTargetPurpose
@Paramixel.FactorymethodMarks a public static factory returning Action, Builder, or null.
@Paramixel.BeforeAllmethodMarks a public static runner-level hook that executes once before discovered test actions.
@Paramixel.AfterAllmethodMarks a public static runner-level hook that executes once after discovered test actions.
@Paramixel.DisabledmethodExcludes a factory or hook from discovery.
@Paramixel.TagmethodRepeatable tag used by selectors and regex filters.
@Paramixel.PriorityclassOrders discovered classes before root action construction.
@Paramixel.IdmethodIdentifies methods for AnnotationResolver.

Use @Paramixel.BeforeAll and @Paramixel.AfterAll for runner-wide lifecycle around all discovered factory actions. Use Scope for setup and teardown that belongs to one test or action tree.

Configuration​

See Configuration API for the complete list of supported configuration keys with defaults and descriptions.

Maven​

mvn paramixel:test
mvn test -Dparamixel.match.tag.regex=smoke