cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
680
Views
0
Helpful
2
Replies

pyATS > Using pyATS and Genie for Automated Testing

maik.hahn
Level 1
Level 1

Hi all,

 

yesterday I did the mentioned LAB and I was struggeling with the parsers part - unfortunately this was the most important one at the moment

 

(pyats) [developer@devbox genie_learning_lab]$ robot genie_parsers.robot
==============================================================================
Genie Parsers
==============================================================================
connect to UUT device                                                 | PASS |
------------------------------------------------------------------------------
execute and parse 'show platform' on UUT                              | FAIL |
Could not find parser for 'genie.libs.parser.show_platform.ShowModule'
------------------------------------------------------------------------------
Genie Parsers                                                         | FAIL |
2 critical tests, 1 passed, 1 failed
2 tests total, 1 passed, 1 failed
==============================================================================
Output:  /home/developer/genie_learning_lab/output.xml
Log:     /home/developer/genie_learning_lab/log.html
Report:  /home/developer/genie_learning_lab/report.html
(pyats) [developer@devbox genie_learning_lab]$

 

There are two parser in this scenario - I removed the first one but the second didn't work as well

Any idea or working example ?

 

Thanks

Maik

 

2 Replies 2

khernandezruiz
Level 1
Level 1

Hi Maik,

 

I had the same issue, but I did a workaround. Replace the following sentences in your genie_parsers.robot file. But... I would like to know if exist that particular way to call genie parse command with direct access to the library.

 

execute and parse 'show bgp process vrf all' on UUT
# parse "genie.libs.parser.show_bgp.ShowBgpProcessVrfAll" on device "uut"
parse "show bgp process vrf all" on device "uut"
...
execute and parse 'show platform' on UUT
# parse "genie.libs.parser.show_platform.ShowModule" on device "uut"
parse "show module" on device "uut"

Hi,

 

it's really a long time ago - which lab was this ? I have to get again familiar with this topic ...

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: