I have an export to excel feature in our application.
For which I have one scenario:
- Perform export to excel
- Validate API response status and exported excel content.
With Postman, I am able to save exported excel in .xlsx format with "Send and Download" option on which later I am validating content (Column Headers and row values) manually.
Is there any way to automate this scenario end to end through API automation?
Currently, I am doing get operation (Karate framework) which is responding me these headers in response:
Content-Type →application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Accept-Ranges →bytes
Body: Stream objects which are not human readable.
Status: 200 ok
If e2e automation not possible/feasible, what should be the acceptance criteria for automation in this case than?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…