List Icon
Archive de la liste de diffusion

La liste de diffusion est fermée depuis juillet 2022, mais sert toujours d'archive d'informations sur QF-Test.
Cependant, si vous souhaitez rester informé des nouveautés concernant QF-Test, vous pouvez simplement vous
abonner à la newsletter 

our obtenir des informations à jour sur chaque version - y compris les versions mineures - vous pouvez
nous pouvez vous abonner au flux RSS ou nous suivre sur les médias sociaux.
Alternativement, QF-Test fournit également des informations sur la version elle-même.

Une autre source d'information est notre blog, qui contient des articles actuels sur des thèmes généraux, sur l'entreprise QFS et aussi divers "how-tos", veuillez vous
ABonner au Blog


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

Re: [QF-Test] Using the Component Object Model Interface (COM) of Windows Applications for automation from QFS


  • Subject: Re: [QF-Test] Using the Component Object Model Interface (COM) of Windows Applications for automation from QFS
  • From: "Robert Lahmer, QFS support" <support@?.de>
  • Date: Thu, 23 May 2013 21:53:40 +0200


Hello Christian,

yes, you can access COM servers from a QF-Test 'Server script' node. To
this end, you need a bridge from Java to COM. Probably the easiest way is
using the Groovy Scriptom module, cf.

 <http://groovy.codehaus.org/COM+Scripting>.

To make it work with QF-Test, download the scriptom zip archive and copy
the scriptom-xxx.jar file into the

 .../qftest/plugin/qftest

folder in your QF-Test installation. The corresponding scriptom-xxx.dll (32
or 64 bit) must reside somewhere on the PATH (e.g. c:\windows\system32).
Now you can for example create an instance of the "WScript.Shell" COM
object and invoke its methods in a Groovy 'Server script':


   import org.codehaus.groovy.scriptom.*

   Scriptom.inApartment
   {
       def wshell = new ActiveXObject('WScript.Shell')
       wshell.Popup('Scriptom is groovy')
   }


By the way, you could also do your COM automation outside QF-Test, for
example in a VB script which can be executed via

 +Execute shell command

Please refer to

 <http://www.qfs.de/archive/qftest-list/2008/msg00106.html>

for further information.


Best regards,
   Robert



--On Donnerstag, Mai 23, 2013 06:05:09 +0000 "Weichenberger, Christian
(I/EE-45)" <Christian.Weichenberger@?.de> wrote:

Hello,

I need to test an JAVA Application on Windows. Involved in the test is a
other Windows application. This application has a COM-Server and can be
automated via COM.

Question: Is it possible with QFS, for example from the Jython Script to
access the COM-Interface of windows applications?
If so, can someone provide an example?


Mit freundlichen Gruessen

Christian Weichenberger
Testmanagement Diagnosetools

AUDI AG
I/EE-45
85045 Ingolstadt
Tel. +49-841-89-54847
mailto:christian.weichenberger@?.de
www.audi.com

Sitz/Domicile: Ingolstadt
Registergericht/Court of Registry: Amtsgericht Ingolstadt
HRB Nr./Commercial Register No.: 1
Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Martin
Winterkorn Vorstand/Board of Management: Rupert Stadler
(Vorsitzender/Chairman), Luca de Meo, Frank Dreves, Wolfgang Dürheimer,
Bernd Martens, Thomas Sigi, Axel Strotbek

Wichtiger Hinweis: Die vorgenannten Angaben werden jeder E-Mail
automatisch hinzugefügt und lassen keine Rückschlüsse auf den
Rechtscharakter der E-Mail zu. Important Notice: The above information is
automatically added to this e-mail. This addition does not constitute a
representation that the content of this e-mail is legally relevant and/or
is intended to be legally binding upon AUDI AG.






--
Get the most out of QF-Test - through training directly from the authors
* via webinar       http://www.qfs.de/en/info/OnlineTraining_QF-Test.pdf
* here at QFS             http://www.qfs.de/en/info/Training_QF-Test.pdf
------------------------------------------------------------------------
QFS Support - Robert Lahmer
Quality First Software GmbH                http://www.qfs.de
Tulpenstr. 41                         Tel: +49 8171 38648-20
DE-82538 Geretsried                   Fax: +49 8171 38648-16
GF: Gregor Schmid, Karlheinz Kellerer     HRB München 140833