All Apps and Add-ons

splunk app for synthetic transaction not working

singh_sanje
New Member

hi
while adding these line in my phython script it showing error

a=Transaction(driver, 'Google')
a.TransactionStart(driver, 'Google Home Page')
driver.get(self.base_url + "/")
a.TransactionEnd(driver, 'Google Home Page')
dont know where i can add these line

error : open browser and stuck on it

Traceback (most recent call last):
File "C:\Program Files\SplunkUniversalForwarder\etc\apps\splunk-app-synthetic\bin\AppDynamicsJob1.py", line 30, in test_app_dynamics_job
a=Transaction(driver, 'Google')
UnboundLocalError: local variable 'driver' referenced before assignment

======================================================================

ERROR: test_app_dynamics_job (main.AppDynamicsJob)

Traceback (most recent call last):
File "C:\Program Files\SplunkUniversalForwarder\etc\apps\splunk-app-synthetic\bin\AppDynamicsJob1.py", line 67, in tearDown
a.TransactionEnd(driver, 'Google Home Page')
NameError: name 'a' is not defined

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...