You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by "fit2-zhao (via GitHub)" <gi...@apache.org> on 2023/08/23 07:20:30 UTC

[GitHub] [jmeter] fit2-zhao opened a new issue, #6067: Executing the wrong script causes the sampler to return no results

fit2-zhao opened a new issue, #6067:
URL: https://github.com/apache/jmeter/issues/6067

   ### Expected behavior
   
   Script error does not affect sampler result return
   
   ### Actual behavior
   
   Sampler no result response
   
   ### Steps to reproduce the problem
   
   A pre-step of the sampler adds the current script execution
   
   //ph=${__Random(111111111111,9999999999999,)};
   //ph=${__Random(1111,999,)};
   String a =String.valueOf(ph);
   //
   phone=${__Random(3,9,)};
   String b =String.valueOf(phone);
   //
   mobile=1+b+a;
   String email=a+"@123.com";
   
   vars.put(${__metersphere_env_id}+"phone",mobile);
   vars.put("phone",mobile);
   log.info("phone="+mobile);
   
   vars.put(${__metersphere_env_id}+"email",email);
   
   
   tell="0755-"+${__RandomString(8,0123456789,)};
   vars.put(${__metersphere_env_id}+"tell",tell);
   //vars.put("tell",tell);
   log.info("email="+tell); 
   
   bank=${__RandomString(18,123456789,)};
   String a =String.valueOf(bank);
   vars.put(${__metersphere_env_id}+"bank",a);
   vars.put("bank", a);
   //vars.put("bank",a);
   log.info("bank="+a);
   
   ### JMeter Version
   
   5.6
   
   ### Java Version
   
   17
   
   ### OS Version
   
   mac os


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org