Re: [QF-Test] SUT running from Eclipse itself

Subject: Re: [QF-Test] SUT running from Eclipse itself

From: "Florian Syska, QFS Support" <support@?.de>

Date: Thu, 28 Aug 2014 14:47:05 +0200

Hello Daniel,
make sure to work with an instrumented SWT jar/plugin as described here:
http://www.qfs.de/qftest/manual/en/tech_swt_instrumentation.html#sec_swt_instrumentation
With eclipse you have to instrument the swt.jar of the used target
platform. By default the swt.jar of eclipse itself.
e.g. Your eclipse from c:\programs\eclipse\eclipse.exe
Start QF-Test and call the procedure
qfs.swt.instrument.setup(c:\programs\eclipse) variable
"sutdir=c:\programs\eclipse"
Now you should be able to connect the SUT. Run the eclipse run
configuration of your java application with the described environment
variables.
Best regards,
Florian Syska
Am 28.08.2014 00:06, schrieb Tixier, Daniel G:

Thank you Florian, this is very helpful! It was able to connect. However, it only connected for engine awt0. My SUT also contains SWT components. How can I make this work?
Daniel
-----Original Message-----
From: Florian Syska, QFS Support [mailto:support@?.de]
Sent: Monday, August 25, 2014 9:06 AM
To: Tixier, Daniel G; qftest-list@?.de
Subject: Re: [QF-Test] SUT running from Eclipse itself
Hello Daniel,
yes, but the connector requires some dedicated QF-Test variables to be able to connect to your SUT. If you set those variables in the eclipse run configurations of your application before the actual launch of your SUT manually, you could also connect to any running Java application.
Those environment variables look like this:
QFTEST_HOME=c:\programs\qftest (or your installation folder)
QFTEST_VERSIONDIR=c:\programs\qftest\qftest-4.0.0 (or your version folder) QFTEST_SERVERNAME=qftest QFTEST_CLIENTNAME=client
QFTEST_CLIENTID=0
QFTEST_SERVERHOST=localhost:3543
SWT_DISPLAY_CREATION_HOOKS=de.qfs.apps.qftest.start.Connector
JAVA_TOOL_OPTIONS=-javaagent:c:\programs\qftest\qftest-4.0.0\misc\qfconnect.jar
Constraints:
1.) You need to launch QF-Test before your SUT.
2.) Run the eclipse run configuration of your java application with the environment variables listed above.
Best regards,
Florian Syska
Am 21.08.2014 23:49, schrieb Tixier, Daniel G:

Hello,
I was wondering if there is a way to use QF-Test on development code
in Eclipse, rather than pointing it at an executable. Does such
functionality exist?
Thank you,
Daniel
_______________________________________________
qftest-list mailing list
qftest-list@?.de
http://www.qfs.de/mailman/listinfo/qftest-list