Forum Discussion

Kate's avatar
Kate
Contributor
7 years ago

Unable to get packet layer with TestComplete - but able with other code editors.

Currently I work on analyzing captured packets in terms of getting a domain name the packet goes to.

I use python's scapy library and its .haslayer attribute.

My piece of code:

if pkt.haslayer(DNS):
    Log.Message(str(pkt[DNSQR].qname))

works fine outside of TestComplete - i can see all the domain names.

But Test Complete does not see this DNS layer and it does not retrieve domain name. No errors. The code works, but it consider all the packets as there is no dns layer in there.

 

Any suggestions?

No RepliesBe the first to reply