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 2016


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

[QF-Test] How to SET an environment variable in QF-Test procedure that is visible to the SUT?


  • Subject: [QF-Test] How to SET an environment variable in QF-Test procedure that is visible to the SUT?
  • From: Matthias Scholz <scholz@?.com>
  • Date: Tue, 11 Oct 2016 08:32:06 +0200

Hallo,

We have an RCP Client that reads some environment variables on startup
(using System.getProperty()).
When running the client outside of QF-Test and setting the variables as
JVM options, everything works fine.

When testing it with QF-Test, we'd also need to set some of these
variables before starting the client.
We tried setting them using

rc.setProperty('env',<property name>, <property value>)

in a QF-Test server script before starting the SUT client.

However, when the client reads these properties then, they are always
unset (i.e. their value is null).  :(

So what is the correct way to achieve that in QF-Test?

Best,
  MP


Videos Downloads Documentation Buy Free Trial