Installation notes for Prisma – Visual Test Coverage
Prisma is a nice little tool that visualizes testcoverage directly in you application under test. In the screenshot below you can see areas that I already have tested get marked in green color by Prisma.
As promised here a bit more technical article on how to install Prisma on CentOS 7. Those are actually my personal installation notes that did work on my system. You can find a more general description in the installation guide that comes with the download package.
Installing Prisma
So this is how I did install Prisma. There might be other ways, but this is how it did work for me on my CentOS 7 VMWare image. The official documentation can be found with the installation files, look for file Prisma_Guide.pdf.
Download Prisma:
https://marketplace.microfocus.com/appdelivery/content/alm-prisma-beta-visual-test-coverage
This document contains three sections:
- Install Elastic Search (required by prisma)
- Install Prisma server
- Install Prisma Chrome Add-In
1 Install Elastic Search
Here is how I did install Elastic Search on my machine. Please not that only certain versions of Elastic Search are supported with Prisma.
# curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.10.rpm # rpm -i elasticsearch-5.6.10.rpm # systemctl daemon-reload # systemctl enable elasticsearch.service
Start elastic search:
# systemctl start elasticsearch.service
Validate:
Open URL http://localhost:9200/_cat/health
Status should be green or yellow.
View Elastic Search Log:
# less /var/log/elasticsearch/elasticsearch.log
Get Elastic Search Version:
# curl -XGET 'localhost:9200' { "name" : "uuAl6_g", "cluster_name" : "elasticsearch", "cluster_uuid" : "Hiws0aI4SLK1sZxVebPVcA", "version" : { "number" : "5.6.10", "build_hash" : "b727a60", "build_date" : "2018-06-06T15:48:34.860Z", "build_snapshot" : false, "lucene_version" : "6.6.1" }, "tagline" : "You Know, for Search" }
Configuring Elastic: (not necessary for Prisma, you can keep the defaults):
All Elasticsearch configuration files are in the /etc/elasticsearch directory:
– elasticsearch.yml
– loggin.yml
2 Install Prisma server
This section describes how I did install the prisma server. It is quite simple, actually just run the rpm and start it as a service.
Install prism:
# rpm -ihv --ignorearch prisma.rpm
Configure: (I did not change anything here. Usually the default configuration is fine)
# nano /opt/octane/prism/conf/application.yml
Start prism:
# systemctl start prism
Check if prism is running:
# curl http://localhost:8080/management/health {"status":"UP"}
Log:
# less /var/log/prism.log
3 Install Prisma Chrome extension
Primsa currently runs in Chrome browser only as a Chrome extension (Firefox and maybe also other browsers will be supported in later releases). This is how you install it in Chrome:
- Open Chrome browser
- https://chrome.google.com/webstore/detail/prisma/hoelgmhhfelfhcibnblnmiflmcfppenm
- You need to specify where prisma server is running. (In this installation it is simply: http://localhost:8080)
4 Start using Prisma
Now you should be ready to go. You should see the prisma icon in your Chrome browser. If you have not done already go to the settings and specify the URL of the Prisma server. Then open the URL of your application under test and select “Inject prisma”.
Enter a tag name for your test (see red arrow in following screenshot) and press “Start recording”. Prisma will now record your clicks on your application under test.
For an example on how to use Prisma also together with ALM Octane see my video on youtube:
#visual #testing #octane #testcoverage #alm #qualitycenter #automation #applicationtesting #exploratory #tests