DocBits- IDP for Infor ERP
HomeAppStatusAPI
🇳🇱 Nederlands
🇳🇱 Nederlands
  • Overzicht en basisprincipes
    • DocBits
      • Belangrijkste Kenmerken van DocBits
    • Architectuur
      • DocBits Infor on Premise Klant
      • Certificeringen
    • Infor Infrastructuur
    • Release-opmerkingen
  • Eindgebruiker en partners
    • Eindgebruikerssectie
      • Dashboard
        • Dashboard Tools
        • Documenten Samenvoegen
        • Documentstatus
        • Documenten Filteren
        • Overzicht van Geüploade Documenten
        • Taakenteller
        • Gevalideerde Geëxtraheerde Velden
        • Documentflow
        • Problemen oplossen
        • Toetsenbord Sneltoetsen
      • Taken
      • Advance Shipment Dashboard
      • Dashboard voor inkooporders
      • Factuurdashboard
      • Shipment Order Dashboard
      • Gebruikersconfiguratie-opties
      • AI Tabel
        • AI Tabel Tags
      • Validatiescherm
        • Vage Gegevens
        • QR-codes
        • Toetsenbord Sneltoetsen
      • Doel en Gebruik
      • Inkooporder Matching
        • Automatische Afstemming van Inkoopordergegevens
        • Leverancier Artikelnummer Map
        • Toetsenbord Sneltoetsen
      • Boekhouding voor Kostfactuur en Indirecte Verkoop
      • Hoe Documenten te Importeren
        • FTP
        • Handmatige Import
        • Webhook
        • E-mail
          • IMAP
          • OAuth Office365
      • Technische Ondersteuning in DocBits
        • Maak een ticket aan
        • Help-pictogrammen
      • Cursus
        • Introductie
        • Dashboard
        • Geverifieerde Documenten
        • AI Table
        • Master PO Matching met DocBits
      • Ons Document Prioriteit Systeem
      • Leverancier Portaal
        • Leverancier Registratie
        • Leverancierstatus
      • Bronnen en ondersteuning
        • Gebruikersondersteuning
    • Partner Sectie
      • Factuurautomatiseringstest met DocBits
  • Administratie en instelling
    • Instellingen
      • Global Settings
        • Bedrijfsinformatie
          • Defining App Color in Company Settings
        • Groups, Users and Permissions
          • Gebruikers
            • Modifying User Details
            • Admin Privileges
          • Suborganisaties
            • How to create a Sub-Organization
          • Groepen en Machtigingen
            • Purpose and Use
            • Adding/Editing Groups
            • Machtigingen activeren
            • Toegangscontrole
            • Troubleshooting
        • Integration
          • API Key
          • API Calls and Examples
          • API Key Management
          • Configuring Single Sign-On (SSO)
            • Infor SSO Configuration
              • V1
              • V2
              • Azure SSO
          • Identity Service Provider Configuration
          • Best practices
          • Troubleshooting Common Issues
        • Documenttypes
          • Purpose and Scope
          • Adding/Editing Document Types
          • Activation
          • Customization Options
          • Best Practice
          • Troubleshooting
          • Layout Manager
            • Purpose and Use
            • Navigeren in de Lay-outbeheerder
            • Configuring Field Properties
            • Using the Template Preview
            • Save and apply changes
            • Best practices
            • Troubleshooting
          • Document Sub Types
          • Creating a new Sub Type
          • Configure subtypes
          • Using Actions
          • Best Practices
          • Tabelkolommen
            • Purpose and Use
            • Adding a new Column
            • Editing and deleting columns
            • Best practices
            • Troubleshooting
          • Velden
            • Purpose and Use
            • Configuring Field Properties
            • Setting Validation and Match Score
            • Velden Toevoegen en Bewerken
            • Best practices
            • Troubleshooting
            • New Fields with Charges
          • Modeltraining
            • Purpose and Use: Model Training
            • Import Data: Model Training
            • Manage training data
            • Testing the model
            • Best practices
            • Troubleshooting
          • Regex
            • Purpose and use
            • Creating a Regex Pattern
            • Editing and Saving Regex Patterns
            • Best practices
            • Troubleshooting
          • Script
          • Script Activation and Management
          • Testing Scripts
          • Purpose and Use
          • Creating and Editing Scripts
          • Best Practices
          • Troubleshooting
          • e-docs
            • Purpose and Use
            • Setting Up EDI Templates
            • Using the XSLT Editor
            • Previewing EDI Messages
            • Best Practices
            • Troubleshooting
            • XRechnung
              • Standard Preview
            • Mapping XRechnung in DocBits
              • TOML Export
            • EDI 810 (Invoice) Mapping
            • EDI 850 (Purchase Order) Mapping
            • EDI 855 (Purchase Order Acknowledgement) Mapping
            • EDI 856 (Advance Shipment Notice) Mapping
            • Peppol BIS Billing 3.0
            • eSLOG 1.6 en 2.0
          • Meer Instellingen
            • Purpose and use
            • Best practices
            • Troubleshooting
            • Behandeling van dubbele documenten
            • Goedkeuringsstempel
            • Supplier Item Number Map - Admin Documentation
            • Aankooporder tolerantie-instellingen / Extra aankooporder tolerantie
            • Aankooporder uitschakelen statussen
            • PO-tabel in Layout Builder
            • Automatische controle op PO-updates
            • Eenheidsprijs PO berekenen
            • Export niet gematchte PO-regels
        • E-mailmelding
          • Configuring Notifications
          • Managing Notifications
          • Best Practice
          • Troubleshooting
        • Custom Filters
        • Dashboard
          • Customizing Filters
      • Documentverwerking
        • Documents Expiry
        • Importeren
          • Test: Multi Email Import and Handling Tests
          • Test: Email Import and Handling Tests
          • Test: FTP Import Connection
          • Test: File Import 1
        • Regelbeheerder
          • TransactionConfig Pro Template
            • Case 1, 2, 3: Quantity and Unit Price Within Tolerance
            • Case 4, 5: Quantity Within Tolerance, Unit Price Outside Tolerance (Approved)
            • Case 15: Charge Line - Charge Per Unit Outside Tolerance (Rejected)
            • Case 14: Header Charge - Charge Per Unit Outside Tolerance (Approved)
            • Case 12, 13: Header Charge - Charge Per Unit Within Tolerance
            • Charge Per Unit Outside Tolerance (Rejected)
            • Case 14: Charge Line - Charge Per Unit Outside Tolerance (Approved)
            • Charge Per Unit Within Tolerance
            • Case 11b: Quantity Outside Tolerance (Positive Rejected), Unit Price Outside Tolerance (Rejected)
            • Case 10b: Quantity Outside Tolerance (Negative Rejected), Unit Price Outside Tolerance (Rejected)
            • Case 8b, 9b: Quantity Outside Tolerance (Approved), Unit Price Outside Tolerance (Approved)
            • Case 11a: Quantity Outside Tolerance (Positive Rejected), Unit Price Within Tolerance
            • Case 10a: Quantity Outside Tolerance (Negative Rejected), Unit Price Within Tolerance
            • Case 7: Quantity Within Tolerance, Unit Price Outside Tolerance (Positive Rejected)
            • Case 6: Quantity Within Tolerance, Unit Price Outside Negative Tolerance (Rejected)
            • Case 8a, 9a: Quantity Outside Tolerance (Approved), Unit Price Within Tolerance
            • Case 15: Header Charge - Charge Per Unit Outside Tolerance (Rejected)
            • Tax Lines
        • Ocr-instellingen
        • Classificatie En Extractie
          • Tabelextractie voor kostenelement
          • Auto extract belastingcode
        • Master Data Lookup
        • Lijst van Waarden
        • Exporteren
        • Module
          • Annotatiemodus
          • Approval Before Export
          • Doc Scan
          • Doc Script
          • IDM ACL Updater
          • Swiss QR Code
          • Auto Export if PO Matched 100%
        • Beslisbomen
      • Loginstellingen
        • Taakbeheer
        • Gegevenssynchronisatie
      • Leverancier Instelling
        • Leverancier Algemene Instellingen
        • E-mail Sjablonen Bewerken
        • Exportconfiguratie voor Leverancierportaal voor M3
      • API-Licenties
      • Cachebeheer
    • Workflow
      • Release
      • When
        • Card description
        • Document Operator for Sub-Organizations
        • Document Type Operation
      • And
        • Assigned User Condition
        • Checkbox Field Condition
        • Checkbox
        • Combined Price of Quantity Difference
        • Compare two fields
        • Compare with Purchase Order
        • Confirmed Delivery Date
        • Docfield is
        • Document Field Comparison
        • Document Field
        • Document Status Condition List
        • Document Type Operation one of
        • In Order Confirmation Purchase Order
        • Single Assigned User Condition
        • Single Document Status Condition
        • Supplier on Invoice
        • Text in field
        • Unit Price Combined with Fields
      • Then
      • Workflow Example: Conditional Export Trigger
      • Workflow Documentation
      • Standard Workflow
        • Above Max Amount
        • Cost Invoice - Export
        • Less than Max Amount
        • Purchase Invoice - 2nd Approval Quantity Export
        • Purchase Invoice - 2nd Approval Quantity
        • Purchase Invoice - 2nd Approval Unit Price Export
        • Purchase Invoice - 2nd Approval Unit Price
      • Material Ordering and Processing Workflow
    • Setup
      • Document Types
        • EDI Data Transformation Process
        • Layout Builder
        • Origin Layouts
        • Regex Manager
      • Document Training
        • Training Header Fields
        • Training Line Fields/Table Training
          • Adding New Columns
          • Advanced Settings
          • Defining Tables and Columns
          • Grouping Function
          • Manual Row Selection
          • Mapping Columns
          • Save and Delete Rules
      • Stream for Cloud Customers
      • Testing
        • PO Matching
        • Auto Accounting
          • LN
          • M3
      • Leveranciersportaal
      • WatchDog Installatie
  • Infor integratie en configuratie
    • Importing Master Data
      • Field Mappings
      • LN
        • Auto Accounting
        • Suppliers and Purchase Orders
        • Tax Codes
      • M3
        • Auto Accounting
        • Suppliers and Purchase Orders
        • How to import all suppliers
        • Tabelextractie voor kostenelement
      • Custom Master Data
    • Exporting in DocBits
      • Export Module
    • Exporting to INFOR
      • Creating a BOD Mapping File
      • Een IDM Mappingbestand maken
      • Creating an ION API Endpoint
      • Creating an ION API File
      • Export to M3 Mapping (API)
      • Exporting to IDM
      • Order Confirmation
      • M3
        • Handling Charges with Infor M3
        • M3 Configuration
      • LN
        • Exporteer Belastingcodes naar LN
        • LN Configuration
      • Page
  • Geavanceerde functies en tools
    • Scripting in DocBits
      • Calculating Total Charges Script for Docbits
      • Calculating Total Charges Script for Docbits
      • Delete lines with empty quantity and amount
      • Formatting Export Certificate Reference Numbers Script for Docbits
      • Functies
      • Generating Extended Invoice Numbers Script for Docbits
      • Generating Extended Invoice Numbers Script for Docbits
      • USD as Default Currency
    • Course
      • A Step-by-Step Guide
      • Connect DocBits with Infor SSO
      • Create your Custom App in Infor OS
      • Infor OS with DocBits API Integration
      • M3 Export
      • Sync Flex Dimensions: Infor to DocBits
    • Postman for DocBits
    • SQL Access
    • Leverancier- en Inkoopordergegevens importeren in DocBits vanuit CSV-bestanden
    • PowerBI
