문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top