The mailing list has been closed since July 2022, but continues to serve as an archive of information about QF-Test.
If you want to stay informed about news about QF-Test, you can simply subscribe to our newsletter:
Subscribe to Newsletter
[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
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
|
1. Functional cookies
We use functional cookies to ensure the basic functionality of the website.
2. Performance and statistic cookies
We use Matomo for analyzing and optimizing our website. Cookies permit an anonymous collection of information that help us offering you a clear and user-friendly visit of our web pages.
This cookie contains a unique, pseudonymized visitor ID internal to Matomo for recognizing returning visitors.
This cookie is used to track from which website the anonymized user proceeded to our website.
The Matomo session cookie is used to track the visitor's page requests during the session.
is created and should be then directly deleted (used to check whether the visitor’s browser supports cookies).
short lived cookies used to temporarily store data for the visit.
short lived cookies used to temporarily store data for the visit.