UI testing for SFchart

Hi ,

I wish to write UI Testing for SFchart.But not able to find any samples.Can you help me out?

4 Replies

MP Michael Prabhu M Syncfusion Team September 11, 2018 11:13 AM UTC

Hi Urvashi, 
 
Sorry for the delay in getting back at this, we have analyzed your requirement to write UI testing for SfChart and based on the requirement we have created a simple sample by following the steps from the below links. 
 
 
 
Also, you can find the sample for your reference below. 
 
Sample: SfChartUITesting  
 
Thanks, 
Michael  




UR Urvashi September 12, 2018 05:42 AM UTC

Hi Micheal,

I refered the Sample.It only captures finding the chart componenets. I want to write test cases which can capture events like tooltip , trackball info. or tapping co-ordinates on chart.Are these events possible to capture via UI Testing.


MP Michael Prabhu M Syncfusion Team September 12, 2018 11:14 AM UTC

Hi Urvashi, 
 
We have some limitation for Interactive features in UI automation for SfChart. But we can test the interactive features using the SfChart inbuilt methods, we are preparing a sample based on this and will update you on 17th September 2018.  
 
Thanks, 
Michael  




MP Michael Prabhu M Syncfusion Team September 17, 2018 01:02 PM UTC

  
Hi Urvashi, 
 
Thanks for your patience,  
We have prepared UI scripts to show the Tooltip and Trackball by tapping coordinates on chart.  
Code snippet [C#]:    
[Test] 
        public void ShowTooltip() 
        { 
            app.Tap(c => c.Marked("Column Chart")); 
#if Android 
            app.TapCoordinates(480f, 1114f); 
#else 
            app.TapCoordinates(165f, 366f); 
#endif 
            app.Screenshot("ColumnChart"); 
        } 
Note : Please add TapCocordinates based on your device. 
Please find the sample below. 
 
 
Thanks, 
Michael 


Loader.
Up arrow icon