Skip to main content
Version: 6.0.0 (Unmaintained)

First Test

Create a class with a public static factory method annotated with @Paramixel.Factory. The method returns an Action, a Builder, or null. Returning null means the factory is represented as a skipped action outcome.

package com.example;

import org.paramixel.api.Paramixel;
import org.paramixel.api.action.Action;
import org.paramixel.api.action.Assert;
import org.paramixel.api.action.Sequence;
import org.paramixel.api.action.Step;

public final class LoginSmokeTest {
@Paramixel.Factory
public static Action test() {
return Sequence.builder("login smoke")
.child(Step.of("open login page", ctx -> openLoginPage()))
.child(Step.of("submit credentials", ctx -> submitCredentials()))
.child(Assert.of("user is signed in", true, true))
.build();
}

private static void openLoginPage() {}

private static void submitCredentials() {}
}

Run with Maven:

mvn test

Or invoke the plugin goal directly:

mvn paramixel:test

Programmatic run​

import org.paramixel.api.Runner;

var result = Runner.defaultRunner().run(LoginSmokeTest.test());
if (result.isFailed()) {
throw new AssertionError("Paramixel run failed");
}

The returned Result exposes the root Descriptor and effective aggregate status.