How to test file uploads from a web app to Azure blob storage?

I have a feature to test whereby large files will be uploaded from a web app UI to an Azure blob storage container. The app must be able to handle interruptions with the upload (loss of connection, app crash, etc). The files will be chunked to handle this so the upload can be resumed from where the error occurs.

My automation experience is limited (currently learning Playwright) but I am looking for smart ways I can test this other than doing it manually? Any tips are largely welcome. Thanks in advance.

2 Likes

Did you make any progress on this?

Playwright lets you abort requests which might come in handy - Network | Playwright

ChaosToolkit can also be used it simulate network related issues using a extension like ToxiProxy - ToxiProxy - Chaos Toolkit - The chaos engineering toolkit for developers. This can be combined with the likes of k6 if you are planning to run the scenario under load etc.

That’s great, thanks for that. I’ll have look into the tools you’ve mentioned. I’ve been doing the testing manually so far so it’ll be good to do it more efficiently

no_coffee212, could you please clarify the meaning of “efficiency” in “it’ll be good to do it more efficiently”?

So far I assumed that in such cases test automation would require more time and by definition is less efficient than manual testing.

I agree with you, generally automating anything takes me longer as my background is not as a technical tester. But what I meant by my comment was that if the test was automated I could scale it more easily and potentially have more accurate results. However, the project has moved on and I didn’t get time to get anything automated as the research/learning time would have been too long.