How to add Ruby script code in BSF postprocessor to skip user registration?

158 views Asked by At

While Using Jmeter for Performane testing of a Ruby Application with 100 user, we ran it for user regsitration.To login, tt requires user confirmation via email but while testing on local environment we have a method 'Skip_confirmation' (run in console) in application to skip the user confirmation via url which contains the token. How i can add the ruby method in Jmeter to skip user confirmation after registration.

1

There are 1 answers

0
UBIK LOAD PACK On

If by console you mean a shell or command , you can use OS PROCESS SAMPLER

if not, then have a look at code of Skip_confirmation to see what it does and add more info in your question.

A 3rd option is to use JSR223 Post Processor with JRuby as explained here: