Skip to main content
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 

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Automated Testing: Test Import file

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

  • Suggested answer
    Mohsin Abbas Profile Picture
    525 on at
    RE: Automated Testing: Test Import file

    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
    on at
    RE: Automated Testing: Test Import file

    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.

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans