want to import data from python script and validat

2019-09-01 00:15发布

问题:

sorry this might be a long post .... jus need some help on doing this

i have 3 daemon threads in my python to do operation

main thread will invoke all this thread

thread - 1 to send data to com port it contains some method like

com.send()
com.receive()
com.close()

calculation to do calculation it contains some method like

calculation.add()
calculation.sub()
calculation.mul()

earlier method : main thread read a excel file and parse the object set the flag and put the object in respective queue and thread will process the work

EXCEL FILE DATA

cell-1 : com.receive()
cell-2 : calculation.add()
cell-3 : com.send()
cell-4 : com.close()

current requirement :

there should no excel file ..we might add up a another python file to do the same operation...why because it will help in performing some more validations if required which is not possible in excel file

new python file (testcase.py)

com.receive()
calculation.add()
com.send()
....
do some added scripting checks

....
com.close()