Wireshark-dev: Re: [Wireshark-dev] WiresharkXML.py
From: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
Date: Wed, 8 Oct 2014 19:03:44 +0200
Hi Christina,

If i remenber the python binding for Wireshark is obsolete...
You need to use tshark or other script..

Regards

On Wed, Oct 1, 2014 at 8:40 AM, Christina Obermaier
<christina.obermaier@xxxxxxxx> wrote:
> Hi,
> I'm trying to build a Jenkins job which tests if my own dissector is working
> well.
> Therefore i decided to use tshark and safe the results in a pdml file, which
> i want to check with a python script.
>
> At the moment i only want to get the name and the value of the single
> attributes in my pdml file.
>
> import WiresharkXML
>
> def my_callback(packet):
>     print (packet.get_name())
>     print (packet.get_value())
>     print ('test')
>
> fh = open('pdml')
> WiresharkXML.parse_fh(fh, my_callback)
>
> But the fist two print statements only produce an empty line.
> The 'test' word is written for each packet in my pdml file.
>
> I hope you can help me
> Greetings
> Christina
>
> ___________________________________________________________________________
> Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
> Archives:    http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>              mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe