Skip to main content

Notifications

Business Central forum
Suggested answer

Automated Testing: Test Import file

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 

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

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

  • Suggested answer
    Mohsin Abbas Profile Picture
    Mohsin Abbas 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
    Marco Mels 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.

Helpful resources

Quick Links

Contextual content recommendations & SharePoint Q&A

Instantly access relevant sales materials…

Beyond the DRA Cloud Label Printing

Explore cloud-based label printing within Dynamics 365…

HR Infrastructure Customer merge

Important considerations for HR Customer migrations…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,414 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 223,502 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,142

Featured topics

Product updates

Dynamics 365 release plans