How to convert xml files into excel through protractor.Any idea?

271 Views Asked by At

I want the output of my protractor test reports in excel, right now its generating in HTML format. They are also generating in XML format. Any idea will be helpful and will be appreciated. Thank you.

1

There are 1 best solutions below

3
Andrew Eisenberg On

What you are looking for is a karma reporter that will report the tests in an excel format and send an email with the results. Unfortunately, none exist, so you will have to create one yourself.

Fortunately, creating a karma reporter is easy, there exists many libraries that can generate excel files, and sending an email is easy with the nodemailer package.

First, creating a karma reporter, you can use the karma-growl-reporter as an example.

Second, the excel4node plugin seems to be fairly well maintained and feature-rich (I have not used it myself, so I can't exactly vouch for it).

Third, I already mentioned nodemailer, which can send an email with the results.

With these three pieces, it should be fairly straightforward to implement the reporter, but feel free to comment if you have any questions.