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
Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!