Windows XP problems.

Esa Ilari Vuokko esa.vuokko at bonumit.com
Fri May 31 09:07:19 UTC 2002


 Hi!

  I've just started to play with qmtest and it looks great, but
as Windows user I have had some problems.  Sorry if these
are already discussed or are otherwise rtfm stuff.

  I don't wish to install some external shell so I used
cmd.exe undex Windows XP, which requires that script
file or shellcommand is given after /C and that filename
which is run has suffix .bat (or suffix from register).
qm.platform.get_shell_for_command added "/c" but
qm.platofmr_get_shell_for_script didn't.

Also, qm.platform.default_shell used environment
variable "COMPSPEC" while it was "COMSPEC" in my
machine.

After that it works as far as command excution is
concerned, but output doesn't match.  They look identical
in browser, so I guess it's end-of-line issue, browser or
OS specific.  Would it be a good idea to split by line
endings and compare results?

My system is Windows XP Pro, Internet Explorer 6,
Python 2.2.1 and QMTest 1.1.5

I might be blind, but online manual seem to be available
only from download page.


Regards,
Esa

PS.  FWIW, I made these changes, diff againt qm-1.1.5

diff -r -x *.pyc qm-old/common.py qm/common.py
766c766
< def open_temporary_file_fd():
---
> def open_temporary_file_fd(suffix):
777c777
<     file_name = tempfile.mktemp()
---
>     file_name = tempfile.mktemp(suffix)
792c792
< def open_temporary_file():
---
> def open_temporary_file(suffix = ""):
798c798
<     file_name, fd = open_temporary_file_fd()
---
>     file_name, fd = open_temporary_file_fd(suffix)
diff -r -x *.pyc qm-old/platform.py qm/platform.py
81c81,84
<         shell = default_shell[:]
---
>       if sys.platform == "win32":
>           shell = default_shell + ["/c"]
>       else:
>             shell = default_shell[:]
diff -r -x *.pyc qm-old/platform_win32.py qm/platform_win32.py
31c31
< default_shell = [os.environ.get("COMPSPEC", r"C:\WINNT\SYSTEM32\CMD.EXE")]
---
> default_shell = [os.environ.get("COMSPEC", r"C:\WINNT\SYSTEM32\CMD.EXE")]
diff -r -x *.pyc qm-old/test/classes/command.py qm/test/classes/command.py
593c593,598
<             ))
---
>             )),
>         qm.fields.TextField(
>            name="suffix",
>            title="File suffix",
>            description="""Suffix for the generated temporary file.
>            """)
609c614
<         self.__script_file_name, script_file = qm.open_temporary_file()
---
>         self.__script_file_name, script_file =
qm.open_temporary_file(self.suf
fix)







More information about the qmtest mailing list