Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Sample of Win32::GuiTest needed for this

by prad_intel (Monk)
on Oct 05, 2005 at 10:27 UTC ( [id://497540]=perlquestion: print w/replies, xml ) Need Help??

prad_intel has asked for the wisdom of the Perl Monks concerning the following question:

Hi All,

As some of you know I am working in a mobile phone company.

Here all Dev and Testing people loose lot of time in flashing(+)and flexing(++) the phone. (+) flashing - burning the firmware (++)flexing - setting the configuration for the phone. This ideally eats half an hour time for all here since we need to flash first and flex a few files.

So as a Tester half the day for me goes in doing this.

I am planning to automate the flash and flex process using PERL ( of course ).

Now let me tell you the requirement -

1) I have the flash files and flex files in a folder.

2) Flash files can be identified by the extension of the file ..something like .shx, and flex files can be identified with extension .hs .

3)I have the phone connected to one of the USB port.

4) A program SGH.exe does the process of burning the firmware (.shx - flashing).

5) I want to open the file with SGH.exe , a UI is seen where i there is an option to Start ( burning or flashing )

6) There is a status bar which finally shows PASS or FAIL and if FAIL it shows the error.

7) I need to run the start which will flash and open the flex files .hs with the same SGH.exe and again start to flex.

My thoughts :

1) Opening the file with the mentioned exe isnt a big hassle , esp when i am thinking in perl.

2) As SGH.exe does not have a command line interface Win32::GUITest maybe a good option ( updated after making a blunder here ) Well if i finish this automation , half a day more i can spend on Perl monks monastery.

If someone has already done something similar or has a way to do it , let me know.

Regards prad
  • Comment on Sample of Win32::GuiTest needed for this

Replies are listed 'Best First'.
Re: software upgrade for mobile phone
by marto (Cardinal) on Oct 05, 2005 at 10:44 UTC
    Hi,

    Firstly please read the Writeup Formatting Tips, as it stands your post required formatting to avoid confusion.
    Secondly Win32::GuiTest looks promising for controlling this SGH.exe app, which you say does not have a CLI.
    Win32::GuiTest looks like it will provide you with an interface to moving/clicking the mouse and sending key strokes to the app.

    "If someone has already done something similar or has a way to do it , let me know. "

    Have you searched Cpan or done a Super Search?

    "As SGH.exe does not have a command line interface , I need to use TK for this."

    How will TK give you a command line interface?

    Hope this helps.

    Martin
Re: software upgrade for mobile phone
by castaway (Parson) on Oct 05, 2005 at 11:33 UTC
    I'm still a bit confused as to what you want to do. Please list the steps your Perl script needs to run through, ignore bits that you will do by hand, ie attaching the phone to the USB port, that part is irrelevant.

    My best guess so far is, that you want to run SGH.exe with a filename as the parameter, then have perl "click" the Start button? Or how does SGH.exe get the filename it's supposed to use?

    C.

      :((

      I want to -

      1) Flash the file by making perl press the Start button , read the status ( PASS OR FAIL )

      2) Flex :(( ( learnt a new lesson )

      prad

      UPDATE : File is flashed or burnt into the mobile's PROM through the exe. /

      The UI is something like Browse->(select file) and then we can start burning.

      Formatting can make things readable but the content is more valuable
        prad_intel

        Am I correct in thinking that SGH.exe does not accept command line arguments (ie the file you want to flash), and that you can only select it via the user interface?
        Have to read the advice in the previous post I made?
        Please provide as much pertinent data as possible.

        Martin

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://497540]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-25 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found