mercredi 2 septembre 2020

BrowserStack Live: Upload a local file

I have successfully used TestCafé (with testcafe-browser-provider-browserstack) to test my application on BrowserStack, including file uploads of local files and all.

However, I cannot get manual tests to work with uploads. I use the BrowserStackLocal binary to build a tunnel, and can access my local machine in a foreign browser through BrowserStack. However, when I use any file-open dialog on the remote machine, I only see the default set of some image and document files for upload. For real test, I need to upload the documents on my machine.

It seems some magic in the TestCafé driver transparently uploads the file to BrowserStack, so it is available there for access. How can I do the same for manual testing?

Aucun commentaire:

Enregistrer un commentaire