We are successfully creating results from test scripts from Selenium / Java scripts. Now we want to automatically send the results into SharePoint.
I have been looking at code I find by Googling. The Java examples are not understandable. I don't know the SharePoint API. I did see one example written in .vbs that makes more sense to me but then I found out that .vbs is no longer automatically available in Windows 10.
One idea I have been considering is converting the example to VBA and trying it inside of Excel.
I tried mapping to the SharePoint drive but Windows wont allow it. I thought perhaps I could just copy files to the URL after it was mapped.
I was also thinking of navigating to SP with Selenium but I'd rather do this through code or the API or something like that.
Does anyone have code available for copying a file into a specific area in SP?
If not, could you give me some guidance of how to get started?
There might be an easier way. If you are adding the file to a Sharepoint library, you can email it! You set up a unique email address in the library settings on SharePoint. Then you use Java mail (for which there are lots of examples online) to email the file to that address. The file then gets added to the Sharepoint library automatically.