vikkuTester
Member
Reged: 09/04/12
Posts: 36
|
|
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
|
Joe Strazzere
Moderator
Reged: 05/15/00
Posts: 12344
Loc: Massachusetts, USA
|
|
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.
|
vikkuTester
Member
Reged: 09/04/12
Posts: 36
|
|
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.
|
Joe Strazzere
Moderator
Reged: 05/15/00
Posts: 12344
Loc: Massachusetts, USA
|
|
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.
|
vikkuTester
Member
Reged: 09/04/12
Posts: 36
|
|
Thanks Joe..!
|
vikkuTester
Member
Reged: 09/04/12
Posts: 36
|
|
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)
|
Berzins
Junior Member
Reged: 02/27/05
Posts: 68
Loc: Latvia
|
|
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.
|
vikkuTester
Member
Reged: 09/04/12
Posts: 36
|
|
Thanks Berzins !
|
vikkuTester
Member
Reged: 09/04/12
Posts: 36
|
|
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?
|
Berzins
Junior Member
Reged: 02/27/05
Posts: 68
Loc: Latvia
|
|
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
|
vikkuTester
Member
Reged: 09/04/12
Posts: 36
|
|
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
|
Berzins
Junior Member
Reged: 02/27/05
Posts: 68
Loc: Latvia
|
|
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.
|
vikkuTester
Member
Reged: 09/04/12
Posts: 36
|
|
Hi All,
Can anyone suggest some tool other than "AutoIt" to automate testing of a Window based PDA-Emulator Application, installed in desktop.
|
Joe Strazzere
Moderator
Reged: 05/15/00
Posts: 12344
Loc: Massachusetts, USA
|
|
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.
|
vikkuTester
Member
Reged: 09/04/12
Posts: 36
|
|
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
|
vikkuTester
Member
Reged: 09/04/12
Posts: 36
|
|
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)
|