Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old October 27th, 2003, 07:54 AM
DAREEL DAREEL is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 6 DAREEL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cool for all your python experts

Hello everyone, wondering if any one has any information regarding using python as a GUI tseting tool, Any ideas links or advice is much appreciated ,

also does anyone reccommend any books that i can purchase regarding this topic

Reply With Quote
  #2  
Old October 27th, 2003, 11:25 AM
telex4's Avatar
telex4 telex4 is offline
Wacky hack
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2001
Location: London, England
Posts: 512 telex4 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 25 m 29 sec
Reputation Power: 8
Python is ideal for testing GUIs. Have a look at wxWindows, Qt and Gtk. They're all very accomplished GUI toolkits that have Python bindings.

What you use depends slightly on your platform (Windows, GNU/Linux, Mac, etc.), what sort of GUIs you will be creating, what language you want to develop the real GUIs in, and a few other things.

Reply With Quote
  #3  
Old October 28th, 2003, 12:58 PM
DAREEL DAREEL is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 6 DAREEL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hey thanks for the advice it will help a lot.The thing is ive decided to undertake a final project which is implementing a GUI testing tool using python on a windows platform and im getting a bit worried because ive no real programming experience. I guess i want to

1) know from an experts point of view if its possible to learn this language from scratch in a short space of time
and
2) does anyone have any advice or help they can offer

Does any one have any ideas to the type of thing i can test as i really am new to this and as much as ive been searching for ideas i have found very little

thankyou all

Reply With Quote
  #4  
Old October 28th, 2003, 01:45 PM
telex4's Avatar
telex4 telex4 is offline
Wacky hack
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2001
Location: London, England
Posts: 512 telex4 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 25 m 29 sec
Reputation Power: 8
What do you mean by a short amount of time? If you worked full time on it, you would take a good week to learn Python and a GUI toolkit to the level necessary to make a reasonable GUI program. Even then, I find that it takes me months to get to grips with a new language, because I learn through experience, finding problems and their answers as I work with it, and over a period of time you become better and quicker at coding in a particular language.

Python is a very good choice to begin programming with, but you may find you haven't the time to meet your objective.

I'd suggest diving straight into Python first. "Learning Python", published by O'Reilly, is the best book to ease yourself into the language (and you may well find that difficult). After that, "Programming Python" is a good way to try out some more advanced things, or you can just set yourself mini projects, perhaps related to your GUI testing tool, to practice and learn Python. Then, when you're confident, tackle PyGTK or PyQt. PyGTK has better online documentation, whilst PyQt has a good book you can buy (the online version of the book has no diagrams and so is a bit confusing).

Reply With Quote
  #5  
Old October 28th, 2003, 01:58 PM
DAREEL DAREEL is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 6 DAREEL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
well its for a dissertation in my final year of a degree, im only 5 weeks into the year and i have a bit of time. I have a supervisor who is an expert in python so mayb he will be able to hold my hand a bit. Ive been looking at following the Extreme programming (xp) methodology when producig the tool. Would an example of a testing tool be a script that could allow switching between two applications by using a GUI interface, is this type of thing is what is meant by a GUI test tool??

Thanks again for taking time out to help me

Reply With Quote
  #6  
Old October 28th, 2003, 04:06 PM
telex4's Avatar
telex4 telex4 is offline
Wacky hack
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2001
Location: London, England
Posts: 512 telex4 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 25 m 29 sec
Reputation Power: 8
I don't know what is necessarily meant by a "GUI testing tool". It could also mean a tool that will automatically test a GUI for flaws by simulating all the different actions a user could take with the GUI, or a tool that runs some kinds of tests and simply has a graphical user interface, or something else.

Reply With Quote
  #7  
Old October 28th, 2003, 04:08 PM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,529 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 19 m 5 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Python is a great language for beginners and experianced programers alike, i'd defiantly recomend it to anyone .. another good place to start learning Python (without books) would be the tutorial/intros on python.org

http://www.python.org/doc/Intros.html

I don't think you'll have much touble getting up to speed with the python basics.. it really depends how much time you have!

Quote:
is this type of thing is what is meant by a GUI test tool?


I wouldn't know about this one i'm not much of a GUI guy myself but my GUI testing i presumed you ment writing the GUI in Python (because of simplicity) before moving it over to say C++.. maybe you could explain this for those a little unclear on what you mean i.e. me

Edit: wow, even our GUI type expert guy (telex) is a little unclear on what you ment

Mark.
__________________
programming language development: www.netytan.com Hula


Last edited by netytan : October 28th, 2003 at 04:11 PM.

Reply With Quote
  #8  
Old October 29th, 2003, 06:13 AM
DAREEL DAREEL is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 6 DAREEL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sorry i probably have failed to clarify this proprely, what i mean is using Python to automatically drive an application. Which means that instead of an human tester having to try out an application (such as a website or, or access front-end GUI design) Python could be run to generate a log of stimulated usage, thus providing test data automatically
data (a trace of user experience) automatically.

This is basically, what i need to be able to do, thanks for the links i am spending a lot of time learning the basics of python at the moment its just i really need to get on the right track then it will be a great weight off my shoulders

Reply With Quote
  #9  
Old October 29th, 2003, 09:33 AM
telex4's Avatar
telex4 telex4 is offline
Wacky hack
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2001
Location: London, England
Posts: 512 telex4 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 25 m 29 sec
Reputation Power: 8
After a little googling, I came across PyUnit, which should do exactly what you want. Look at these:

http://lcgapp.cern.ch/project/spi/C...ork-PyUnit.html
For general PyUnit info

http://www.opendocspublishing.com/pyqt/c5064.htm
For PyQt specific info, part of the book which you might want to buy or get your local/college library to get for the missing diagrams

Reply With Quote
  #10  
Old October 30th, 2003, 04:50 PM
DAREEL DAREEL is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 6 DAREEL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks

Thanks very much for the info you have given me, especially for taking time out to search for me.

I have been reading through and i am getting a clearer picture. At the moment its probably a bit advanced for me so im gunna spoend more time learnng the python language but i will use the information you have found for me.

It would be best if i could design a tester for some sort of e commerce site. This would test that an e-commerce GUI worked correctly.

perhaps to test that something on one version of a site works well on another version of a site.

Thanks again. You a life saver

Reply With Quote
  #11  
Old October 30th, 2003, 06:05 PM
telex4's Avatar
telex4 telex4 is offline
Wacky hack
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2001
Location: London, England
Posts: 512 telex4 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 25 m 29 sec
Reputation Power: 8
No problem. I'd be interested to hear how you get on once you get stuck into the more complicated things...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > for all your python experts


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by