Boost PC performance: How more available memory can improve productivity
Â
JMeter_PPT.pptx
1. Performance Testing
WHAT ?
A non-functional testing technique performed to check speed, response time, reliability, scalability, stability of a software program under expected workload.
It is a subset of performance engineering and is also known as âPerf Testingâ.
The focus of Performance Testing:
1.Speed/Response Time â Determines whether the application responds quickly.
2.Scalability â Determines maximum user load the software application can handle.
3.Stability â Determines if the applications is stable under varying loads.
2. Performance Testing
WHY NEEDED?
Performance testing uncovers what needs to be improved before the product goes to
market. Without performance testing, software is likely to suffer from issues such as:
1. Running slow while several users use it simultaneously.
2. Inconsistencies across different operating systems and poor usability.
3. Bottlenecks are obstructions in system which degrade overall system performance.
Some common performance bottlenecks are:
- CPU utilization
- Memory utilization
- Network utilization
- Disk usage
3. Performance Testing
TYPES :
1.Load Testing: Applying desired number of load and checking the
stability & response time of the application.
2.Stress Testing: Applying more then desired number of load and
checking the stability time of the application.
3.Endurance/Soak Testing: To make sure the software can handle
the expected load over along period of time.
4.Spike Testing: By increasing the number of users suddenly by a
very large amount and measuring the performance of the system.
5.Volume Testing: Transferring/Write huge volume of data into db
& monitor the stability & response time of application.
4. Performance Testing
Performance or Load Testing Tools:
When we have to measure the load, stability, response time of the application, we
required some performance (load) testing tools, which help us to test the
performance of the software or an application.
There are various types of performance testing tools available in the market; some of
the most used performance (load) testing tools are as follows:
- Apache Jmeter
- LoadRunner
- LoadNinja
- NeoLoad
- LoadView etc.
5. WHY ?
1. Its is open source tool.
2. It can load & perform test many different server
types:
- Web -HTTP,HTTPS
- Web Services - SOAP
- Database via JDBC drivers
- Messaging Oriented service via JMS
- Mail Service â POP3, IMAP, SMTP
- FTP Service
3.It allows concurrent sampling by many thread
groups.
4.Test results can be captured in various format like
summary report,graph,results in tree & table,etc.
About Apache JMeter
7. About Apache JMeter
Installing & Configuring Jmeter :
1.Install Java :
- Your PC might already have java installed on your system, if not
just install it from the website.
- Check your java version: go to cmd and type java -version(v).You
Will get something like this:
8. About Apache JMeter
Installing & Configuring Jmeter
2.Download Apache JMeter :
- Download jmeter from below link
https://jmeter.apache.org/download_jmeter.cgi
- This will download a zip file.Unzip this
to a directory.
- Start Jmeter from Terminal/cmd.
a. Traverse to the jmeter installed path,
for my case this is:
â/home/deepali/Downloads/apache-jmeter-5.5/binâ
b. And run Jmeter.sh (for Linux)/Jmeter.bat(for Win)
c. This will open the GUI of Jmeter.
9. Concepts in Apache JMeter
1. How to prepare a Test Plan in Jmeter.
2. How to prepare Test script in Jmeter.
3. How to put load & analyze performance metrics.
4. Importance of HTTP Cookie Manager.
5. Assertions
6. Controllers
7. Timers
8. Correlation
9. Data Drive Testing in Jmeter
10. What is Test Plan ?
- A Test Plan describe a series of steps jmeter will execute when run.A
complete test plan will consists of one or more Threads group, logic
controller, listner, timers, assertions, and config elements.
- The different components of JMeter are called Elements. Each Element is
designed for a specific purpose.
Elements in Jmeter or in a Test Plan
11. Thread Group
- Setup numbers of threads
- Setup ramp up period.
- No. of times test execute.
Controller
- Samplers(Send reuqest to server)
- Logical controller(customize logic to send
request)
Listener
- Graph Results
- View results tree & many more
Timers
- Delay next request certain amount of time.
Assertions
-Allow you to assert fact about response received from HTTP request
Elements in Jmeter or in a Test Plan
12. Subject lines :
â Dont ignore it.
â Aim for under six words
â Avoid vague words like
â âHelloâ
â âUpdateâ
â Front - loaded keywords
â Keep Words like â Project Zeus: Update â not âUpdate on Project Zeusâ
About Apache JMeter
13. When to flag urgent emails :
â Only use the high priority flag when you need someone to take an action to avert an
imminent disaster such as huge financial losses , law suits or reputational scandals.
Why NOT to flag :
â Overuser may irritate your colleagues.
â If somethingâs urgent or important, say so in your subject line.
About Apache JMeter
14. âTOâ , âCcâ , â Bccâ , â Reply allâ :
When to use the âToâ Field:
People directly affected by your email, such as when:
â You want them to do something.
â You are replying to their message.
â They are named in your greeting.
About Apache JMeter
15. When to use the âCcâ Field:
â Use this field when you are not expecting the recipient
to take any action in response to your email.
When NOT to use the âCcâ:
â Informal escalation
â Powerplays
â Back-Covering
About Apache JMeter
â Thumb Rule :A good rule of
thumb is to announce your use of
the Cc to the emailâs main recipient
- i.e.,by saying something like : âI
am ccâing my colleague Dave,
whoâll be handling the design for
the project.â
16. When to use the âBccâ Field:
â When people should not be able to see teh email address of all
the other recipient.
â When you want to Bcc your own manager or your HR team to
keep them in the loop without alarming the employee.
Danger of using âBccâ :
â Recipient may respond with âReply allâ - fwd the original message
to the third party after you have sent it instead.
Email Etiquette
â Thumb Rule :If sending a Bcc
makes you feel abit gulity, sneaky
or mean, donât do it!.
17. Sending attachments - best Parctice
â Attach it before you begin writing the email.
â Mention that you have attached it in the body of the email.
â Keep file size under 5MB.
â Zip it or use a file transfer service if the file is above 5MB.
â Watch your format.Use universal file types like .PDF, .RTF, and .JPG.
â Group attachments in separate emails.
Email Etiquette
18. Out-of-office messages :
â Be specific with dates
â Checking in? Mention, but manage expections.
â Provide your contact details if you are happy to be
contacted.
â Put them in touch with a colleague.
â Keep it professional!.
Email Etiquette
Remebmber! : ....to turn your automatic
reply off as soon as you get back to the
office !
19. Proofing and polishing : how to avoid email errors -
â Fill in the âToâ field last.
â Cut and paste from word.
â Check their name - always!
â Check subject lines, dates, times, hyperlinks and attachments separately.
â Use automatic spell check.
â Print it out - and enlist a colleagueâs help.
Email Etiquette
20. Now There are Total 7 Steps We need to follow for writing an effective emails :
1. Ask yourself : âIs email the best channel?â.
2. Add attachments first.
3. Craft your message using the SCRAP structure.
4. Add some white space.
5. Writeyour subject line.
6. Proofread
7. Insert Addresses.
Email Etiquette
21. Assign Tasks in an Email Using the â3Wsâ:
3Ws : Who, What, and When - every action should have a clear Who, What, When.
1.Who - Name of a specific person who you want to complete a task for you(not a
group of people).
2.What - Description of the exact task you need someone to do (no assumptions).
3.When - Exact date and time a task needs to be completed by (clear deadline).
Ex.âRay, please send me the updated status report by Monday,Nov 23 at 3pm US
Eastern Timeâ.
2. Write Better Emails
22. Write the perfect Subject Line :
â Summarize the 3Ws (your Email).
â Use Prefix modifiers.
â Change the subject line only when the subject changes.
Write Better Emails
23. Write Emails that are 5 sentences or less -
TL;DR :
â Know what you really want first.
â Get to the point immediately then.
â Hightlight a lack of required response. eg.âFYIâ, âNNTRâ or âNo
Action Neededâ.
Write Better Emails
24. Break Long Emails into Two parts :
â Quick Summary - Keep this part 5 sentences or less.
â Details - Elaborate on the summary.
Write Better Emails
25. Make you Emails Scannable :
â Use Bullets points for all your actions and questions
â Use Sub-headings, white spaces, highlights and/or bold text
Write Better Emails
26. Show by Attaching Screenshots Instead of Tell:
â Use screenshots to save time and improve clarity.
Ex. : Give someone instructions or highlight slide in deck.
Write Better Emails
27. Spell out Time Zones, Dates, and Acronyms
:
â Mention the exact time zone, day, and date.
â Ex.âHow about tomorrow,Friday, Aug 5, 2022 at 9:30am US
Eastern Time?â
â Do the Same for acronyms.
â Spell out acronyms at leadt once in an email.
Write Better Emails
28. Use âIf..then...â Statements :
â For increasing accountability, clarify expectations, for reminders
and reduce the amount of follow-ups.
Write Better Emails
29. Present Options Instead of asking Open-
Ended questions:
â Present clear options
â Give alternatives when scheduling meetings
â Example : State âDo you think we should do A, B or C?â instead
of âWhat do you think about this?â
Write Better Emails
30. Re-Read Your Email once for a Content
Check :
â Re-read your entire email from top to bottom.
â Re-reading the questions as well as the answers helps ensure
that your responses make sense before you reply.
Write Better Emails
31. Save Drafts of Repetitive Emails :
â Use a template for weekly and monthly status calls.
â Save drafts based on client or topic.
â A standard format improves communication with your team
members.
Write Better Emails
32. Write it Now, Send it Later Using Delay
Delivery :
â Use delay delivery feature to send emails when they are most
likely to be read.
â Use delay delivery as a reminder tool.
Write Better Emails
33. Donât Reply All (Unless you Absolutely have
to) :
â Donât use reply all when only the original sender needs to read your
message.
â Send a follow-up âreply allâ email after any offline discussions.
â Mention when you are removing members from the reply all list.
â State that what you want your recipients to do at the end of your
email.
Write Better Emails
34. Reply to Questions Inline :
â List questions on seperate lines and if the questions were not
sepearted out, then do that yourself.
â Use a different color font.
â Copy the original questions in your reply.
Write Better Emails
35. Reply Immediately To Time-Sensitive Emails :
â Make sure the acknowledgments is meaningful instead of just saying âOKâ.
â Spell out your need for an acknowledgment.
â Ex.âPlease confirm that you received this email and that you will get this done.â
Write Better Emails
36. Read the Latest Email on a Thread Before Responding :
â Sort your email messages by subject line.
â Can also use âConversation threadingâ where messages with the same subject line are
visually grouped together.
â If you make a mistake, correct it by replying back to the team.
Write Better Emails
37. Write the perfect Out-of-Office (OOO) Auto Reply :
â Include everything your recipient needs to know while you are away.
â State the exact dates, hightlight your backup contacts, and set the right expectations.
Write Better Emails
38. Share the Rules of Email Ahead of Time :
â Set up a short meeting with your team and make sure everyone agrees on email best
practices ahead of time.
â Be flexible on the rules.
â Use what you like, delete what you donât, and add any new ones that apply to your team.
â Establish ground rules so that everyone communicates more effectively.
Write Better Emails