Hi Dave,
Thanks for your response! I tried using the binary option. I think mozmill is looking for an exe. However, we do not have an exe file in our application. We have the application.ini and a .jnlp file (that we use for launching the app).
Here is what I tried unsuccessfully:
Initially, just using the application directory and got access denied.
E:\mozmill\mozmill-1.5.19\test>mozmill --test=testxul.js --show-errors --show-all --timeout=120 --binary="C:\Users\yyy\AppData\Roaming\xyz-dev"
Traceback (most recent call last):
File "C:\Python27\Scripts\mozmill-script.py", line 8, in <module>
load_entry_point('mozmill==1.5.19', 'console_scripts', 'mozmill')()
File "C:\Python27\lib\site-packages\mozmill-1.5.19-py2.7.egg\mozmill\__init__.
py", line 846, in cli
CLI().run()
File "C:\Python27\lib\site-packages\mozmill-1.5.19-py2.7.egg\mozmill\__init__.
py", line 785, in run
self.mozmill.start(runner=runner, profile=runner.profile)
File "C:\Python27\lib\site-packages\mozmill-1.5.19-py2.7.egg\mozmill\__init__.
py", line 228, in start
self.runner.start()
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\__ini
t__.py", line 508, in start
self.process_handler = run_command(self.command+self.cmdargs, self.env, **se
lf.kp_kwargs)
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\__ini
t__.py", line 92, in run_command
return killableprocess.Popen(cmd, env=env, **killable_kwargs)
File "C:\Python27\lib\subprocess.py", line 679, in __init__
errread, errwrite)
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\killa
bleprocess.py", line 152, in _execute_child
cwd, startupinfo)
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\winpr
ocess.py", line 178, in ErrCheckCreateProcess
ErrCheckBool(result, func, args)
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\winpr
ocess.py", line 55, in ErrCheckBool
raise WinError()
WindowsError: [Error 5] Access is denied.
Then I tried using the jnlp file that I use to launch the standalone application as the binary and that did not work either.
E:\mozmill\mozmill-1.5.19\test>mozmill --test=testxul.js --show-errors --show-al
l --timeout=120 --binary="C:\Users\yyy\AppData\Roaming\xyz-dev\xyz.j
nlp"
Traceback (most recent call last):
File "C:\Python27\Scripts\mozmill-script.py", line 8, in <module>
load_entry_point('mozmill==1.5.19', 'console_scripts', 'mozmill')()
File "C:\Python27\lib\site-packages\mozmill-1.5.19-py2.7.egg\mozmill\__init__.
py", line 846, in cli
CLI().run()
File "C:\Python27\lib\site-packages\mozmill-1.5.19-py2.7.egg\mozmill\__init__.
py", line 785, in run
self.mozmill.start(runner=runner, profile=runner.profile)
File "C:\Python27\lib\site-packages\mozmill-1.5.19-py2.7.egg\mozmill\__init__.
py", line 228, in start
self.runner.start()
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\__ini
t__.py", line 508, in start
self.process_handler = run_command(self.command+self.cmdargs, self.env, **se
lf.kp_kwargs)
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\__ini
t__.py", line 92, in run_command
return killableprocess.Popen(cmd, env=env, **killable_kwargs)
File "C:\Python27\lib\subprocess.py", line 679, in __init__
errread, errwrite)
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\killa
bleprocess.py", line 152, in _execute_child
cwd, startupinfo)
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\winpr
ocess.py", line 178, in ErrCheckCreateProcess
ErrCheckBool(result, func, args)
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\winpr
ocess.py", line 55, in ErrCheckBool
raise WinError()
WindowsError: [Error 193] <no description>
Then passed the application.ini file hoping that mozmill would recognize that:
E:\mozmill\mozmill-1.5.19\test>mozmill --test=testxul.js --show-errors --show-al
l --timeout=120 --binary="C:\Users\yyy\AppData\Roaming\xyz-dev\application.i
ni"
Traceback (most recent call last):
File "C:\Python27\Scripts\mozmill-script.py", line 8, in <module>
load_entry_point('mozmill==1.5.19', 'console_scripts', 'mozmill')()
File "C:\Python27\lib\site-packages\mozmill-1.5.19-py2.7.egg\mozmill\__init__.
py", line 846, in cli
CLI().run()
File "C:\Python27\lib\site-packages\mozmill-1.5.19-py2.7.egg\mozmill\__init__.
py", line 785, in run
self.mozmill.start(runner=runner, profile=runner.profile)
File "C:\Python27\lib\site-packages\mozmill-1.5.19-py2.7.egg\mozmill\__init__.
py", line 228, in start
self.runner.start()
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\__ini
t__.py", line 508, in start
self.process_handler = run_command(self.command+self.cmdargs, self.env, **se
lf.kp_kwargs)
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\__ini
t__.py", line 92, in run_command
return killableprocess.Popen(cmd, env=env, **killable_kwargs)
File "C:\Python27\lib\subprocess.py", line 679, in __init__
errread, errwrite)
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\killa
bleprocess.py", line 152, in _execute_child
cwd, startupinfo)
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\winpr
ocess.py", line 178, in ErrCheckCreateProcess
ErrCheckBool(result, func, args)
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\winpr
ocess.py", line 55, in ErrCheckBool
raise WinError()
WindowsError: [Error 193] <no description>
I also tried using launching the xul application using a command to launch the application within binary:
E:\mozmill\mozmill-1.5.19\test>mozmill --test=testxul.js --show-all --timeout=12
0 --binary="firefox.exe -app C:\Users\yyy\AppData\Roaming\xyz-dev\applic
ation.ini"
Traceback (most recent call last):
File "C:\Python27\Scripts\mozmill-script.py", line 8, in <module>
load_entry_point('mozmill==1.5.19', 'console_scripts', 'mozmill')()
File "C:\Python27\lib\site-packages\mozmill-1.5.19-py2.7.egg\mozmill\__init__.
py", line 846, in cli
CLI().run()
File "C:\Python27\lib\site-packages\mozmill-1.5.19-py2.7.egg\mozmill\__init__.
py", line 776, in run
runner = self.create_runner()
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\__ini
t__.py", line 631, in create_runner
runner = self.get_runner(binary=self.options.binary)
File "C:\Python27\lib\site-packages\jsbridge-2.4.15-py2.7.egg\jsbridge\__init_
_.py", line 120, in get_runner
runner = super(CLI, self).get_runner(*args, **kwargs)
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\__ini
t__.py", line 641, in get_runner
return self.runner_class(binary, profile)
File "C:\Python27\lib\site-packages\mozrunner-2.5.13-py2.7.egg\mozrunner\__ini
t__.py", line 394, in __init__
raise Exception("Binary path does not exist "+self.binary)
Exception: Binary path does not exist firefox.exe -app C:\Users\yyy\AppData\
Roaming\xyz-dev\application.ini
Exception AttributeError: "'FirefoxRunner' object has no attribute 'profile'" in
<bound method FirefoxRunner.cleanup of <mozrunner.FirefoxRunner object at 0x026
781F0>> ignored
Is there a way to launch the application.ini file from mozmill?
Thank you in advance!
RGB