
The location for the source image you are wanting to compare to the screen Read more here on the checkpoint command. How "off" the word can be for what you are expecting to consider it a pass The amount of time you wish to wait for the word to appear before throwing and error The word you are searching for on the screen The value you wish for the transaction time to be below to consider the transaction a pass or failure based on performance ParameterĪ short description explaining what the step is attempting to validate Read more here on the checkpoint command. I 'm also utilizing an Image checkpoint for the image "PUBLIC:Audio/Stop_Button_GS4.png" with a timeout of "60" and threshold of "50" Then I perform a Splunk transaction using the name "2 Audio Played?" and description of "Verifying audio loaded" with an SLA of "60000".

I 'm also utilizing an OCR checkpoint for the word "Best Books of the Month" with a timeout of "60" and threshold of "100" Then I perform a Splunk transaction using the name "2 searched item" and description of "Searching for an item" with an SLA of "60000". To add your own custom fields, you can use the below syntax: All of the JSON data that is fed to Splunk is gathered in this listener. This is a standard testNG listener class. This is a helper class for the TestListener and PerfectoSplunkSteps classes. No modifications should be required here. Further below, you'll find each of the files stand-alone, or you can copy them from the GitHub project and add to your existing project. You can add this capability to an existing Quantum framework by reviewing the below integration guide. You can take a look at the scenario file which executes against and searches for an item (src/main/resources/scenarios/AmazonSearch.feature) to see how the Splunk transactions are performed and generated.

When using this project, it is important to import as a Maven project. You only need to modify a couple of files. The project that is found in the Github directory is ready to be used out of the box. Quantum project containing everything you need to get started as well as an example test can be found here.
Splunk transaction contains code#
For use with this series, you'll need to ensure the index you create is named "testindex" compatibility of code samples and dashboards.
Splunk transaction contains series#
To use this project, follow the series HTTP Event Collector to ensure your Splunk instance is configured. In this article we'll review a Quantum Project with the ability to feed test result data to Splunk.
