Migrate from Pumpo5 0.8.x to 1.0.x
Start by updating the Java toolchain and Pumpo5 artifacts. Then migrate the page interfaces and review each attribute read before running the suite on its target farm. See the 1.0.0 changelog for the release summary.
Update the build and CI
| Setting | What to change |
|---|---|
| Java | Use JDK 25 for Maven, the IDE, CI, and test execution. Set maven.compiler.release to 25. If your build still sets source and target separately, align both to 25. Run mvn -v on the agent to confirm which JDK Maven uses. |
| Annotation processing | On JDK 23 and later, explicitly configure processors with annotationProcessorPaths. For a build that relies on classpath discovery of trusted processors, set <proc>full</proc> in the compiler plugin configuration. If generated methods disappear, check processor configuration before editing call sites. |
| Lombok | Use 1.18.42 or later for this migration. The downstream suite's 1.18.30 failed on JDK 25. |
| Maven Surefire | Use 3.5.4 or a compatible newer version. The downstream suite's 3.0.0-M4 ran zero tests with JUnit 6.1. Check that CI actually reports executed tests after upgrading. |
| CI and containers | Select JDK 25 explicitly on hosted and self-hosted agents. If an Azure job references JAVA_HOME_25_X64, provision it on the agent. For Temurin-based UBI runtime images, the downstream migration used eclipse-temurin:25-jre-ubi10-minimal. Use a JDK image for compilation. |
See the Maven Compiler Plugin configuration and the Lombok changelog.
Use the same Pumpo5 version for core and the reporting modules you consume. The 1.0 dependency stack includes Selenium 4.53.0, Selenide 7.19.2, Appium Java client 11.0.0, Allure Java 3.1.1, and JUnit 6.1. Remove overrides that force the old generations unless you have validated the resulting dependency tree.
Replace removed Java APIs
| In 0.8.x | In 1.0.x |
|---|---|
Web page extends WebDriverAccessor | Extend WebAgentAccessor. Retrieve the native driver with getAgent().getDriver(). |
A Windows page already extends WindowsAgentAccessor | Keep WindowsAgentAccessor and use its getAgent(). The Windows and web accessors declare incompatible return types for the same method. |
MobileDriverAccessor | Use MobileAgentAccessor for the mobile agent. |
Web getAttribute(...) or @GetAttributeValue, @StoreAttributeValue, @AssertAttributeValue | Choose the matching DomAttribute or DomProperty method or annotation. Use attributeName for attributes and propertyName for properties. |
| Legacy attribute annotations on mobile | Rename to @GetMobileAttribute, @StoreMobileAttribute, or @AssertMobileAttribute. Keep attributeName. Mobile agent callers use getMobileAttribute(...). |
@Log / @Logs | Read any needed element text with @GetElementContent and log explicitly from the test, applying your suite's redaction rules. |
commentStep(...) | Use addComment(...). |
messagesAsCollectionOf(Type.class) | Use messagesAsListOf(Type.class). |
Marvin.bootstrapApplication(...) | Use Marvin.bootstrapWindowsApplication(...). |
Custom Selenide helper typed as Condition | Use WebElementCondition when accepting or returning an element condition, for example WebElementCondition visible = Condition.visible;. |
Before, on a web page:
interface CheckoutPage extends WebDriverAccessor {
@GetAttributeValue(value = "email", by = Lookup.ID, attributeName = "value")
String email();
}
After:
interface CheckoutPage extends WebAgentAccessor {
@GetDomProperty(value = "email", by = Lookup.ID, propertyName = "value")
String email();
@AssertDomAttribute(value = "email", by = Lookup.ID, attributeName = "aria-invalid")
void assertEmailInvalid(String expected);
}
Where test code called page.getDriver(), use page.getAgent().getDriver().
When the attribute is absent, page.assertEmailInvalid(null) checks for absence.
Review attribute expectations
| Read | Choose in 1.0.x | Result to expect |
|---|---|---|
| A missing DOM attribute or undefined DOM property | The explicit DOM read | null. Change tests that expected the legacy empty string for an absent value. An existing empty string is still "". |
An anchor's href | DomProperty for an absolute URL you will navigate to, DomAttribute for the markup value | The property resolves against the document base URL. The attribute may be relative. |
checked, selected, or disabled for live control state | DomProperty | "true" or "false" for a defined boolean property. A present boolean attribute yields "true", and an absent one yields null. |
| A value typed into an input | DomProperty with propertyName = "value" | The current value after typing. The attribute may still hold the initial markup value. |
A custom value attribute on a non-form element | DomAttribute | The attribute's string value. The property can be null. |
aria-*, data-*, title, or id read as markup | DomAttribute | The current DOM attribute value, including changes made by scripts. |
For example, before migration an assertion for absent aria-invalid could
pass with "". After migration, use null to assert absence. Keep "" only
when the markup explicitly contains an empty attribute. Mobile attribute reads
still return an empty string for a missing Appium value.
See DOM reads and mobile attributes for method and annotation details.
Declare libraries your suite uses
Compare mvn dependency:tree before and after the upgrade. Add direct
dependencies for APIs your own code imports. In the downstream migration,
examples of transitive dependencies that disappeared included AsyncHttpClient,
Failsafe, Commons Exec, old Selenium DevTools artifacts (v85 and
v112–v114), and Allure 2 JUnit, attachment, and test-filter artifacts.
For Selenium DevTools, select a module compatible with your Selenium and Chrome
versions. For Allure, migrate JUnit integration to allure-jupiter. If your
suite still contains a custom JUnit service file for
io.qameta.allure.junit5.AllureJunit5, remove that entry. Pumpo5 1.0 includes
the fix for the stale service entry shipped by the reporting module.
Classic WinAppDriver keeps its existing bare capabilities, such as app and
timeout. Pumpo5 adapts them for the Selenium 4.53 handshake and sends the
legacy payload that classic WinAppDriver expects. NovaWindows uses its own
Appium capabilities. See Windows backend configuration
and Allure reporting.
Verify your migration
- Run
mvn -vandmvn clean test-compileon JDK 25. Fix missing processors and dependencies before investigating symbol errors at individual call sites. - Run a small JUnit suite with reporting enabled. Confirm CI reports a nonzero test count and Allure includes the expected attachments.
- On your Chrome farm, verify a typed value, a toggled checkbox, disabled state,
relative links,
aria-*anddata-*, and absent versus empty attributes. Chrome context reuse is enabled for compatible sessions by default. Setpn5.web.reuseChromeContext = falseif the suite needs one WebDriver session per test. See Chrome reuse settings. - On each Windows backend you use, verify session creation, maximize, a click, typing, and clipboard. The downstream Navision smoke covered session creation and maximize on classic WinAppDriver behind Selenoid.
- Run one HTTP and SQL test against your actual endpoints. Compare assertions, authentication, error handling, and the reports with your 0.8.x baseline.
One large downstream suite migrated most accessor calls mechanically. The
time-consuming step was reviewing 163 attribute reads and their expected
values, then running the affected tests on real environments. A compiler pass
with -Xmaxerrs set high helped collect the remaining call sites.