IBM Support

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

How To


Summary

Using IBM Application Performance Management version 8.1, how to check the content of a web page, using Selenium IDE and selenium .side script?

Objective

Check availability of a web page.

Environment

system 1: Linux OS - APM server v8.1.4 IF9
system 2: Linux OS - Synthetic agent (sn) v8.1.4 IF10 (internal version 01.00.05.10) + Firefox ESR v68.5.0, for script playbacks
system 3: For example, Google Chrome + Selenium IDE v3.17,  for .side script recording

Steps

Selenium .side test script example,  recorded with Chrome browser on MAC, using Selenium IDE v3.17

Using IDE, I created a new project, and added in it a test suite; and inside the test suite, I added a script. I removed any ‘default’ empty script from the project. I recorded this test script, that contains an ‘assert text’ command. So all looks like this in IDE

image-20200325152250-2

image-20200325152316-3

Upload to the APM server 8.1.4 worked.

image-20200325152401-4

image-20200325152425-5

image-20200325152454-6

Saved the transaction

Playback using a APM v8 synthetic agent 8.1.4 +IF10 with Firefox ESR v68.5.0 worked:

image-20200325152629-7

Then,  the monitored application (Plants by WebSphere) was stopped.

image-20200325152754-8

Result in APM UI Dashboard:

image-20200325152842-9

image-20200325152923-10

Remark:

When this article was published, March 2020,

In APM Synthetic agent, only Firefox browser is supported when doing the playback. But for the recording of selenium script in IDE, Selenium IDE is available on both Chrome and Firefox browsers; in most cases, the script recorded from them could be the same, the scripts recorded from Chrome selenium IDE usually work in synthetic agent. But we strongly recommend using IDE in Firefox browser to avoid potential issues.

See differences between IDE and SN agent commands, documented in 8140-ibm-apm-synthetic-playback-agent-if0010’s readme:

 https://www.ibm.com/support/pages/ibm-application-performance-management-8140-8140-ibm-apm-synthetic-playback-agent-if0010-readme

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":"All Versions","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Historical Number

TS003507758

Product Synonym

APM

Document Information

Modified date:
08 April 2020

UID

ibm16117856