2017 bis heute 2016 2015 2014 | 2013 | 2012 | 2011 2010 2009 | 2008 | 2007

(ältere Archiveinträge vor 2007 nicht dargestellt, aber in der Suche enthalten)

Mailingliste - Einträge 2012


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[QF-Test] Passing values between Jython server script & QF-Test procedure


  • Subject: [QF-Test] Passing values between Jython server script & QF-Test procedure
  • From: "Jayakumar, Sumathi" <Sumathi.Jayakumar@?.com>
  • Date: Tue, 22 May 2012 09:38:54 +0200

Hi,

 

I have a procedure that has a Jython server script that does string manipulation and splits a given URL to Host and Port.

 

Second procedure needs to receive the HostName and Port name and make connections based on these.

 

 

global hostName

global PortNo

 

myurl='https://mymachine:5555'

var1= myurl[:-5]

l1=len(var1)

i=var1.find('//')+2

hostName=var1[i:l1]

print hostName                               

 

s1=myurl.find(':5')

l2=myurl.find(':5')+1

l=len(myurl)

PortNo = myurl[l2:l]

print PortNo

 

 

My concerns here are:

  1. The value of myurl will be passed from command line. So how do I adopt it in the Server script?
  2. The second procedure which actually performs the connection in eclipse – how do I pass the variables (hostname and PortNo) to this?

 

 

Please help me find a lead here.

 

 

 

Best Regards,

Sumathi