2019 up to now | 2018 2017  |  2016  | 2015 | 2014 | 2013 | 2012

Mailing List - Entries of 2012

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

[QF-Test] QF-Test and NSIS-Installer

  • Subject: [QF-Test] QF-Test and NSIS-Installer
  • From: Stefan.Matthaei@?.de
  • Date: Wed, 18 Jul 2012 10:48:47 +0200

Hi everyone,

i am trying to use QF-Test for the automated installation. i am using nsis installer.
because the recording does not work with the nsis windows i am fetching the windows with the autowin-class.
i have to know what windo is opened, because the click depends on the window.
unfortunatly all windows have the same title, so i have tried the call autowin.getText. but this method also gives back only the title.
is there a other possibilty to fetch the text of the window to determine which window is opened?
check out my jython skript:

def getWindow(name):
    window = autowin.findWindow(name, regexp=True)    
    return window

if autowin.waitForWindow(5000,"Installer Language",True):
    window = getWindow("Installer Language")    
    strg = autowin.getWindowText(window) // only returns Installer Language, even a commentar in the getWindowsText method says sth. else ("does not only work for titles")
    rc.logMessage("string is " + strg)
    autowin.keybd_event(autowin.VK_RETURN, 0)

best regards

Stefan Matthaei

Die uebermittelten Informationen sind ausschliesslich fuer den oben genannten Adressaten bestimmt. Jede Verwendung, Veroeffentlichung, Vervielfaeltigung ist untersagt. Falls diese Mitteilung bei Ihnen irrtuemlich eingegangen ist, geben Sie uns bitte sofort Bescheid.

The information contained in these documents is intended for the exclusive use of the addressee designated above. Each disclosure, reproduction, distribution is strictly prohibited. If you have received this transmission in error please contact us immediately.

Hydrometer Electronic GmbH
Donaustrasse 120
90451 Nuernberg
Sitz der GmbH: Nuernberg, Registergericht: Amtsgericht Nuernberg HRB 21644, Geschaeftsfuehrer: Betriebswirt (VWA) Klaus Pelikan, Dipl.-Ing. (FH) Marc Sebald