Powered by GitBook
On this page
  • What's Being Tested?
  • Steps Involved
  • Detailed Explanation of Each Test

Was this helpful?

Export as PDF
  1. Administratie en instelling
  2. Instellingen
  3. Documentverwerking
  4. Importeren

Test: Multi Email Import and Handling Tests

What's Being Tested?

These tests ensure that our email import system works correctly. The main goals are to:

  1. Send emails with attachments.

  2. Receive and move emails to specific folders.

  3. Check if emails are read or unread.

  4. Import emails into our system.

  5. Clean up by deleting emails and imported documents afterward.

Steps Involved

  1. Setup:

    • Get Environment Settings: Load the email server details and credentials from environment variables.

    • Encrypt Email Password: Securely encrypt the email password.

  2. Send and Manage Emails:

    • Send Emails: Use an SMTP function to send emails with specific subjects and attachments.

    • Move Emails: Use IMAP functions to move emails to the target folder.

    • List Folders: Check if the target folder exists.

    • Delete Emails: Clean up emails by deleting them from folders.

    • Check Email Status: Verify if emails are marked as unread or read.

  3. Test Sequence

    Initial Setup:

    • Check Connection: Verify connection to the email server and get the connection ID.

    • Login Test: Confirm that logging in with stored credentials works.

    • Folder Check: Ensure the target folder exists on the email server.

    Email Operations:

    • Send Test Emails: Send three emails with unique subjects.

    • Retrieve Email IDs: Get the IDs of the sent emails from the inbox.

    • Move Emails: Move these emails from the inbox to the target folder.

    • Check Email Status: Ensure the emails in the target folder are marked as unread.

    Email Importing:

    • Fetch Emails: Import emails from the target folder into our system.

    • Check Imported Emails: Ensure the imported emails are correctly fetched and logged.

    Log Verification:

    • Check Import Logs: Verify that the subjects of the sent emails are recorded in the import logs.

    Cleanup:

    • Delete Imported Documents: Remove the documents that were imported from the emails.

    • Delete Emails: Clean up by deleting the sent and moved emails from the folders.

