Can you inject a beanshell script file loaded with a set of standard methods that are to be used in a virtual service model?
Beanshell can be inserted in Virtual Service Model the same way you insert beanshell in any Lisa test. But make sure you understand where exactly you need to apply custom logic within the model.
What I mean is, you have this single beanshell script file and then on that file you have generic methods that you could call in the model file, kinda like the built-in string patterns where you just have to call the name of the pattern and it gets evaluated. Can I do this without relying on or deploying jar files?
See the link below to get details around BeanShell:https://wiki.ca.com/display/DTS83/Using+BeanShell+in+DevTest
Thanks Salman, I have checked the articles on the wiki about beanshell but I havent found articles regarding my inquiry.
Any other suggestions regarding this?
Have you tried reading in the content of a script file using a read from file step, and using the property name in a scripted step? There are some reasons this may not work - so I am not sure how it will go until you try.
Thanks Ken for the suggestion, I tried using the Read From File Step however the expressions aren't getting evaluated.
Retrieving data ...