question

BFrancic avatar image
BFrancic asked BFrancic posted

Flex Tree Navigation - Specified target not found

Have captured steps to navigate the nodes of a tree in our flex application. When I playback the test case, it sometimes runs through each step without any problems but other times it cannot find the tree with a 'Specified target not found' error. I have added a sleep step after login to ensure enough time for the tree to load but the test case is still inconsistent i.e. it sometimes passes and sometimes doesn't.

 

I am using iTest4.0 on Windows XP with Firefox as the internal browser.

iTestGUI Testing(Web-Java Swing-etc)FlexNet (FlexLM)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
AdamB avatar image
AdamB answered AdamB posted

Hi BFrancic,

 

A couple questions:

1. When you are watching the test, is the target you are expecting it to click on there and it just is missing it?

2. Can  you add a describe step on the tree right before you click and right after, as well as a snap shot?

 

These should help us see whether the target is there before the step is executing.  We can also see why it might not be able to find the target.  Maybe the text has changed in the target item, or something is making the control inaccessible.

 

-a

2 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

BFrancic avatar image BFrancic commented ·

Hi Adam,

 

Re Q1: I can watch the nodes I selected and expanded during capture actually expand during playback in the test. In capture view, the steps (along with the component ids) are listed. When the test runs and certain steps (i.e. select, expandNode) are reached, the target is sometimes found and sometimes isn't. That's when I get the 'Specified target not found' response.

 

Re Q2: Have experimented putting Snapshot, Describe & getData steps before and after each click/select statement but the result is the same - sometimes the target is found and sometimes it isn't.

 

I suspect several things threads are running simultaneously when each part of our GUI loads, hence I've been inserting sleep steps to allow time for data to load. Still not there yet.

 

Brian

0 Likes 0 ·
koelze avatar image koelze BFrancic commented ·

The describe/snapshot actions aren't going to solve the problem, but they say exactly what's on the page when the target wasn't found: it's useful as debugging output to see if the target is there and not getting targetted, or if it's really not there.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.