File synchronization (between users and test cases)
Tjark Smalla
Hey all,
first: great job with ApiDog!
We rolled it out in our company and it offers us great benefit.
We have a file upload API which we would like to test with ApiDog. I selected a local file as form-data value and the request works well on my local apidog instance. However, when I run the API case in our pipelines it fails due to a missing file showing a path of my local file system.
Not sure yet if other users could even run the API case but they (and the pipeline) should be able to!
Tanjim
Thank you for your feedback and for using Apidog in your company! We're thrilled to hear that it's been beneficial for your team.
Regarding the issue with file uploads in your pipelines, you're absolutely right. The behavior you've encountered is due to the local file path being used as a form-data value, which may not be accessible in your pipeline.
To address this, we recommend considering hosting the files in your own server which is accessible to your pipeline. You can upload the file to a location that your pipeline can access. Then, in your API request, reference the file using your server URL.
By using this approach, you ensure that the file is accessible in which the test is executed. It provides a more portable and reliable solution for handling file uploads in your API tests.
If you have any further questions or need assistance with implementing this solution, please feel free to reach out. We're here to help you make the most of Apidog in your testing workflows. Thank you for your support!