unabe to import /pyd file.

2017-12-15 Thread supswain
Hi,

I have created one library file "modified_python_automation_tcl.py"..Inside my 
library file I have set of codes as follows.

import sys
import time
from datetime import datetime
import re,sys,os,itertools,datetime,commands,logging,math,time,copy,inspect
from robot.api import logger
import unicodedata
sys.path.append('C:\Python27\Lib\lib-tk')
sys.path.append('C:\Python27\DLLs')
sys.path.append('C:\Python27\libs')
from Tkinter import Tcl
tcl = Tcl()
.
.
.
.
.
.

I am able to run the file from python IDLE.and able to source all kind of .py 
and .pyd file...But the issue is coming when trying through robo framework.


I am using robo-framework and have defined the 
modified_python_automation_tcl.py  file as the library file. and tryuing to 
excute my testcase..but getting the below error..


Someone please help me how to import .pyd files from robo framework




==
Acceptance.Tests
==
Acceptance.Tests.PCC
==
Acceptance.Tests.PCC.Automation 2.0
==
[ ERROR ] Error in file 
'C:\PCCAutomation\src\test\robotframework\acceptance\Tests\PCC\Automation_2.0\Spirent.txt':
 Importing test library 
'C:\Users\supriysw\Desktop\abcd\modified_python_automation_tcl.py' failed: 
ImportError: No module named _tkinter
Traceback (most recent call last):
  File "C:\Users\supriysw\Desktop\abcd\modified_python_automation_tcl.py", line 
15, in 
from Tkinter import Tcl
  File "C:\Python27\Lib\lib-tk\Tkinter.py", line 41, in 
import _tkinter # If this fails your Python may not be configured for Tk
PYTHONPATH:
  C:\PCCAutomation\target\libs\xlrd-0.7.1
  C:\PCCAutomation\target\libs\xlrd-0.7.1\xlrd
  C:\PCCAutomation\target\libs\xlutils-1.5.2
  C:\PCCAutomation\target\libs\xlutils-1.5.2\xlutils
  C:\PCCAutomation\target\libs\xlwt-0.7.4
  C:\PCCAutomation\target\libs\xlwt-0.7.4\xlwt
  C:\PCCAutomation\target\libs\main\com\nokia\epg\automation\ams\lib
  
C:\Users\supriysw\.m2\repository\org\robotframework\robotframework\2.8.7\robotframework-2.8.7.jar\Lib\robot\libraries
  
C:\Users\supriysw\.m2\repository\org\robotframework\robotframework\2.8.7\robotframework-2.8.7.jar\Lib
  C:\Users\supriysw\.m2\repository\org\robotframework\robotframework\2.8.7\Lib
  __classpath__
  __pyclasspath__/
  .
  C:\PCCAutomation
  C:\Python27\Lib\lib-tk
  C:\Python27\DLLs
  C:\Python27\libs
CLASSPATH:
  C:/apache-maven-3.3.9/boot/plexus-classworlds-2.5.2.jar
Acceptance.Tests.PCC.Automation 2.0.Spirent


-- 
https://mail.python.org/mailman/listinfo/python-list


want to export some of the packets from a big pacp file to another file.

2018-04-05 Thread supswain
Hi,

I am using dpkt python package to parse .pcap file and I am able to do 
successfully.

My requirement is to filter some of the traffic from the big .pcap file and to 
export the result to another file.

I don't know how to do this.

PFB the setup details I am using.
###
OS-windows 7 32 bit
python->2.7.6 32 bit


Highly appreciating your effort to help me.


Thanks,
Supriya
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: want to export some of the packets from a big pacp file to another file.

2018-04-07 Thread supswain
Hi Anders,

Actually in my setup I am capturing packets from Spirent using wire-shark and 
need to parse those captured files using python code.

Sometimes captured .pcap file is too big so parsing each packet one by one is 
being too time consuming during TC automation.

So instead of that I was searching for a python library package which will help 
me to export the required packets(IP,TCP,UDP,Ethernet frame) from te big 
captured file and store in another .pcap file.

Later I can use dpkt package to parse the content of the smaller captured file.





-- 
https://mail.python.org/mailman/listinfo/python-list


how to create auto generated mail from robo framework upon execution completion of TCs

2018-04-18 Thread supswain
Hi,

I am having below setup 

robofraemwork setup info -> Robot Framework 2.8.1 32 bit
python->Python 2.7.6 32 bit
OS->windows 7 64 bit



I am running test cases from Robo  framework  and want to create any library 
proc through which I can get auto generated mail from robo-framework  regarding 
execution of the Tcs  upon completion of execution.


I want the mail message body to be as below

1->name of the TC
2->execution status
3->path to find execution log for the TC


Could anyone please help me on this.

Thanks,
Supriya
-- 
https://mail.python.org/mailman/listinfo/python-list