Jmetrning natija daraxti jsr223 tasdiqlashini sinab ko'rish uchun bir usul bormi (masalan, natija daraxasidagi muntazam ifodani sinab ko'rishimiz mumkin)

Hozirgi kunda jsr223-ni API-ning funktsional tekshiruvi uchun jmeterda qo'llayapman. Shuning uchun natija daraxti bo'yicha javob xabarini tasdiqlashim kerak, shuning uchun biz har safar qo'ng'iroqni amalga oshirishga hojat yo'q. (Misol uchun, natija daraxti bo'yicha muntazam ifodani sinab ko'rishimiz mumkin). Shunday qilib, jsr223ning javob xulosasiga qarshi da'volarini tekshirish uchun biron bir usul bormi?

1

6 javoblar

Hozirgi JMeter versiyasi (3.1) bo'yicha bu narsa mumkin emas, lekin vaqtinchalik echim mavjud.

Siz test ma'lumotlarini taqqoslash uchun Dummy Sampler dan foydalanishingiz mumkin, yagona taxminni tasdiqlash uchun barcha stsenariyni boshqaring.

JMeter Dummy Sampler

You can install Dummy Sampler (as well as any other JMeter Plugin) via JMeter Plugins Manager

[JMeter Plugins Manager - Dummy Sampler

0
qo'shib qo'ydi
Menga ishlagan javob uchun Dmitriy Tga rahmat, lekin barcha qo'ng'iroqlarni o'chirib qo'yishim kerak, shunda jp @ gc namuna oluvchisiga javob qo'shish va jsr223 tasdiqini qo'shish va qayta ishlashni davom ettirishim kerak. Natijada daraxtda jsr223 tasdiqini qo'shishning biron bir usuli bormi?
qo'shib qo'ydi muallif Akbar Inam, manba

Hozirgi JMeter versiyasi (3.1) bo'yicha bu narsa mumkin emas, lekin vaqtinchalik echim mavjud.

Siz test ma'lumotlarini taqqoslash uchun Dummy Sampler dan foydalanishingiz mumkin, yagona taxminni tasdiqlash uchun barcha stsenariyni boshqaring.

JMeter Dummy Sampler

You can install Dummy Sampler (as well as any other JMeter Plugin) via JMeter Plugins Manager

[JMeter Plugins Manager - Dummy Sampler

0
qo'shib qo'ydi
Menga ishlagan javob uchun Dmitriy Tga rahmat, lekin barcha qo'ng'iroqlarni o'chirib qo'yishim kerak, shunda jp @ gc namuna oluvchisiga javob qo'shish va jsr223 tasdiqini qo'shish va qayta ishlashni davom ettirishim kerak. Natijada daraxtda jsr223 tasdiqini qo'shishning biron bir usuli bormi?
qo'shib qo'ydi muallif Akbar Inam, manba

Hozirgi JMeter versiyasi (3.1) bo'yicha bu narsa mumkin emas, lekin vaqtinchalik echim mavjud.

Siz test ma'lumotlarini taqqoslash uchun Dummy Sampler dan foydalanishingiz mumkin, yagona taxminni tasdiqlash uchun barcha stsenariyni boshqaring.

JMeter Dummy Sampler

You can install Dummy Sampler (as well as any other JMeter Plugin) via JMeter Plugins Manager

[JMeter Plugins Manager - Dummy Sampler

0
qo'shib qo'ydi
Menga ishlagan javob uchun Dmitriy Tga rahmat, lekin barcha qo'ng'iroqlarni o'chirib qo'yishim kerak, shunda jp @ gc namuna oluvchisiga javob qo'shish va jsr223 tasdiqini qo'shish va qayta ishlashni davom ettirishim kerak. Natijada daraxtda jsr223 tasdiqini qo'shishning biron bir usuli bormi?
qo'shib qo'ydi muallif Akbar Inam, manba

prev.getResponseMessage() - gives HTTP response message

prev.getResponseDataAsString() - gives the complete response as a string.

JSR223 Assertion da shunday harakat qilib ko'ring:

log.info(prev.getResponseMessage());
String response = prev.getResponseMessage();
if(response.contains("OK")){
    AssertionResult.setFailure(true);
    AssertionResult.setFailureMessage("response message contains OK");
}

JSR223 Assertion da quyidagi narsalarga kirishingiz mumkin:

  1. Response- using prev or SampleResult
  2. AssertionResult - you can tweak the assertion result based on some conditions.
0
qo'shib qo'ydi

prev.getResponseMessage() - gives HTTP response message

prev.getResponseDataAsString() - gives the complete response as a string.

JSR223 Assertion da shunday harakat qilib ko'ring:

log.info(prev.getResponseMessage());
String response = prev.getResponseMessage();
if(response.contains("OK")){
    AssertionResult.setFailure(true);
    AssertionResult.setFailureMessage("response message contains OK");
}

JSR223 Assertion da quyidagi narsalarga kirishingiz mumkin:

  1. Response- using prev or SampleResult
  2. AssertionResult - you can tweak the assertion result based on some conditions.
0
qo'shib qo'ydi

prev.getResponseMessage() - gives HTTP response message

prev.getResponseDataAsString() - gives the complete response as a string.

JSR223 Assertion da shunday harakat qilib ko'ring:

log.info(prev.getResponseMessage());
String response = prev.getResponseMessage();
if(response.contains("OK")){
    AssertionResult.setFailure(true);
    AssertionResult.setFailureMessage("response message contains OK");
}

JSR223 Assertion da quyidagi narsalarga kirishingiz mumkin:

  1. Response- using prev or SampleResult
  2. AssertionResult - you can tweak the assertion result based on some conditions.
0
qo'shib qo'ydi