You Are Here:

Community: Developer Discussion Boards

Reply « Previous Thread | Next Thread »

#1 Old Question Can I develop Python scripts(S60 3rd ed) for automated testing of an application? - 2007-11-21, 08:08

Join Date: Nov 2007
Posts: 2
jayant.sahasrabudhe
Offline
Registered User
Hi
I'm new to Python. Can I simulate automated run for testing an E-series application using Python scripts for S60 3rd edition?
Reply With Quote

#2 Old Re: Can I develop Python scripts(S60 3rd ed) for automated testing of an application? - 2007-11-21, 08:39

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Hello ,

Yes it's possible to use extension module keypress and appswitch
for simulating keypress in the tested application and appswitch for switching back and forward from Python to your tested application.
Search in forum after words keypress and appswith for discovering examples.

Attention : keypress needs SwEvent capability (is not included in selfsigned) so you need to use unsigned Python

1) Go to SymbianSigned and ask for a developer certificate (it's free !)
2) Download Python 3rd and sign it with your dev cert.
3) Download PythonScriptShell unsigned and sign it with dev cert.
4) Download keypress 3rd unsigned and sign it.
5) Download appswitch 3rd unsigned and sign it.
6) install all signed file in your device

BR

Cyke64

Cyke64


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#3 Old Re: Can I develop Python scripts(S60 3rd ed) for automated testing of an application? - 2009-08-12, 08:41

Join Date: Nov 2008
Posts: 11
mukeshm
Offline
Registered User
hi....i am also new to python for s60. I want to simulate keypress for dialling a phone no on the emulator (ie... if i run the python script for the same, i should see the keypress happening on the emulator). Could you please tell me how to start with this. I have downloaded the S60_5th_Edition_SDK_v1.0 and PythonForS60_1_4_4_SDK_3rdEd on to my PC. I am able to see the 'Python' in the 'Applications' menu item and also able to run small basic example scripts. Could you please tell the correct steps from now on about how to proceed. ( I want the same to be done only on emulator). Please reply ..........
Reply With Quote

#4 Old Re: Can I develop Python scripts(S60 3rd ed) for automated testing of an application? - 2009-08-12, 08:50

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by mukeshm View Post
hi....i am also new to python for s60. I want to simulate keypress for dialling a phone no on the emulator (ie... if i run the python script for the same, i should see the keypress happening on the emulator). Could you please tell me how to start with this. I have downloaded the S60_5th_Edition_SDK_v1.0 and PythonForS60_1_4_4_SDK_3rdEd on to my PC. I am able to see the 'Python' in the 'Applications' menu item and also able to run small basic example scripts. Could you please tell the correct steps from now on about how to proceed. ( I want the same to be done only on emulator). Please reply ..........
hello mukeshm

welcome to forum nokia Python Dibo .

First i will tell you that the keypress extension has been compiled only for the actual devices, so if you need to use the extension module you need to compile that again for the SDKs. For that you need to be bit familiar with carbide ide. If you want to try than this article will really help you.

PS: Its better to start a new thread for a new question.

Regards


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#5 Old Re: Can I develop Python scripts(S60 3rd ed) for automated testing of an application? - 2009-08-12, 09:40

Join Date: Nov 2008
Posts: 11
mukeshm
Offline
Registered User
hi.....thanks for your reply.
i am somewhat familiar with carbide IDE and i saw the example given in your reply. Now, I need to understand how i can call that project 'none' using python script. Could you please guide me through the steps to do the same.

Thanks,
mukeshm
Reply With Quote

#6 Old Re: Can I develop Python scripts(S60 3rd ed) for automated testing of an application? - 2009-08-12, 10:45

Join Date: Nov 2008
Posts: 11
mukeshm
Offline
Registered User
hi......could you please tell me the different modules and files that i need to download inorder to simulate the keypress..........please help..

Thanks,
Mukesh
Reply With Quote

#7 Old Re: Can I develop Python scripts(S60 3rd ed) for automated testing of an application? - 2009-08-12, 12:52

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by mukeshm View Post
hi......could you please tell me the different modules and files that i need to download inorder to simulate the keypress..........please help..

Thanks,
Mukesh
hello mukeshm

they are lots of resources you about how to stimulate a keypress.

1. wiki article about handling keypress.

2. Thread related to keypress module where you can get source code of the module using which you can compile it for the SDKs.

PS: AFAIK keypress module only works in PyS60 1.4.x versions, is yet not ported to the PyS60 1.9.x versions please make a check of that.

Regards
gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#8 Old Re: Can I develop Python scripts(S60 3rd ed) for automated testing of an application? - 2009-08-12, 14:32

Join Date: Nov 2008
Posts: 11
mukeshm
Offline
Registered User
hi gaba88..........i downloaded the keypres' module - keypress_1.0.6_src. I read in one post that we need to install another module called 'appswitch' also to get the simulation of the keys done on the emulator. Can u please provide me some information regarding the same..
Reply With Quote

#9 Old Re: Can I develop Python scripts(S60 3rd ed) for automated testing of an application? - 2009-08-12, 14:45

Join Date: Sep 2008
Posts: 175
Location: London, UK
the86hitman's Avatar
the86hitman
Offline
Regular Contributor
welcome mukeshm.
your task confuses me a little as you have download 5th edition AND 1.4.4 SDK?
so to help you, please tell us which mobile device you want to use keypress with and which version of PyS60 you are using


The86Hitman
PyS60 1.9.7 on E71
http://www.drhtailor.com/pys60
Reply With Quote

#10 Old Re: Can I develop Python scripts(S60 3rd ed) for automated testing of an application? - 2009-08-12, 15:03

Join Date: Nov 2008
Posts: 11
mukeshm
Offline
Registered User
hi..........as of now, I am trying to develop this only on the S60 emulator. I am using the 3rdED_v0_1 of Python S60.
Reply With Quote

#11 Old Re: Can I develop Python scripts(S60 3rd ed) for automated testing of an application? - 2009-08-12, 16:15

Join Date: Sep 2008
Posts: 175
Location: London, UK
the86hitman's Avatar
the86hitman
Offline
Regular Contributor
Quote:
Originally Posted by mukeshm View Post
hi..........as of now, I am trying to develop this only on the S60 emulator. I am using the 3rdED_v0_1 of Python S60.
if you're new to programming, you are probably safer sticking to the older versions of PyS60, http://sourceforge.net/projects/pys60/files/
download the PyS60 1.4.5 SDK relating to your version of the emulator.

use the links suggested in the previous posts above to write the required source code.

my personal opinion is to develop straight on the Mobile phone rather than emulator.
And if really urgent, if I get time, i will hav a go at porting appswitch and keypress tonight.


The86Hitman
PyS60 1.9.7 on E71
http://www.drhtailor.com/pys60
Reply With Quote

#12 Old Re: Can I develop Python scripts(S60 3rd ed) for automated testing of an application? - 2009-08-18, 13:20

Join Date: Nov 2008
Posts: 11
mukeshm
Offline
Registered User
Hi.... so could you please tell me which version of S60 SDK should be used with PyS60 1.4.5 SDK. Also,my actual requirement is to develop a UI test automation for a media player. (that means, my script should be able to simulate the keypress and open the media player and play a media file ON THE EMULATOR).
Its for testing purpose. I have little experience in S60 programming. So, could you please help me in doing so. Thats why I wanted to know the basic steps and the basic installation files required and also to save these files in correct locations. Also, i want it on the emulator (AS of now, target device is not available). Please help.....

Thanks,
mukeshm
Reply With Quote

#13 Old Re: Can I develop Python scripts(S60 3rd ed) for automated testing of an application? - 2009-08-18, 13:28

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
hello mukesh

if you are interested in using PyS60 1.4.5 then you can use the any of the SDK, i will suggest you to go with the S60 3rd edition FP2 as that will be simple to you after that you can migrate to others.

Moreover if you want to use any extension module in your application with the emulators, then you need to compile it for the SDKs, moreover i feel that you just need to handle the key events so that is possible without any Extension Module.

I will suggest you to go through the API documention and the forum nokia Python wiki you will get a lots of resources.

Best Of Luck!!


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#14 Old Re: Can I develop Python scripts(S60 3rd ed) for automated testing of an application? - 2009-08-25, 12:51

Join Date: Nov 2008
Posts: 11
mukeshm
Offline
Registered User
hi gaba88,
i had installed the S60 3rd edition FP2 sdk and Python 1.4.5 sdk. And also downloaded the keypress module src code and compiled it to use the simulation of keypress. The compilation is working fine. I used the simulation of keys EKey1-EKey9, EKeyStar, EKey0 and EKeyHash which are working fine on the EMULATOR. But when I tried to use simulation of other keys like EKeyMenu, EKeyNo(for red key), EKeySelect, EKeyLeftSoftkey, etc. which are not working. But, when i run the statement for these keys, it does not give any error.

eg : keypress.simulate_key(EKeyMenu, EScancodeMenu)

It does not simulates the keypress of menu key.

Could you please help me out with this. Is there any other modules required for this like 'appswitch' to do the switching ?

Please help..

Thanks,
mukeshm
Reply With Quote

#15 Old Re: Can I develop Python scripts(S60 3rd ed) for automated testing of an application? - 2009-08-25, 13:52

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
hello mukeshm

i have not much of experience with this keypress module then also please see the api docs, i think there are some keys which you cant simulate and i feel that that keys are those which you have listed.


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
LBS Application Testing with S60 Emulator kakadu2 Symbian Tools & SDKs 3 2008-10-29 20:46
System error (-2) meet as soon as start Python Application wilen_ding Python 2 2007-09-13 20:32
Autostart for a pre-installed application (3rd Edition FP1) sgindin General Symbian C++ 1 2007-06-08 11:20
Python application just dying christee Python 2 2006-05-25 03:42
SDK 3rd emulator autostarts application iulian_moldovan General Symbian C++ 0 2006-05-10 08:30

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