Summer Internship 2013



Similar documents
Apache JMeter HTTP(S) Test Script Recorder

Various Load Testing Tools

Device Log Export ENGLISH

Basic Exchange Setup Guide

JMETER - MONITOR TEST PLAN

Basic Exchange Setup Guide

1 Thunderbird v3 and IMAP/SMTP Configuration

Spam Marshall SpamWall Step-by-Step Installation Guide for Exchange 5.5

How to make the s you Send with Outlook and Exchange Appear to Originate from Different Addresses

DDNS Management System User Manual V1.0

Microsoft Outlook 2010

Standard Mailbox Software Setup Guide

Web Application Testing. Web Performance Testing

StarterPlus Mailbox Software Setup Guide

CipherMail Gateway Quick Setup Guide

CHARTER BUSINESS CUSTOM HOSTING MIGRATION INSTRUCTIONS

6.0. Getting Started Guide

1. Open Thunderbird. If the Import Wizard window opens, select Don t import anything and click Next and go to step 3.

13.1 Backup virtual machines running on VMware ESXi / ESX Server

How to Write a plugin for JMeter

Mail 8.2 for Apple OSX: Configure IMAP/POP/SMTP

Microsoft Outlook 2013 & Microsoft Outlook Microsoft Outlook Windows Live Mail 2012 & MAC Mail. Mozilla Thunderbird

Configuring an Client to Connect to CASS Mail Servers

Performance Analysis of webmethods Integrations using Apache JMeter Information Guide for JMeter Adoption

Load Balancing Oracle Application Server (Oracle HTTP Server) Quick Reference Guide

CA APM Cloud Monitor. Scripting Guide. Release 8.2

How to Set Up LSUS IMAP in Outlook 2013

Dynamic DNS How-To Guide

How to Setup an IMAP account in Outlook Express to Connect to Your Arrowmail Mailbox

FLX UC1000/1500 Registering with Siemens HiPath 4000 & OpenScape Voice Server

SITRANS RD500 Configuring the RD500 with PSTN or GSM modems and Windows-based servers and clients for communication Objective:

This information is provided for informational purposes only.

Update Instructions

OCS Training Workshop LAB14. Setup

Load Balance Mechanism

Microsoft Exchange Mailbox Software Setup Guide

IOS 8: Configure IMAP/POP/SMTP

NAS 224 Remote Access Manual Configuration

Installation Troubleshooting Guide

Trend Micro Worry- Free Business Security st time setup Tips & Tricks

IRMACS Setup. Your IRMACS is available internally by the IMAP protocol. The server settings used are:

Network Configuration Settings

There are numerous ways to access monitors:

GRICdial User's Guide

LICENSE4J LICENSE ACTIVATION AND VALIDATION PROXY SERVER USER GUIDE

Technical Note. vsphere Deployment Worksheet on page 2. Express Configuration on page 3. Single VLAN Configuration on page 5

How to Program a Commander or Scout to Connect to Pilot Software

Start Thunderbird and follow its prompts to configure it for your Yale Central account.

How To Set Up Mybpx Security Configuration Guide V1.2.2 (V1.3.2) On A Pc Or Mac)

Exchange Outlook Profile/POP/IMAP/SMTP Setup Guide

IP Filtering for Patton RAS Products

Android: Configure IMAP/POP/SMTP

How To Create A Mailbox In Windows Mail On A Pc Or Mac Or Ipad (For A Mac)

ISSN: (Online) Volume 2, Issue 1, January 2014 International Journal of Advance Research in Computer Science and Management Studies

Configuring Your Gateman Server

ESET Mail Security & Zarafa 7 infrastructure Integration

Setup Local Mail Server Using Postfix, Dovecot And Squirrelmail On CentOS 6.5/6.4

MailEnable Quick Start Guide

CSC E Mail. Mobile Device Configuration Settings and Setup Instructions

POP3 Connector for Exchange - Configuration

Simple Scan to Setup Guide

Bitrix Site Manager. Quick Guide To Using The AD/LDAP Module

JMeter Testing. Identify Preformance acceptance criteria: Identfy throughput,response time and resource utilization goals and constraints.

Versions Addressed: Microsoft Office Outlook 2010/2013. Document Updated: Copyright 2014 Smarsh, Inc. All right reserved

Elluminate Live! Access Guide. Page 1 of 7

Technical Support Information

Step by Step Guide to implement SMS authentication to F5 Big-IP APM (Access Policy Manager)

1 Mac Mail and IMAP/SMTP Configuration

1 You will need the following items to get started:

How to Make the Client IP Address Available to the Back-end Server

How to configure your Desktop Computer and Mobile Devices post migrating to Microsoft Office 365

Network Probe User Guide

F-SECURE MESSAGING SECURITY GATEWAY

DEPLOYMENT GUIDE Version 1.0. Deploying the BIG-IP LTM with the Zimbra Open Source and Collaboration Suite

So in order to grab all the visitors requests we add to our workbench a non-test-element of the proxy type.

Installation Guidelines (MySQL database & Archivists Toolkit client)

Preparing for GO!Enterprise MDM On-Demand Service

Emerald. Network Collector Version 4.0. Emerald Management Suite IEA Software, Inc.

General Tips: Page 1 of 20. By Khaled Elshaer.

Install and configure server

To install the SMTP service:

How to establish a Leased Line Connection

Outlook 2010 Setup Guide (POP3)

Mozilla Thunderbird: Setup & Configuration Learning Guide

Lab Objectives & Turn In

Configuring Thunderbird with UEA Exchange 2007:

Client Configuration Guide

Virtual Server and DDNS. Virtual Server and DDNS. For BIPAC 741/743GE

How to Set Up Outlook 2007 and Outlook 2010 for Hosted Microsoft Exchange if the Program is Already Installed

