Logo QF-Test

Finding valuable answers
in the Mailing List Archive.


Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

2017 up to now  | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2012

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

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

  • Subject: Re: [QF-Test] Passing values between Jython server script & QF-Test procedure
  • From: Martin Moser <martin.moser@?.de>
  • Date: Wed, 23 May 2012 16:10:35 +0200

Hello Sumathi,

about 1)
If "myurl" comes from the command line you can access this via accessing QF-Test variable.

in your case this would look like this:

myurl = rc.lookup("myurl")

about 2)
Now you need to set the variables "port" and "host" (which are script variables at the moment) to the QF-Test level via:

rc.setLocal("hostName", hostName)
rc.setLocal("PortNo", PortNo)

Insert those calls at the end of your script.

If you want to have those variables globally available you can call rc.setGlobal instead of rc.setLocal.

Best Regards,

--On Dienstag, Mai 22, 2012 09:38:54 +0200 "Jayakumar, Sumathi" <Sumathi.Jayakumar@?.com> wrote:


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


var1= myurl[:-5]




print hostName




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,


Martin Moser                           martin.moser@?.de
Quality First Software GmbH            http://www.qfs.de
Tulpenstr. 41                          Tel: +49 8171 38648-14
DE-82538 Geretsried                    Fax: +49 8171 38648-16
GF: Gregor Schmid, Karlheinz Kellerer  HRB München 14083

Videos Downloads Documentation Buy Free Trial