AnimaWeaponTH / flexmonkey

Automatically exported from code.google.com/p/flexmonkey
0 stars 0 forks source link

Does not selected last item in ComboBox if index of last item index changes between test runs #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a ComboBox and put into it tree or more items
2. Create a test which will select latest item 
3. Run the test :)

What is the expected output? What do you see instead?
The last item should be selected but we have a TimeOut. That is why the
last item is not selected.

What version of the product are you using? On what operating system?
the FlexMonkey is 0.3a (Flex 3 SDK 3.1) and Windows XP Sp2

Please provide any additional information below.
This issue is solved when I replace the command which is generated by
FlexMonkey

new FlexCommand("Weekly", "Click", ["0"], "automationName")

this line

new FlexCommand("cboRecurringPeriodComboBox_AN", "Select", ["Monthly", "1",
"0"], "automationName")

The FlexMonkey should generate the correct commands

Original issue reported on code.google.com by roman.ma...@gmail.com on 14 Nov 2008 at 10:48

GoogleCodeExporter commented 9 years ago
Can you please provide more details on the problem? We are unable to repro.

Original comment by stuinbou...@gmail.com on 18 Nov 2008 at 2:18

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
That is a problem - we have a comboBox and it have, let's say, 10 items. To 
select
the last item we should scroll down (and save the necessary scroll position) and
after select the item. In this case all are good. But if we will have 30 items 
in
futures? The comboBox will scroll to the position that visible item 10, but we 
want
to select  item that is at 30 position.

To resolve this problem I created the new class MonkeyHelper.as (in attach) and 
if we
need to select any items in any components we use the commands according with 
the
components :

treeOpenItem - that command need to expand a grouped items in the tree. To 
select
item use treeSelectItem (but first we need expand the list).

Original comment by roman.ma...@gmail.com on 18 Nov 2008 at 3:10

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for submitting. We'll review.

Original comment by stuinbou...@gmail.com on 20 Nov 2008 at 11:47

GoogleCodeExporter commented 9 years ago
There are many situations in which what you want to record may differ from what 
the
Flex Automation API actually records. In such situations, we recommend 
approaching
things as you have done -- by adding additional code to your tests that will 
achieve
the desired result.

Original comment by stuinbou...@gmail.com on 14 Jan 2009 at 5:14