A cikin labarin na gaba zamu kalli Apache JMeter. Wannan application din manhaja ce wacce ake amfani da ita yi gwajin gwaji da auna tsarin aiki. Aikace-aikacen Apache JMeter aikace-aikace ne cikakke na Java 100%. Anyi amfani da wannan aikace-aikacen don gwada aikace-aikacen yanar gizo ko aikace-aikacen FTP. A yau, ana amfani dashi don gwajin aiki, gwajin uwar garken bayanai, da sauransu. A cikin wannan labarin zamu ga yadda ake samun shirin a cikin Ubuntu 18.04.
Ana iya amfani da Apache JMeter don aikin gwadawa akan duka albarkatu masu ƙarfi da tsayayye da aikace-aikacen yanar gizo. Ana iya amfani dashi don yin kwatankwacin nauyi a kan sabar, rukunin sabobin, cibiyar sadarwa ko abu don gwada ƙarfinsa ko bincika aikin gabaɗaya ƙarƙashin nau'ikan nau'ikan kaya.
JMeter yana kwaikwayon rukunin masu amfani da ke gabatar da buƙatun zuwa sabar manufa da kuma dawo da bayanan kididdiga don sabar manufa ko sabis ta hanyar zane mai zane.
Wannan aikace-aikacen ba mai bincike bane, yana aiki a matakin ladabi. Game da ayyukan yanar gizo da sabis na nesa, JMeter baya yin duk ayyukan da masu bincike ke tallatawa. Musamman, wannan shirin baya aiki da javascript samu a shafukan HTML. Hakanan baya bayar da shafukan HTML kamar mai bincike.
Apache JMeter Janar Fasali
- Una Aboki GUI. Abu ne mai sauƙi don amfani kuma baya ɗaukar lokaci don sanin masaniyar shirin.
- Tsarin dandamali. Shirin shine java 100%Saboda haka, yana iya gudana akan dandamali da yawa.
- Multi-zaren. JMeter yana ba da damar yin samfuran ayyuka daban-daban ta wani zaren daban.
- Ana iya ganin sakamakon gwaji a cikin wani nau'i daban kamar zane, tebur, itace, da fayil ɗin log.
- Harshen extensible. JMeter ma goyon bayan plugins na nuni hakan zai bamu damar fadada gwajin mu.
- Mahara dabarun gwaji. JMeter yana tallafawa dabarun gwajin da yawa, kamar gwajin gwaji, gwajin rarraba, da gwajin aiki.
- JMeter ma ba da damar aiwatar da gwaje-gwaje da aka rarraba tsakanin kwamfutoci daban-daban, Wanda zai yi aiki a matsayin abokan ciniki.
- Kwaikwaiyo. Wannan aikace-aikacen na iya yin kwatancen masu amfani da yawa tare da zaren lokaci ɗaya, ƙirƙirar kaya mai nauyi akan aikace-aikacen yanar gizo ƙarƙashin gwaji.
- Taimako na yarjejeniya da yawa. Ba wai kawai yana goyan bayan gwajin aikace-aikacen gidan yanar gizo ba, har ma yana kimanta aikin uwar garken bayanai. Duk wasu ladabi irin su HTTP, JDBC, LDAP, SOAP, JMS, FTP, TCP, da sauransu ... suna dacewa da JMeter.
- Rikodi & Sake kunnawa rikodin aikin mai amfani a cikin mai bincike.
- Rubutun Gwaji. Ana iya haɗa JMeter da Bean Shell & Selenium don gwajin atomatik.
- Buɗe lasisin tushe. Wannan shirin shine kwata-kwata kyauta. Idan muna son sanin lambar tushe ko ƙari cikin halaye na wannan aikace-aikacen, zamu iya tuntuɓar shafin GitHub na aikin.
Zazzage kuma gudanar Apache JMeter
Wannan aikace-aikacen yana buƙatar sanya java a kan inji, don haka kafin girka aikin a hannun, ya zama dole Tabbatar kun girka Java akan na'urar mu. Zamu iya tabbatar da hakan ta hanyar bude tashar (Ctrl + Alt + T) tare da buga wannan umarni mai zuwa:
java --version
Idan ba mu da Java a cikin Ubuntu, wani abokin aiki ya rubuta wani lokaci a baya wata kasida inda yake gaya mana yadda shigar da nau'ikan Java daban-daban.
Bayan shigar Java, dole ne muyi zazzage sabon salo barga Apache JMeter daga shafin hukuma. Idan har muka ji daɗin amfani da tashar (Ctrl + Alt + T), zamu iya amfani da umarnin wget don riƙe kunshin:
wget ftp.cixug.es/apache//jmeter/binaries/apache-jmeter-4.0.tgz
Lokacin da zazzagewar ta cika, lokaci yayi da za a yi cire fayil din JMeter da aka sauke. A cikin wannan tashar mun rubuta:
tar xf apache-jmeter-4.0.tgz
Bayan cire fayil din zamuyi kai tsaye zuwa bin bin, a ciki apache-jmeter-4.0. Da zarar mun isa, za mu aiwatar da fayil ɗin mai zuwa:
sh jmeter.sh
Bayan aiwatarwa allon mai zuwa zai bayyana. Tare da wannan, hanya don shigar Apache JMeter akan ubuntu 18.04 yazo karshe.
Don ƙarin fahimtar yadda wannan shirin yake aiki, zamu iya nemi shawarwari cewa masu haɓakawa suna samarwa ga masu amfani akan gidan yanar gizon su. Hakanan zamu iya tuntuɓar yiwuwar shakku game da shirin a cikin wiki na guda.
Kada ku yi tafiyar jmeter kamar tushe. Ba lallai ba ne.
Kuna da gaskiya.