Ask a Question

Validating Amchart using VbScript in TestComplete

krishnakanth
New Contributor

Validating Amchart using VbScript in TestComplete

I am trying  to validate the points in the chart in a web application ; "https://www.pmedemo.biz/web/#Dashboards/lib/20cb8436-13c2-46b9-bbc6-2e34b7f7b206"

Got a similar solution with highcharts , but the code is in Javascript and throwing error while tryin to adapt it to VBScript.

 

 

2 REPLIES 2
ebarbera
Staff

Hi @krishnakanth - 

 

Could you provide a bit more information about what the error message is and what you are trying to validate? I am unable to access that link when clicking on it I am prompted to log into an application.


Thanks, 


Emma

Hi @ebarbera ,

I am using the default credential "demo"(for both userid and password).

I am trying to print the bar chart values that appears when the user hovers the mouse on the each bar.

Can you please suggest a possible solution in vbscript to do the same. 

The chart I am trying to fetch values from : Dashboard -> 2-Building consumption Ranking -> Lighting Energy Ranking by Zone -> Bar chart

From the console(after inspecting) , I am able to reach the elements with : AmCharts.charts[0].chartData, but not sure how to integrate it with my vbscript.

cancel
Showing results for 
Search instead for 
Did you mean: