The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Software Testing >> Automated Testing

Pages: 1
vikkuTester
Member


Reged: 09/04/12
Posts: 36
AutoIt Tool for Testing Windows Application
      #715877 - 09/05/12 04:47 AM

Has anyone used AutoIt tool for testing Windows Application.

I want to test a PDA(Personal Digital Assistant)-Emulator installed in my system.

Can someone suggest in this about AutoIt, if used or any other tool that you consider appropriate.?

Thanks


Post Extras: Print Post   Remind Me!   Notify Moderator  
Joe StrazzereModerator
Moderator


Reged: 05/15/00
Posts: 12344
Loc: Massachusetts, USA
Re: AutoIt Tool for Testing Windows Application [Re: vikkuTester]
      #715879 - 09/05/12 04:58 AM

You are testing an emulator?
Or trying to use the emulator to test a PDA?
Or something else?

I suspect AutoIT could be used to drive the emulator, assuming it's a windows-based application. And with a bit of work, you might be able to use AutoIT to "test" the emulator.

How are your programming skills?

--------------------
- Joe
Visit AllThingsQuality.com to learn more about quality, testing, and QA!

I speak only for me. I do not speak for my employer, nor for anyone else.


Post Extras: Print Post   Remind Me!   Notify Moderator  
vikkuTester
Member


Reged: 09/04/12
Posts: 36
Re: AutoIt Tool for Testing Windows Application [Re: Joe Strazzere]
      #715961 - 09/05/12 10:11 PM

Hi thanks for your reply,

I am testing the emulator, which will be same like PDA. Emulator installed in the windows desktop machine.

For eg, In AutoIt - how to handle the dropdown box & similar window controls, which i have in my application in the emulator.

I could find the GUI commands to create GUI controls and manipulate them,but i want to test the window controls & features in my application in emulator.

I have good knowledge in JAVA.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Joe StrazzereModerator
Moderator


Reged: 05/15/00
Posts: 12344
Loc: Massachusetts, USA
Re: AutoIt Tool for Testing Windows Application [Re: vikkuTester]
      #715989 - 09/06/12 03:42 AM

Good. It sounds like you might find AutoIt useful.

I think your best bet is to go to http://www.autoitscript.com/forum/ browse through some of the examples, and ask questions as needed. Their forums are pretty active.

Good luck!

--------------------
- Joe
Visit AllThingsQuality.com to learn more about quality, testing, and QA!

I speak only for me. I do not speak for my employer, nor for anyone else.


Post Extras: Print Post   Remind Me!   Notify Moderator  
vikkuTester
Member


Reged: 09/04/12
Posts: 36
Re: AutoIt Tool for Testing Windows Application [Re: Joe Strazzere]
      #716062 - 09/07/12 01:39 AM

Thanks Joe..!

Post Extras: Print Post   Remind Me!   Notify Moderator  
vikkuTester
Member


Reged: 09/04/12
Posts: 36
Re: AutoIt Tool for Testing Windows Application [Re: vikkuTester]
      #716962 - 09/25/12 04:07 AM

Please let me know, if anyone has worked on Comboboxes with AutoIt Script.

I'm testing a PDA-emulator, a Window Application, installed on my Desktop.
There are several ComboBoxes in different winodws down the hierarchy.

I've written a code that works well with first instance of ComboBox, available on the first window.

But, it doesn't work well with the subsequent Comboboxes.

Issue: From the second combobox instance onwards, the desired value from the combobox is selected successfully, and becomes available on the Combobox text area. But the corresponding Window/view does not get changed . Still the old window pane/view is displayed.

Code is like:

MouseClick("left",475,474,1,40)
$wcontrol="[CLASS:ComboBox; INSTANCE:1]"
$m=ControlGetHandle ("[CLASS:ATL:005DA510]","Journey Plan",$wcontrol)
_GUICtrlComboBox_SelectString($m,"Name")
ControlClick ( "[CLASS:ATL:005DA510]", "Name", $m )

(----- till here..THIS WORKS FINE ----)
sleep(1000)

(next if we select some other value from the same dropdown,in the same window----it doesn't work fine, and same for other comboboxes afterwards)

_GUICtrlComboBox_SelectString($m,"Bannner")
ControlClick ( "[CLASS:ATL:005DA510]", "Banner", $m )


Kindly share your insight, if any.

Thanks
Vikash

Edited by vikkuTester (09/25/12 04:09 AM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
Berzins
Junior Member


Reged: 02/27/05
Posts: 68
Loc: Latvia
Re: AutoIt Tool for Testing Windows Application [Re: vikkuTester]
      #716980 - 09/25/12 07:12 AM

I use
$iValue=_GUICtrlComboBox_FindString($hWndComboBox, $sTxtValue)
_GUICtrlComboBox_SetCurSel($hwndComboBox, $iValue)
(of course with additional checks - is there value and so on)

Problem with this function is, that it does not launches "Value changed or index changed or..." event.
My workaround is select value with _GUICtrlComboBox_SetCurSel function and then with sendkeys change value to next and back (or in case of last value in list to previous and then back)
For me this works well.


Post Extras: Print Post   Remind Me!   Notify Moderator  
vikkuTester
Member


Reged: 09/04/12
Posts: 36
Re: AutoIt Tool for Testing Windows Application [Re: Berzins]
      #717026 - 09/25/12 09:02 PM

Thanks Berzins !

Post Extras: Print Post   Remind Me!   Notify Moderator  
vikkuTester
Member


Reged: 09/04/12
Posts: 36
Re: AutoIt Tool for Testing Windows Application [Re: vikkuTester]
      #717037 - 09/26/12 02:27 AM

Hi Berzins,
Can you please tell,
1.)
How do we click the value from the Dropdown,after it is selected by the _GUICtrlComboBox_SetCurSel() function,
apart from ControlClick("Title","Text-value",contorlHandle/id)- which I think doesn't need the indiex of the value in the dropdown list as given by the above function?

2.)How do we get the ControId of the elements, through functions?


