apache / apache/jmeter

Executing the wrong script causes the sampler to return no results

Open
#6,067 0 comments 0 reactions 0 assignees View on GitHub
defect to-triage
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.