Using Remote Desktop with No-IP

Basics of Port Forwarding on a Router for Security DVR s

Install and Configure Oracle Outlook Connector

Chapter 3 Restricting Access From Your Network

Rev 7 06-OCT Site Manager Installation Guide

escan SBS 2008 Installation Guide

QuickStart Guide for Managing Mobile Devices. Version 9.2

For Internet Facing and Private Data Systems

Installing The SysAidTM Server Locally

Neoteris IVE Integration Guide

Transcription:

Summer Internship 2013 Group IV - Enhancement of Jmeter Week 4 Report 1 9 th June 2013 Shekhar Saurav Report on Configuration Element Plugin 'SMTP Defaults' Configuration Elements or config elements are important component of the test plans designed in Apache Jmeter. They are mainly used to specify default values or variables to be used in the test plan. This helps in preventing the redundant specification of the values to be used by the samplers in the test plan. The existing Jmeter have several config element like Http Request Defaults which is used with http request samplers, Java Request Defaults which is used with Java request samplers, Ldap Request defaults, TCP Sampler config, JDBC Connection configuration which are all used for specific purposes. The existing version of Jmeter have a sampler called SMTP Sampler which is used for testing smtp mail servers. There is large number of fields to be specified within sampler before the test can be run like Server or IP address of the SMTP server, the port address of the smtp server, the mail address where the mail is to be sent, mail address of the person sending the mail, the mail addresses where the copies of the mail is to be sent. In the authorization settings, if required, the user-name and the password is to be specified. In the message settings the subject of the mail, headers to be added, message to be sent, any attachment to be sent along with the mail and other optional parameter which may or may not be selected depending upon the configuration of the mail server to be tested. In case if the test plan is having more than one sampler, like four or five or more, these data and settings have to be specified for all the samplers which is too cumbersome as well as several entries in the samplers are common which make these entries redundant. In this situation, there is a need of a SMTP config element where default values can be set which don't have to be specified in the samplers to be used. Smtp Defaults Config Element is a configuration element that can be used to set default values for Smtp samplers.

SMTP Defaults Fig 4.1.1 : Smtp Defaults (Apache Jmeter Configuration Element) This element is present in the config element section of the thread group. Currently this config element provides fields to specify smtp server name or IP address, server port address, mail address of the receiver of the mail. Once this element is used in the test plan these values need not be specified in the fields of the samplers, whatever be the number of the samplers. Although if some sampler has to use some specific values for these fields, they can be specified in the fields with in the samplers. In this situation this particular sampler will use the values specified in its fields while rest of the sampler use the value specified in the Smtp Defaults config element. A small example showing the use of the Smtp Config Element is described below. As shown in the figure 4.1.1 a smtp default config element is added to the thread group. In this component name of the config element can be set. In the server settings section server address can be set in this example a local smtp server has been setup in Ubuntu 13.04 using postfix and dovecot as mail transfer agent and mail delivery agent respectively. Config Element fields Server : localhost Port : 25 Address to : shekhar@localhost The next element in the test plan is smtp sampler where rest of the details related to the mail can be specified. As shown in the figure 4.1.2 below. Sampler 1 fields Server : (Blank) Port : (Blank) Address from : shekharsaurav@localserver.com (non existing) Address to : (Blank) Subject : Subject of the mail Message : Message of the mail

Fig-4.1.2 : smtp Sampler1 Sampler 2 fields: server : (Blank) port : (Blank) Address from : shekhar@localserver.com (non existing) Address to : (Blank) Subject : Subject for the mail 2 Message : Subject for mail 2 Fig-4.1.3 : smtp Sampler2

Running the test gives the successful result: For sampler 1: Fig-4.1.4 : Request for sampler 1 For Sampler 2: Fig-4.1.5 : Request for sampler 2

Mail Inbox : mail from sampler 1 Fig-4.1.6 : Mail Inbox for sampler 1 Mail Inbox : mail from sampler 2 Fig-4.1.7 : Mail Inbox for sampler 2

Code for Smtp Defaults: A new package was included under smtp package which already had sampler package under it. The Package heirarchy is as shown in the figure below src protocol mail org apache jmeter protocol smtp config gui SmtpConfigGui.java The components of the SmtpConfigGui Class variables : private JTextField server; // text field for server address Procedures : private JTextField port; // text field for the port address private JTextField addressto; // text field for the mail address public SmtpConfigGui() // constructor for the class, calling init function. private void init() // Setting the border layout for config element and adding various components within the element. public String getlabelresource() //setting label for the config element to be visible in the tree view of the test plan public TestElement createtestelement() //creates object of the ConfigTestElement class and passed to modifytestelement() where variables to be passed on to the samplers are modified. public void modifytestelement(testelement config) //Values taken from the text boxes in the gui is used to set the class variables used by the smtp samplers like SmtpSampler.SERVER, SmtpSampler.SERVER_PORT etc. public void configure(testelement element) // Used to set the values in the text fields in the gui in case the element is revisited or a new element is created. public void cleargui() // used to reset the fields of the elements public JPanel setaddressto() // used to add label and text field for mail address in the config element panel. public JPanel setserverto() // used to add label and text field for server address in the config element panel. public JPanel setserverportto() // used to add label and text field for port address in the config element panel. Following modification was done in the SmtpSampler class: private static final Set<String> APPLIABLE_CONFIG_CLASSES = new HashSet<String>( Arrays.asList(new String[]{ "org.apache.jmeter.protocol.smtp.config.gui.smtpconfiggui", "org.apache.jmeter.config.gui.simpleconfiggui"})); Highlighted value was added in the array list of APPLICABLE_CONFIG_CLASSES for the samplers to recognise the newly created class config element.