SShortSingh.
Back to feed

TestNG vs. Custom Excel Allocator: Two Approaches to Parallel Test Execution

0
·4 views

A technical guide published on DEV Community outlines two strategies for achieving parallel test execution in automated testing frameworks. The first approach uses TestNG's native parallelization, configured via XML and Maven parameters, allowing CI pipelines to override thread counts dynamically without modifying source files. The second strategy employs a Custom Excel Allocator that uses Java's ExecutorService fixed thread pool to dispatch concurrent test runs based on active rows parsed from Excel sheets. Native TestNG is recommended for lightweight, code-first suites, while the Excel Allocator suits data-driven frameworks requiring fine-grained control over test instances and multi-sheet scheduling. The guide includes a side-by-side comparison of both methods across entry points, thread management, and command execution to help teams select the right approach.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

How Distributed Leases Work — and Why They Can Still Cause Split-Brain Issues

Distributed systems use leases — time-limited ownership grants — to prevent abandoned locks from blocking resources indefinitely when an application crashes or becomes unresponsive. Unlike permanent locks, leases expire automatically, allowing another node to take over without manual intervention. However, leases introduce a subtle risk: if a process is paused, such as during a JVM garbage collection cycle longer than the lease duration, it may resume work believing it still holds ownership while another node has already acquired a new valid lease. This results in two applications simultaneously assuming exclusive control over the same resource, a condition known as split-brain. Crucially, split-brain can occur without any network partition, even when the coordination service is functioning correctly.

0
ProgrammingDEV Community ·

EU Updates Teacher Guidelines to Cover AI, Influencers, and Prebunking

The European Commission revised its educator guidelines on disinformation and digital literacy on 4 June 2026, expanding them to address generative AI, influencer-driven information dynamics, and prebunking strategies. The updated materials fall under the EU's Digital Education Action Plan (2021–2027) and were part of a broader package of four guideline sets announced in March 2026. New additions include classroom lesson plans, a refreshed glossary, and policy recommendations for school leaders, alongside resources related to cyberbullying. The prebunking approach is a key focus, training learners to recognise misleading techniques before they encounter them, rather than fact-checking claims after the fact. The guidelines are not legally binding but offer schools a more current framework for curriculum planning and digital safety education.

0
ProgrammingDEV Community ·

10-Step Checklist to Onboard E2E Test Automation Pipelines on Harness CI

A structured 10-step checklist outlines how engineering teams can onboard end-to-end automation frameworks onto Harness CI. The process begins with replacing infrastructure placeholders in pipeline YAML files, including organization IDs, Kubernetes connectors, and Git connector details. Teams must then configure runtime secrets, import PR validation and nightly regression pipelines, and verify that test artifacts such as JUnit reports and failure screenshots are correctly generated. Automated triggers are set up for pull request smoke tests and nightly regression runs with parallel execution. The onboarding is considered complete once both PR and nightly pipelines pass with green status checks and GitHub branch protection rules are enforced.

0
ProgrammingDEV Community ·

Developer built 8,664 SEO pages, got 9 clicks in a month despite Google indexing them

A developer running a tech interview prep site programmatically generated 8,664 individual pages, only to receive just 9 clicks over 28 days despite Google indexing 1,575 of them. Search Console data showed 6,511 impressions but a median ranking position of 58, effectively placing the pages on page six of search results where almost no users venture. The developer confirmed technical factors were not to blame, as pages were properly server-rendered, crawlable, canonicalised, and supported by valid sitemaps and structured data. The core issue identified was domain authority: pages targeting well-established terms were consistently outranked, while comparatively niche or unusual queries performed relatively better. The developer concluded that programmatic SEO on a new domain faces an authority ceiling that technical optimisation alone cannot overcome.