Share via

Application Insights Availability tests not able to match content

Amol Kankane 1 Reputation point
2022-06-24T20:25:12.543+00:00

I am trying to use Application Insights for tracking availability and load times of my react-based application (bookfish.in). If I try to enable content match and give a string like "Sign" to match to confirm the site loading, it fails the tests. Without the content match, all tests pass. Not sure why that is the case. The rendering is client-side and needs a js enabled browser for content to load, so not sure if that is the problem. Can someone help in debugging this? Thanks in advance!

Azure Monitor
Azure Monitor

An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.

0 comments No comments

1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 21,566 Reputation points Moderator
    2022-06-30T14:32:03.73+00:00

    @Amol Kankane , Apologies for the delayed response. I tried accessing the page mentioned (bookfish.in) and the returned response does not contain the string "sign". Instead, as the web page is getting loaded through JavaScript, it is getting executed by browser's script engine and elements are being rendered (which are not available for content match).

    I verified it using Edge browser and looking at the source ( ctrl+u ). I would suggest using a "string to match" which is contained in the returned HTML page. Hope this helps!
    Please let me know if you have any questions.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.