Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
IT Security NachrichtenAnthropic-Chef warnt vor KI-Botnetz-Übernahme(21.09.2026 um 08:06 Uhr)
IT Security NachrichtenVor Gipfeltreffen: China und USA tauschen sich zu KI aus(21.09.2026 um 08:18 Uhr)
IT Security NachrichtenHacker stiehlt Daten von Studierenden der Münchner LMU(21.09.2026 um 08:34 Uhr)
IT Security NachrichtenNeue Schutzfunktionen in Microsoft Teams(21.09.2026 um 09:41 Uhr)
IT Security DownloadsSublime Text Download - Beliebter Texteditor(21.09.2026 um 09:12 Uhr)
IT Security DownloadsMaxthon Portable - Kostenloser Web-Browser mit Cloud-Anbindung(21.09.2026 um 09:18 Uhr)
IT Security DownloadsArtMoney Download - Cheat-Programm für Spiele(21.09.2026 um 09:19 Uhr)
IT Security DownloadsNTLite Free Download - Windows-ISO anpassen(21.09.2026 um 09:22 Uhr)
IT Security NachrichtenAnthropic-Chef warnt vor KI-Botnetz-Übernahme(21.09.2026 um 08:06 Uhr)
IT Security NachrichtenVor Gipfeltreffen: China und USA tauschen sich zu KI aus(21.09.2026 um 08:18 Uhr)
IT Security NachrichtenHacker stiehlt Daten von Studierenden der Münchner LMU(21.09.2026 um 08:34 Uhr)
IT Security NachrichtenNeue Schutzfunktionen in Microsoft Teams(21.09.2026 um 09:41 Uhr)
IT Security DownloadsSublime Text Download - Beliebter Texteditor(21.09.2026 um 09:12 Uhr)
IT Security DownloadsMaxthon Portable - Kostenloser Web-Browser mit Cloud-Anbindung(21.09.2026 um 09:18 Uhr)
IT Security DownloadsArtMoney Download - Cheat-Programm für Spiele(21.09.2026 um 09:19 Uhr)
IT Security DownloadsNTLite Free Download - Windows-ISO anpassen(21.09.2026 um 09:22 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

#005 | Automate PDF data extraction: User Acceptance Testing

Reagiere als Erste:r — dein Feedback zählt!

Overview

Prior to each feature release, I do User Acceptance Testing ("UAT") to surface bugs and ensure the business logic is correctly translated to code.

I only clear a feature for release after UAT is 100% successful.

My reasoning is simple: you only get one chance to make a good first impression to your end user, and a poor release makes it doubly hard to do so.

Meme

Although this is an MVP feature that isn't meant for production release, I thought it'd be good to do some UAT to keep my skills fresh.

Results

Of the 19 UAT scenarios I came up with, one failed because of a change in the Custodian Statement PDF template.

I anticipated this risk during Discovery, but truth be told, I did not expect the issue to crop up so soon.

I will go into the bug fix details later in the article.

Methodology

My UAT process involves using the business logic or feature requirements as a reference to create test scenarios and expected outcomes.

Test scenarios don't need to be complicated. They can be as simple as : "The feature generates a CSV file within 30 seconds".

For the UAT, I processed 71 pages of documents from 10 Custodian Statement PDFs. This should be a sufficiently large enough sample set.

The expected output is three CSV files containing specific datapoints from the Fund Holdings, Securities Holdings and Cash Holdings sections of the Custodian Statement PDF.

I came up with the following test cases:

CSV 1: Fund Holdings

Fund Holdings CSV

CSV 2: Securities Holdings

Securities Holdings CSV

CSV 3: Cash Holdings

Cash Holdings

Bug Fixing

The one failed test was because the Custodian Statement PDF's template changed slightly in November. More specifically, the values in the "Current Value# 1. Foreign Currency 2. RM Equivalent" column of a Fund Holdings table now has an extra "-\n" prefix.

For example, instead of reading "USD 10,000" in previous PDFs, the value now reads "- USD10,000".

Change in PDF template

This small change resulted in the following issue:

CSV output error

I consulted ChatGPT on a fix, and it recommended the following scrubbing logic be added to remove the incorrect "-/n" prefix.

# Scrub error prefix
df['Currency'] = df['Currency'].str.replace('[-\n]', '', regex=True)

The scrubbing did the trick and the Fund Holdings CSV output now comes out as expected.

What Next?

I'm now comfortable that the code to extract PDF data is functional. That said, I don't think a CSV file is the best place to store all this data.

While CSV is user friendly (to me), storing data in a database makes it much easier to retrieve and manipulate data as per the end user's requirements.

I have very limited experience in databases. So what I'll do next is Discovery on a database application that I can onboard quickly.

--Ends

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten #005 | Automate PDF data extraction: User Acceptance Testing

Thematisch verwandte Begriffe: Automate, data, extraction, User · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94030 | A security vulnerability has been detected in SerenityOS up to 3d83e4509…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick