| Reply | « Previous Thread | Next Thread » |
|
Hi
I'm new to Python. Can I simulate automated run for testing an E-series application using Python scripts for S60 3rd edition? |
| jayant.sahasrabudhe |
| View Public Profile |
| Find all posts by jayant.sahasrabudhe |
|
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/ |
|
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 ..........
|
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
|
Quote:
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 |
|
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 |
|
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 |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
|
Quote:
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 |
|
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..
|
|
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 |
|
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.
|
|
Quote:
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 |
|
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 |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
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 |
|
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 |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| 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 |