cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
501
Views
0
Helpful
3
Replies

pyATS HTML log viewer

l00pback
Level 1
Level 1

pyATS has HTML log viewer which spins local web server when using the command "pyats logs view"

Seems the test data comes from a .zip file which gets created after tests has been executed.

How can that .zip file be converted to HTML for local viewing in a laptop browser? It can be seen, that .zip file has couple .xml and test data files but no HTML.

3 Replies 3

Been a little while, but from memory the zip file contains the input data, and pyats log view is the application that processes that data and renders out a graphical html output in real time, this is why you cant just unzip it and open a static html file.

Is that what you are asking, how this (pyats) does it, not how to do this?

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

l00pback
Level 1
Level 1

I just want to grab that .zip file, put it on my laptop, convert it (this is the unknown i.e. how to convert it) to html and open the html in my local laptop browser.

@l00pback understand, sadly a simple one step conversion command doesn't exist is due to the structure of the pyats log archive. You could copy the file to your machine, if you have pyats running then run the command "pyats logs view /path/to/your/log/file.zip", this will give you the option to open a localhost browser.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io