Problem launching windows command shell from a Pywinauto test
2008-07-16 21:34:22 GMT
I’m trying to start and use the windows command shell in a Pywinauto test. I was thinking that I could just use Pywinauto to manipulate the cmd.exe process the same way I do it with Notepad. But it doesn’t seem to be doing anything at all. I searched online and didn’t see anything about why a cmd shell application would be any different than any other kind of application.
So, what works with Notepad is:
Here’s what I tried with cmd:
With Notepad, the Notepad app just starts right up. When I try it with cmd, no apps start at all. No errors, just no command window. I tried it from a test method inside Wing running in debug mode (the way I normally run my tests during the development phase). I also tried it from a python shell window inside Wing. Here’s the Python shell contents:
Python 2.3.2 (#49, Oct 2 2003, 20:02:00) [MSC v.1200 32 bit (Intel)]
Type "help", "copyright", "credits" or "license" for more information.
>>> from pywinauto import application
>>> app = application.Application()
<pywinauto.application.Application object at 0x00BCD310>
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\local_pwa\HEAD\trigbuildertest><pywinauto.application.Application object at 0x00BCD310>
Note that Notepad started, but I didn’t see any cmd shells start. Though it does look like it tried to start a cmd shell. So something’s going on there. I don’t know what it could be.
Any thoughts or help would be appreciated. Maybe there is another way that people use out there that I’m not thinking of?
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Pywinauto-users mailing list Pywinauto-users@... https://lists.sourceforge.net/lists/listinfo/pywinauto-users