web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Automated Testing: Test Import file

(0) ShareShare
ReportReport
Posted on by 525

Hi 
I want to write automated test for the following scenario:
- In one of the custom pages, there is action 'Import File'. When the action is invoked, we uplodad an excel file which is then parsed and data is saved.
How can I test this functionality?
Thanks in anticiapation!

Regards,

Mohsin Abbas 

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums which is probably the reason for the lack of responses, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

  • Suggested answer
    Mohsin Abbas Profile Picture
    525 on at

    Figured it out myself:

    When you have to test any functionality that involves uploading a file, upon the test execution, the test tool prompts us to upload the file against which we need to test the functionality. So, no Handler functions are required and file should be uploaded in run time(These were two main confusions I had when I was looking for a solution).


  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Thank you for sharing final solution. Glad you found it!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,958 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,101 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans