IBM Support

IBM APM 8.1: how to check a web page content?

How To


Summary

Using IBM Application Performance Management version 8.1, how to check the content of a web page url?

Objective

Monitor the results and contents of a web page

Environment

APM Server 8.1.4 + IF9
Synthetic Agent 8.1.4 + IF10 (version 01.00.05.10)
Mozilla Firefox 68.2.0ESR
Selenium IDE : 3.16.0

Steps

In order to check the content of a web page, one possible solution is to use the APM Synthetic Agent and a Selenium IDE script that would contain commands like Assert Title, Assert Text, etc.
So your script will report a failure in the APM UI console if the assertion test has failed.
See example below:

Selenium script result in APM UI Dashboard, with ‘assert title’ command failure example:

Synthetic Transactions Status overview shows :

Unavailable % = 100

image-20200323144830-1

Transaction Instances

Error summary widget shows the message:

Command#<command line number>: assertTitle(“<Expected_Title_here>”) => [Failure: Assertion failed (Result: [<Returned_Title_here> / Expected : [<Expected_Title_here>])]

image-20200323144941-2

And the last test’s step executed is the ‘assertTitle’ command, as seen in above screen capture.

Selenium IDE script example:

image-20200323145026-3

Selenium script result in APM UI Dashboard, with ‘assert title’ command success example:

image-20200323145105-4

Transaction Instances

No error reported in Error Summary widget

image-20200323145146-5

Selenium IDE Script details:

image-20200323145224-6

Other possible useful Selenium IDE script commands to assert web page content:

Enter ‘Assert’ in the Command field and then check all available commands….

image-20200323145312-7

image-20200323145404-8

Example: assert text reference guide :

image-20200323145439-9


 

Additional Information

APM 8.1 Documentation link, for reference:

https://www.ibm.com/support/knowledgecenter/en/SSHLNR_8.1.4/com.ibm.pm.doc/install/admin_syn_over_view.html

Chapter "Managing synthetic transactions and events"

Document Location

Worldwide

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSVJUL","label":"IBM Application Performance Management"},"ARM Category":[{"code":"a8m500000008b2uAAA","label":"Synthetic Agent"},{"code":"a8m50000000L1loAAC","label":"Synthetic Agent->Selenium Scripting"}],"ARM Case Number":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"8.1.4","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Historical Number

TS003507758

Product Synonym

apm;

Document Information

Modified date:
08 April 2020

UID

ibm16116044