Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Jython Code in Procedure (Wait)

1009273May 17 2017 — edited Jul 12 2017

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.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 9 2017
Added on May 17 2017
8 comments
567 views