AnsweredAssumed Answered

Access Java objects from Beanshell throughout script

Question asked by Jason_J on Mar 4, 2017
Latest reply on Mar 8, 2017 by sursu06

In Application Test, is it possible to access 3rd party objects throughout the script?



I'm using a 3rd party Java library, and have been creating new objects within individual scripted assertion steps in Beanshell. But, I want to limit the duplicate code and create one connection object and reuse it through my assertion steps. I've tried creating from Dynamic Java steps and from Beanshell scripts. I'm looking for (easy) ways to make my objects globally scoped so I can access them from any Beanshell scripted assertion from my script. It seems like scope is at the script/assertion step level.