I am doing a protractor test. I want to print the messages i wrote inside the test using Console.Log("Message") to JUnitXmlReporter(the XML file). OR .... is ther anyway to create a custom Output files using protractor. I want to print a Data i fetched from the test to a File.
How to Print Console.Log to JUnitXmlReporter using protractor?
1.1k views Asked by Nandagopal.G At
2
There are 2 answers
0
On
You can keep things simple. You dont need any custom reporters to write the console information to a file. Just use the terminal output redirecting operator.
protractor conf.js > consoleLog.log
To append
protractor conf.js >> consoleLog.log
Check here for more options
Have you tried:
https://github.com/larrymyers/jasmine-reporters
from their page:
you can also create a custom one:
http://jasmine.github.io/2.1/custom_reporter.html
hope it helps