Code Monkey home page Code Monkey logo

jmeter-coap-sampler's Introduction

##Jmeter plugin for testing API Endpoints using CoAP Protocol

Reference : https://en.wikipedia.org/wiki/Constrained_Application_Protocol http://coap.technology/

CoAP (Constrained Application protocol) is an application layer protocol intended for use in resource constrained environments like in low power electronic devices and other electrical appliances which need to be able to send and receive instructions remotely.

CoAP is a good candidate to build a IoT (Internet of Things) framework to help devices talk to remote application or servers.

Californium is a Java Library which can be used to setup API endpoints in your application which operate using the Constrained Application Protocol.

Jmeter-coap-Sampler is a Jmeter plugin which can be used for Automation testing or Load testing your API endpoints implemented in CoAP.

There are separate samplers to test DTLS endpoints and non DTLS endpoints.

Pre-requisite

  1. Java 7
  2. Maven 2.x+
  3. Jmeter 2.10+

Installation Instructions:

  1. Get the code.
  2. Execute the following maven code

mvn dependency:copy-dependencies install -DexcludeGroupIds=org.apache.jmeter

  1. Copy the following jars from target/dependency to /jmeter_install_path/lib

  2. californium-core-1.0.0-SNAPSHOT.jar

  3. scandium-1.0.0-SNAPSHOT.jar

  4. element-connector-1.0.0-SNAPSHOT.jar

  5. Execute the following maven code

mvn clean package

  1. Copy the following jar from target/ to /jmeter_install_path/lib/ext

  2. jmeter-coap-sampler-1.0.0.jar

Using the Sampler

  1. Open JMeter.

  2. Add a new Thread Group.

  3. Right click on the Thread Group -> Add -> Sampler -> Java Request

  4. Choose the Java Request from the navigation panel.

  5. Click on the 'classname' drop down and choose between

    org.jmeter.plugin.CoapDtlsConnectionSampler
    org.jmeter.plugin.CoapConnectionSampler
    

Screenshots

enter image description here

enter image description here

enter image description here

jmeter-coap-sampler's People

Contributors

elang2 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.