Forum Discussion

Vivek72's avatar
Vivek72
Contributor
12 years ago

ComponentArt Silverlight Objects

Hi,

I am working on bar chart items where I want to click on bar item to drill down to the target. The objects recognised by test complete is limited to Text Block object that is related to the bar object. Here I have two questions: 1) Is it possible to make test complete recognise the bar item itself directly? I have tried  all extensions and plug ins but of no use.

2) I tried to look into internal properties of Text Block to get access to the bar item and found


ComponentArt.Silverlight.DataVisualization.Charting.BarSeries ComponentArt.Silverlight.DataVisualization.Charting.XYChart

class names. Am I aiming right by looking into the above Class Names and If I am then what are the methods I need to try to make my script click on the bar objects?

Thanks in advance



 


  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Kumar,


     


    You can try using the MSAA technology to recognize the control. For this, add the class name to MSAA's List of Accepted Windows. Read the "Project Properties - MSAA Options" article for details.


     


    Actually, in most cases, child objects of bar and grid controls are internal, so TestComplete does not recognize them as individual objects and does not show them in the Object Browser. To access these objects, you need to use native methods/properties of their parent objects. You can find out from your control's documentation which particular methods/properties you need to use.


     

  • Thanks Tanya,



    I have added class names to MSAA list of accepted windows, but of no use.

    The ComponentArt.Silverlight.DataVisualization.Charting.Datapoint is the class name available which is added to MSAA list. I am trying to explore TextBlock object properties that is the name assigned to bar object, where TextBlock object is non-functional whereas Bar object is clickable. Any idea which are the methods applied to click on barchart or datapoint or piechart objects? I tried all the possible methods such as DrillDown, Focus etc which doesnt even reach the bar object.  Any similar cases that will help me to work around?
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi,


     


    It's difficult to say what method or property you can use to get the target value from your control. I suggest that you explore the control in TestComplete's Object Browser. Make sure that you use the Advanced View mode and displaying hidden properties is allowed in TestComplete. Please refer to the "Basic and Advanced View Modes" article for details.


     


    If this doesn't help, the only way to help you is to get the xap file from you at least. You can send it to our Support team - they might give you some clues.