简体   繁体   中英

Access .NET properties from SilkTest classic

Is it possible to access .NET properties using SilkTest classic (4Test language)? I need to read value of labels that are shown on System.Windows.Forms.DataVisualization.Charting.Chart control.

I can't use GetProperty or DynamicInvoke because when they return something, 4Test automatically converts it to string. So if I call GetProperty("Legends") , I'll get just Legends.ToString() , not the actual LegendCollection object.

As described in this article you can use cascading dynamicInvoke -calls to access the elements in the LegendCollection .

You can then also access properties of that element if the default ToString() is not appropriate for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM