第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

如何從Java程序創(chuàng)建和運(yùn)行Apache JMeter測(cè)試腳本?

如何從Java程序創(chuàng)建和運(yùn)行Apache JMeter測(cè)試腳本?

www說(shuō) 2019-09-02 09:23:13
我想使用Apache JMeter提供的API從Java程序創(chuàng)建和運(yùn)行測(cè)試腳本。我已經(jīng)了解了ThreadGroup和Samplers的基礎(chǔ)知識(shí)。我可以使用JMeter API在我的Java類(lèi)中創(chuàng)建它們。ThreadGroup threadGroup = new ThreadGroup();    LoopController lc = new LoopController();    lc.setLoops(5);    lc.setContinueForever(true);    threadGroup.setSamplerController(lc);    threadGroup.setNumThreads(5);    threadGroup.setRampUp(1);HTTPSampler sampler = new HTTPSampler();    sampler.setDomain("localhost");    sampler.setPort(8080);    sampler.setPath("/jpetstore/shop/viewCategory.shtml");    sampler.setMethod("GET");    Arguments arg = new Arguments();    arg.addArgument("categoryId", "FISH");    sampler.setArguments(arg);但是,我不知道如何創(chuàng)建一個(gè)組合線程組和采樣器的測(cè)試腳本,然后從同一個(gè)程序執(zhí)行它。有任何想法嗎?
查看完整描述

3 回答

  • 3 回答
  • 0 關(guān)注
  • 1440 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)