Detailed Explanation of Each Test

  • Setup and Initialization:

    • Initialize Shared Data: Prepare shared data for tests.

  • Email Connection Tests:

    • Get Connection ID: Check if we can connect to the email server and get an ID for the connection.

    • Login Verification: Ensure that logging in to the email server works properly.

  • Folder Verification Tests:

    • Check Target Folder: Make sure the target folder exists on the email server.

    • Verify Folder Listing: Ensure the list of folders from the server matches our expectations.

  • Email Sending and ID Retrieval:

    • Send Emails: Send three test emails with specific subjects and attachments.

    • Get Email IDs: Retrieve the unique IDs of these sent emails from the inbox.

  • Email Moving and Status Checking:

    • Move Emails to Folder: Move the test emails from the inbox to the target folder.

    • Check Unread Status: Ensure the emails are marked as unread after moving.

  • Email Fetching and Response Validation:

    • Fetch Emails from Folder: Import the emails from the target folder into our system.

    • Validate Fetched Emails: Confirm that the fetched emails match the sent emails.

  • Import Log Verification:

    • Fetch Import Log: Retrieve the log of imported emails.

    • Check Email Subjects in Log: Ensure the subjects of the test emails are present in the import log.

  • Cleanup:

    • Delete Imported Documents: Remove the documents that were imported from the emails.

    • Delete Emails: Delete the test emails from the inbox and the target folder to keep everything clean.

\

PreviousImporterenNextTest: Email Import and Handling Tests

Was this helpful?