Hi all,
Can you please tell me what does doing below Script in jython. this was procedure (Wait Step)used before scenario (whole package) step.
import socket
inhost = ''
try:
inport = int('<%=snpRef.getOption("InPort")%>')
except Exception, e:
raise 'Wait Stopped %s' % e
insocket = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
insocket.bind((inhost,inport))
inmessage, inaddr = insocket.recvfrom(1024)
insocket.close()
if inmessage == 'STOP':
raise 'Wait Stopped'
Thanks,
Sri.