How to include non C# files when running to a remote agent
Posted: Tue Dec 12, 2017 8:24 pm
I have an .xlsx file stored in my project and need to open and read it in a C# class in order to properly set my environment when running a test both locally and remotley. The excel file contains a list of commands that my class needs to read through and run on a host.
I've included the .xlsx file in my project folder and when I run it locally. I am able to refer to it as 'fileName.xlsx' and it finds and accesses it as expected. Unfortunately, when I run the same project via remote agent it is unable to find the file. Ideally I'd like a solution where I can pass in the file as a file location like I'm currently doing now rather than trying to load it in as a datasource.
I've included the .xlsx file in my project folder and when I run it locally. I am able to refer to it as 'fileName.xlsx' and it finds and accesses it as expected. Unfortunately, when I run the same project via remote agent it is unable to find the file. Ideally I'd like a solution where I can pass in the file as a file location like I'm currently doing now rather than trying to load it in as a datasource.