ListingExtractorTest
|
100%
successful |
Tests
| Test | Method name | Duration | Result |
|---|---|---|---|
| LBC __NEXT_DATA__ — blob riche, ≥15 champs, majoritairement structuré | lbc rich blob mostly structured() | 0.007s | passed |
| Preux — page sans blob ni description → NO_STRUCTURED_DATA (abstention) | preux abstains() | 0.002s | passed |
| SeLoger — fusion structuré + description ⇒ 14 champs (>7 du structuré seul), dont nbLotsCopro→banId | seloger merges structured and description() | 0.002s | passed |
| Précédence — le structuré gagne pour les champs qu'il porte, la description comble le reste | structured wins description fills() | 0.005s | passed |
| titreEtDescription : deux annonces, l'url de la page désigne la bonne ; sans url, ambiguïté ⇒ null | titre et description designes par l url de la page() | 0.005s | passed |
Standard output
21:50:00.247 [Test worker] INFO com.alertimmo.aiscraping.extraction.structured.ListingExtractor -- [listing-extractor] portal=lbc outcome=EXTRACTED champs=15 par-couche={STRUCTURED=15}
21:50:00.250 [Test worker] INFO com.alertimmo.aiscraping.extraction.structured.ListingExtractor -- [listing-extractor] portal=preux outcome=NO_STRUCTURED_DATA champs=0 par-couche={}
21:50:00.261 [Test worker] INFO com.alertimmo.aiscraping.extraction.structured.ListingExtractor -- [listing-extractor] portal=pap outcome=EXTRACTED champs=18 par-couche={STRUCTURED=8, DESCRIPTION=10}
21:50:00.263 [Test worker] INFO com.alertimmo.aiscraping.extraction.structured.ListingExtractor -- [listing-extractor] portal=seloger outcome=EXTRACTED champs=18 par-couche={STRUCTURED=7, DESCRIPTION=11}