web
You’re offline. This is a read only version of the page.
close
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 

I have the same question (0)
  • 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.

  • 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

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,808

#2
Sumit Singh Profile Picture

Sumit Singh 2,554

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,140

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans