search cancel

CA ASM Match String

book

Article ID: 253707

calendar_today

Updated On:

Products

CA App Synthetic Monitor

Issue/Introduction

Problem description: We need your help for ASM matching string for one of our application.  

1)I have captured below URL in ASM

https://www.client-central.com/CardExpert/Dashboards/index.html

 

2) I want to add string- “Executive Dashboard”, Purchases and Declines , Summary ( extreme left)  to make sure that page opens as expected.

 

 

3) I tried doing this in ASM

4) I receive an error

 

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=TgaD8UF8Dy1PMOSMFLx4WQ==

 

Environment

Release : SAAS

Cause

Configuration Issue: 

Resolution

1. If its redirected page, please refer:  

https://knowledge.broadcom.com/external/article?articleId=4673#/

2. check whether its compatible or configured correctly. If none of these, will engage backline team. 

3. Here are some from the ASM Info link  for "Match string or regular expression":-

Both normal text strings and regular expressions are supported.

Use text matching to see if a web page is displaying correctly. Http and https monitors base their judgment on the HTTP response code (e.g. 200). But in some cases your web server may return a blank page, and still have response code 200 (OK). A match monitor will detect this where the normal http monitor won't.

Or, use text matching to check a page for the absence or presence of a specific error (or just search for the word 'error' if not used in the correct page).

To create a match monitor, add a new monitor and select 'http' or 'https' from the 'type' drop down menu. Fill out the 'match' field with the text that you want to search for and provide page details. Text not found is regarded as an error. To do the opposite, add an exclamation mark in front of the string. For example, '!sql error' triggers an error by CA App Synthetic Monitor when the phrase 'sql error' is found on the page.

You can use regular expressions for more complex matching. See this page for more information about regular expressions.

http://www.tin.org/bin/man.cgi?section=7&topic=regex

Examples:

  • Match case insensitive for the word 'copyright': /copyright/i
  • Match for at least one HTML tag with spaces around it: /[:space:]<.+>[:space:]/i
  • Match for the existence of a HTML form: /<form.*>.+<\/form>/i

The negation character '!' also applies to regular expressions, so !/copyright/i results

in an error when the word 'Copyright' is found

The match string works by what is on the site.

For example, if you have the text"Welcome to my site"You can search for all or any words.  You would enter only what you see below if you want to look for Welcome.  No single or double quotes.

Welcome

It also allows the use of regex: example

Welcome.*site

Attachments