Post Extras: Print Post   Remind Me!   Notify Moderator  
Berzins
Junior Member


Reged: 02/27/05
Posts: 68
Loc: Latvia
Re: AutoIt Tool for Testing Windows Application [Re: vikkuTester]
      #717040 - 09/26/12 03:15 AM

In my case:
I find and select value
Then click on combo box control
ControlClick ( $sWindow, "", $sComboBox ), where $sComboBox is, as example "[NAME:cmbYear]"
At this point value in ComboBox is selected, but it does not start functions in application.

And then, to launch event in application use sendkeys (up, down or left, right)

Of course, there can be better solution, but it works for me, I added this as function to my framework and forgot about it


Post Extras: Print Post   Remind Me!   Notify Moderator  
vikkuTester
Member


Reged: 09/04/12
Posts: 36
Re: AutoIt Tool for Testing Windows Application [Re: Berzins]
      #717042 - 09/26/12 04:27 AM

Thanks Berzins,

As you have used AutoIt to automate testing application(s).

What has been your experience with it in regard to your application and testing requiements?


Do you feel, it has all the sufficiet features to automate a window based PDA-Emulator Application installed in a desktop?

Kindly share your experience with AutoIt.


Thanks


Post Extras: Print Post   Remind Me!   Notify Moderator  
Berzins
Junior Member


Reged: 02/27/05
Posts: 68
Loc: Latvia
Re: AutoIt Tool for Testing Windows Application [Re: vikkuTester]
      #717043 - 09/26/12 05:18 AM

If AutoIt can "see" objects (AutoIt Window Info tool) in your application (CobmboBoxes, ListBoxes, Pushbuttons and so on), then you can use it for automation.

To make work easier, I suggest create framework with functions to handle your application- common functions, functions to write logs, functions to read data from test data files. If needed, users interface to run tests.

I use AutoIt since 2010 (migrate my test framework from Rational Robot to AutoIt), mostly for .NET applications, Excel, windows environment.


Post Extras: Print Post   Remind Me!   Notify Moderator  
vikkuTester
Member


Reged: 09/04/12
Posts: 36
Re: AutoIt Tool for Testing Windows Application [Re: Berzins]
      #717099 - 09/26/12 11:20 PM

Hi All,

Can anyone suggest some tool other than "AutoIt" to automate testing of a Window based PDA-Emulator Application, installed in desktop.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Joe StrazzereModerator
Moderator


Reged: 05/15/00
Posts: 12344
Loc: Massachusetts, USA
Re: AutoIt Tool for Testing Windows Application [Re: vikkuTester]
      #717119 - 09/27/12 05:06 AM

I use WinTask.

http://www.allthingsquality.com/search/label/WinTask

--------------------
- Joe
Visit AllThingsQuality.com to learn more about quality, testing, and QA!

I speak only for me. I do not speak for my employer, nor for anyone else.


Post Extras: Print Post   Remind Me!   Notify Moderator  
vikkuTester
Member


Reged: 09/04/12
Posts: 36
Re: AutoIt Tool for Testing Windows Application [Re: Joe Strazzere]
      #717379 - 10/02/12 09:26 PM


Thanks Joe for your reply.
I checked this tool.
Actually, I'm looking for an Open Source tool.

Kindly share, if you find something suitable.

Thanks
vikkuTester


Post Extras: Print Post   Remind Me!   Notify Moderator  
vikkuTester
Member


Reged: 09/04/12
Posts: 36
Re: AutoIt Tool for Testing Windows Application [Re: vikkuTester]
      #718010 - 10/15/12 02:26 AM

Hi All,

I've few panes on my window application(PDA Emulator)screen.
There are several GUI Controls like CheckBoxes, ComboBoxes,
TextFields, ListBoxes etc on each of these panes on the same screen.

While using AutoItV3 Info Tool to uniquely identify controls across any particular pane, it shows common Summary details for all the enterries like
Class, Instance, ClassnameNN, Advanced(Class),ID for all the Controls present in the given pane except for Control Click Coords.

So, what can be the way to identify the Control Ids of the Controls in the given pane?

Although Control Click Coords being the only distinct valued parameter, it doesn't work out to be the Unique ControlID for the controls, nor does it work when used in combination with other parameters collected by the Auto It Info tool.

Please share your suggestions to approach this...!

Thanks
vikkuTester

Edited by vikkuTester (10/15/12 02:28 AM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 7 anonymous users are browsing this forum.

Moderator:  Elfriede Dustin, AJ, Joe Strazzere 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 8904

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5