I'm working on Flex application, it works well with almost objects but sometime I got the problem:
1. Use Silktest (Open Agent) to record an simple action like clicking on a button.
After finish recording, button object is added to frame file with multi-tag (caption, index, id...)
2. Re-play test case
--> Always get error: Failed to resolve object '...'
I try to use GetChildren method for parent object of this button and I got error: Error during executing a method/property 'AgentGetChildren'.; Communication timout between agent and application, reason: No reply within the specified timeout of 30000 ms
Anybody facing with same problem, please let me some advices
Thanks a lot
Re: Record Flex objects successful but cannot re-play
I'm having the same problem. SilkTest resolves the Flex object just fine in Window Identifiers and when recording, but fails to resolve it when running a script.
I found a workaround by adding additional tags to the object in question or its parents. (I generally set up frames with the minimum number of tags.) For example, I have a FlexBox with a child FlexDataGrid. The FlexBox had a single tag in the frame file, "DrillDownPage". The FlexDataGrid was failing to get resolved in the script. I found that an exists() check on the FlexBox returned a duplicate-object error (though it clearly wasn't duplicate). So, I reviewed the window declarations, saw that there were other tags for the FlexBox, so I added one, "$DrillDownPage". That took care of the problem.
Re: Record Flex objects successful but cannot re-p
Even I am getting unable to resolve error. I tried the solution specified by Von1 but it failed to work. I am recording the testcases and updating the declarations in frame.inc file where all the tags are included by default. Can any body please help me with this?