Forum Discussion

umer_chaudhary's avatar
umer_chaudhary
Occasional Contributor
9 years ago

Unable to re-read DataWindow elements within Desktop Application.

HI,

 

I am unable to read DataWindow elements added after screen opening.

 

e.g.

STEP1: Open application

STEP2: Open a screen containing dataWindow with 10 elements (child objects)

STEP3: Spy with test complete

STEP4: Some operation causes some more objects added to dataWindow say 20 elements (child objects)

STEP5: Spy again with test complete, test complete still stays on 10 elements and doesnt recognize the newly added objects

 

NOTE: IF I SKIP STEP 3, TEST COMPLETE CAN RECOGNIZE ALL 20 OBJECTS HOWEVER DURING EXECUTION I CANNOT STOP TESTCOMPLETE FROM SPYING AUTOMATICALLY.

 

How can i bypass this issue? can i stop auto-spy of testcomplete or force object browser to recognize the objects? (I have tried sys.refresh, sys.refreshmappinginfo and delaying script upto 10 seconds before reaccessing the datawindow but the object browser doesn't see the new objects)

 

Regards,

Umer

 

No RepliesBe the first to reply