After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 344179 - closewindow function not working
closewindow function not working
Status: RESOLVED INVALID
Product: LDTP
Classification: Other
Component: ldtp
0.4.x
Other All
: Normal minor
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2006-06-07 16:52 UTC by srinivas
Modified: 2006-06-22 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description srinivas 2006-06-07 16:52:45 UTC
Please describe the problem:
the function closewindow (syntax: closewindow('<window_name>') is not working. It always returns 0, and does not close the window

Steps to reproduce:
1. start python,ldtp in separate terminals
2. start any application, for eg gedit
3. type closeapp('*gedit') in the python prompt (after importing from ldtp,ldtputils)


Actual results:
The function returns 0, and the window is not closed (the window does exist, this can be confirmed by guiexist('*gedit') which returns 1)

Expected results:
The function must return 1, and window must close

Does this happen every time?
Yes

Other information:
Comment 1 Nagappan Alagappan 2006-06-08 06:47:47 UTC
Srinivas: closeapp does not support regular expression. It in turn uses LTFX. But it should have return appropriate error message. We will look into it.
Comment 2 Prashanth Mohan 2006-06-08 07:08:49 UTC
Nags, in python/ldtputils.py the code for closewindow() seems to be empty, a simple return statement alone.

The same seems to be the case for pyldtp too.
Comment 3 Prashanth Mohan 2006-06-08 07:16:08 UTC
'close_win' seems to be a broken feature of ltfx, the following was a comment in the ltfx code:

	 case CLOSE_WIN:  //dont use, unmapping is not closing, and its 
	 {                //not clean
Comment 4 Prashanth Mohan 2006-06-22 18:40:40 UTC
BUG in ltfx and not in LDTP. closewindow() cann be implemented until fixed in ltfx. Closing the bug.