Skip to content
All projects

KSeF implementation testing in the accounting system of a debt collection company

Project write-up

The client is described by industry and scale, without a name. KPI figures are targets agreed with the client after a baseline measurement.

In brief

Problem
The mandatory KSeF (Poland's National e-Invoicing System) changes the invoice flow: sending, receiving, corrections, and fallback modes.
Approach
We design tests for every path of the invoice flow: issuing, correction, receiving purchase invoices, offline and fallback mode, and resubmission.
Goal
Invoices accepted by KSeF without errors: ≥ 99.5%; Critical defects found after deployment: 0 critical defects in the first 30 days.

Client context

Financial firms work under pressure on decision time: the customer expects an answer in minutes, while the regulator requires a full trail of how that decision was made. The client is a receivables management company that issues and receives large volumes of invoices, with its own finance and accounting system.

Challenge

The mandatory KSeF (Poland's National e-Invoicing System) changes the invoice flow: sending, receiving, corrections, and fallback modes. An error can halt invoicing or cause tax non-compliance.

Requirements and constraints

  • KSeF (Poland's National e-Invoicing System) introduces mandatory structured invoices in the FA(3) format. Finance and accounting systems must handle sending, receiving, fallback modes, and KSeF numbers throughout the document flow. (source)
  • GDPR, i.e. Regulation (EU) 2016/679, requires data minimization, a legal basis for processing, processing agreements, and, for high-risk processing, an impact assessment (DPIA). In practice it rules out copying production data into test environments without anonymization or pseudonymization. (source)
  • Project constraints: work only on anonymized or synthetic data outside production, access to systems through the client's infrastructure, and every element delivered with documentation that the client's team can take over.

Approach and architecture

We start with a risk-based test strategy: together with process owners we assess the likelihood and impact of failure in each area, and the result sets the depth of testing. Test cases are designed by certified ISTQB analysts, and every defect gets a root cause classification, so after a few sprints it is visible where most errors originate and what to improve in the development process.

We design tests for every path of the invoice flow: issuing, correction, receiving purchase invoices, offline and fallback mode, and resubmission. We run integration tests on the KSeF test environment, and decision tables cover special cases (advance payments, invoices for receipts, currencies).

Key elements of the solution:

  • A catalog of invoice flow scenarios with risk ratings
  • Tests on the KSeF test environment
  • Scenarios for fallback modes and resubmission
  • A readiness report for the finance department

Team and roles

RoleCountResponsibility
Test manager (ISTQB Advanced)1test strategy, entry and exit criteria, quality reporting
Test analyst (ISTQB)2designing and running test cases, reporting defects
Business analyst1requirements, processes, acceptance criteria
Product owner and domain experts (client side)as neededpriorities, business decisions, acceptance

Phased schedule

PhaseWeeksDeliverable
1. Analysis and test strategy1–2test strategy, risk matrix, environment plan
2. Test case design3–5a case repository with traceability
3. System and integration testing6–10daily reports, defect register
4. Acceptance testing (UAT) with the business11–13UAT protocols, exit criteria
5. Closure report and handover14–14quality report, recommendations

Technology stack

KSeF test environment, Postman, SQL, Jira Xray.

Risks and how we mitigate them

RiskHow we mitigate it
Changes or clarifications to regulations during the projectmonitoring of implementing acts, a modular rules design, a buffer in the schedule
Dependence on an external vendor and its deadlinesearly agreement on API contracts, a stub environment, a weekly review of dependencies
Unavailable or unstable test environmentsan environment booking schedule, virtualization of external services (mocks), a daily environment smoke test

Measurable goals and KPIs

The values below are targets that we set with the client after a baseline measurement in the first phase.

KPITargetHow it is measured
Invoices accepted by KSeF without errors≥ 99.5%integration logs
Critical defects found after deployment0 critical defects in the first 30 daysproduction incident log
Defect detection effectiveness (DDE)≥ 90%defects found in testing / all defects within 90 days

Lessons learned and good practices

Fallback modes are the most often skipped in testing, yet they decide the continuity of invoicing. Tests on the official test environment reveal differences in interpreting the schema. Traceability from requirements to tests is cheap when built from day one and very expensive when reconstructed before an audit.

Why B2B.net

We combine two models: we provide individual specialists and whole teams (time and materials, team leasing), and when a client prefers to hand over responsibility for the result, we work at a fixed price for a defined scope. We have access to a large network of engineers in six cities, SAP Center of Expertise competencies, and experience with ISO 27001, DORA, and NIS2 requirements. If someone leaves the team, a replacement is in place within 5 business days.

Acceptance criteria

Every phase ends with a formal acceptance against criteria agreed at the start. In this deployment, acceptance covers: test strategy, risk matrix, environment plan; a case repository with traceability; daily reports, defect register; UAT protocols, exit criteria; quality report, recommendations. Final acceptance requires a KPI measurement report against the starting point, complete documentation handed over to the client's team, and a list of recommendations for the next stage, with an estimate of the cost and risk of each.

Next step

If you recognize these problems in your organization, let's start with a short diagnosis: one workshop with your team and written recommendations. Write to: office@b2bnetwork.pl.

What would this look like for you?

Book a 30-minute call. We will prepare a plan for the first weeks and a team matched to your system.

Let's talk

B2Bnetwork · B2B.net S.A. · accredited exam center. We describe clients by industry and scale, without names.

More projects: Finance