I'm trying to create a script that tests an installer. For some reason it quits about half way through even though I can't see any reason for it to. It runs up until after it sees and runs the "install_path_page" handler. Once it runs that handler, it quits with "[info] Exit code: 0"
This is running on Windows Server 2012 Standard using 64-bit Java 1.7.0_25 and 64-bit Sikuli IDE 1.0.0 with the "SupplementalObserveOnlyOnce" update.
After posting this as a question, RaiMan mentioned that it will stop if it has handled all the .onAppear images. I tried adding a new .onAppear image that would never show up. The script still behaves exactly the same.
Here is what I have so far. I plan on having observe run forever eventually and have the last handler stop the observation:
I'm trying to create a script that tests an installer. For some reason it quits about half way through even though I can't see any reason for it to. It runs up until after it sees and runs the "install_path_page" handler. Once it runs that handler, it quits with "[info] Exit code: 0"
This is running on Windows Server 2012 Standard using 64-bit Java 1.7.0_25 and 64-bit Sikuli IDE 1.0.0 with the "SupplementalOb serveOnlyOnce" update.
After posting this as a question, RaiMan mentioned that it will stop if it has handled all the .onAppear images. I tried adding a new .onAppear image that would never show up. The script still behaves exactly the same.
Here is what I have so far. I plan on having observe run forever eventually and have the last handler stop the observation:
installer_path = 'C:\\Users\ \Administrator\ \Desktop\ \my_windows_ setup.exe' xxxxxxxxxx'
license_company = 'company'
license_name = 'name'
license_count = 1
license_key = 'xxxxxxxxxxxxxx
postgres_password = 'xxxxxxx'
def click_next(): "1373388849234. png")
click(
def intro_page(event):
click_next()
def eula_page(event): Pattern( "1373388972249. png").targetOff set(-65, 1))
click(
click_next()
def license_ page(event) : license_ company + Key.TAB) license_ name + Key.TAB) str(license_ count) + Key.TAB) license_ key)
type(
type(
type(
type(
click_next()
def install_ path_page( event):
click_next()
def features_ page(event) :
click_next()
def postgresql_ path_page( event):
click_next()
def postgresql_ password_ page(event) : postgres_ password + Key.TAB) postgres_ password)
type(
type(
click_next()
def web_ports_ page(event) :
click_next()
def ready_to_ install_ page(event) :
click_next()
def begin_watching(): installer. open() "1373389889359. png", FOREVER)
es_installer = App(installer_path)
es_
wait(
reg = Region( App('Setup' ).window( 0)) onAppear( "1373389041327. png", intro_page) onAppear( "1373389063530. png", eula_page) onAppear( "1373389092077. png", license_page) onAppear( "1373390507593. png", install_path_page) onAppear( "1373392574702. png", features_page) onAppear( "1373390778484. png", postgresql_ path_page) onAppear( "1373391295577. png", postgresql_ password_ page) onAppear( "1373391322733. png", web_ports_page) onAppear( "1373391349515. png", ready_to_ install_ page) observe( 600)
reg.
reg.
reg.
reg.
reg.
reg.
reg.
reg.
reg.
reg.
begin_watching()