Recording Jmeter scripts using Jmeter’s HTTP(S) Test Script recorder

How to create Jmeter scripts?

Recording Jmeter scripts using Jmeter’s HTTP(S) Test Script recorder. There are two ways

1)      Manually adding scripts ( Test plan >> Tread Group >> Add>> Sampler >> HTTP Request )

2)      Recording using Jmeter’s HTTP(S) Test Script recorder

How to record Jmeter scripts using HTTP(S) Test Script recorder?

Prior doing that we need to configure browser and learn about the Proxy setup

Jmeter to Application server communication need to be routed through a browser Proxy for this recording purpose. For that you may need to select the Browser (here we can use Firefox browser”

1)      Navigate to Firefox >> Tools >> options >> Advanced >> Network >> Settings

2)      Select Manual Proxy configuration >> HTTP Proxy = localhost & Port = 8080

ff-settings

3)      Once this configuration is made – create Recording controller

Path ==>  Test plan >> Tread Group >> Add>> Logic Controller >> Recording controller

recording-controller

Recording controller will look like as below:

recording-controller-1

4)      Now add the HTTP(S) Test Script recorder

script-recorder

HTTP(S) Test Script recorder will look like as below:

script-recorder-1

Also make sure the URL patterns to be included. I need only .html so added as below,

script-recorder-1

5)      Now click on Start button and type on the Firefox browser with input url name and subsequent actions that you want to consider for performance test recording.

start

Jmeter scripts Adding scripts manually

Jmeter scripts Adding scripts manually

Apache JMeter  is a Java based performance testing tool works well on web communication layer (HTTP).

How to create Jmeter scripts?

There are two ways

1)      Manually adding scripts ( Test plan >> Tread Group >> Add>> Sampler >> HTTP Request )

2)      Recording using Jmeter’s HTTP(S) Test Script recorder

How to manually add Jmeter scripts

1         Follow the path :  Test plan >> Tread Group >> Add>> Sampler >> HTTP Request as copied in the below screenshot

script-manual-add

Below the fields needs to be filled when you write a code,

1)      Name: you can give any logical name based on application (e.g Login, Home page etc)

2)      Server Name or IP : it’s nothing but the IP of your server or the url name (www.your test site.com or “your test site.com” as example or if you know the IP, provide the IP)

3)      Path :  is “/sso/auth” in this example screenshot below as the remaining contents in the url after “.com”  – if your original site is www.your test site.com/sso/auth

4)      Make sure the Method è POST and protocol can be HTTP or HTTPS – which ever protocol is used.

http-request

Jmeter Performance test scenario

Jmeter Performance test scenario – Creating a Jmeter Performance test scenario

 Thread Group: Thread group is the number of virtual users performing the transaction on application under test.

 How to add Thread group?

 

  1. Right click on the TestPlan
  2. Select Add>Thread Group from the popup.thread-group

How we design the user transactions or thread group?

As per below screenshot –

1)      The requirement shows that number of threads or user actions needed as 60

2)      Ram up time is given as 180 sec

3)      This indicates that a delay of 3 sec between transactions are applied.

This will ensure that the 60th thread or user will be starting the action at 180th sec.

Here this example is selected based on user requirement or to verify performance metrics.

thread-group-values

Jmeter Installation steps

Dear visitors .. please go through the link and support fundraising for Team Tara Pai

Jmeter Installation steps

  1. Download JMeter from (http://jmeter.apache.org/download_jmeter.cgi ) è by clicking the on the “apache-jmeter-2.13_src.zip md5 pgp” link (Binaries or Source)
  2. Extract the contents to a folder from ZIP file.
  3. Open the DOS command prompt (Flow: click on Start menu, Type cmd).
  4. In DOS screen – Navigate to the <JmeterHome>\bin directory.

install-4

  1. Type Jmeter.bat in the above mentioned command prompt.  That will bring the Jmeter application ready for performance testing.

install-5

  1. Or click on Jmeter.bat file listed in <JmeterHome>\bin should bring the application.

install-6

Software testing trends

Software testing trends. Importance of Python programming is increased specially on test automation steam. Also Open source tools like Selenium, JMeter demand is increased in IT companies.

 

Another importance area which testers can learn expertise for future opening is Mobile app testing as the popularity is tremendously increasing.

 

Agile testing and CI tools usage is increased already – most of the complex IT projects are handled using SCRUM methodologies. Script-less automation is another specialization already in place with automation. This uses customized keywords so that both functional and technical team could use and easily relate to functional requirements.

 

In conclusion – Open source tools and Mobile apps are showing good opportunities unless new technologies replace this.

Friday 13th and the fear about it

Friday 13th and the fear about it

Friday 13th fear may be caused due the combo of Friday and the number 13 – both are considered as unlucky due to couple of facts listed below

  1. The superstition belief on 13 number has Biblical origins where 13 people attended the “Last supper” – that time onwards 13 was considered as unlucky number
  2. Jesus was crucified on a Friday. Adam and Eve ate the “Forbidden apple” on Friday.

Digital Marketing and social media

Digital Marketing and social media. Digital Marketing is a way marketing includes digital formats like internet, mobile technologies, display forms etc. The main focus of digital marketing are social medias like Facebook, Twitter, whatsapp etc.

It’s very common the usage of SEO, SEM now a days for the success of any products that are online.

Latest stats show the about 70 percent of US adults are social media users everyday.

Other stars day 150 million people are daily using instgram stories.

This proves the impact of social media in digital marketing.

 

Chicken Philly sandwich

Chicken Philly sandwich

recipeforsandwitch2
Awsone Chicken philly sandwich !!!

Ingredient 1 – marinate boneless skinless chicken in olive oil, black pepper, salt and chilly powder
Ingredient 2 – sliced green pepper, yellow pepper, red pepper, onion & mushroom

– Saute ingredient 1 in olive oil until chicken is fried well. remove ingredient 1 from the pan.
– In the same pan with remaining oil it, shallow fry the ingredient 2.
– add ingredient 1 back to pan and add cheese in it. cook for 2-3 min in low flame.
– serve on to the sandwitch as shown in the above picture.
Disclaimer: Some people will be allergenic to certain food products mentioned above – please use your judgment and consult with health experts before you prepare and consume it. We shall not be responsible for the outcome of any recipe anyone try from this website.

Complete list of recipes – please click on recipes

Trending News as of Jan 12 2017

Trending News as of Jan 12 2017. My most favorite hobby is market research based on what i read from various news media. I focus mainly on new brands of cars, mobile phones, Laptops, software, new deals on various sites etc.. However this information may not be accurate and this is just my views and what I understood. Others would have their on views..:-)

Date: Jan 12-2017

N Chandrasekaran will be taking over as chairman of Tata Sons on February 21, 2017.

Amazon’s apology to Sushma Swaraj regarding the selling Indian flag designed doormats and Amazon removed the product from site.

Date: Jan 11-2017

  1. H1 and L1 Visa news about hiking the minimum wages to $100k is trending news in Indian medias on this week. This news is causing lots concerns on Indian IT professionals living in USA about their Job security as well as IT companies concerns about their margins. Some of the IT majors are already started to make changes to their business model to handle this issues proactovely.

expecting more updates..

2. WhatsApp beta v2.17.6 will be supporting GIF search. this is something i was eagerly looking for. GIF images are light weight files and easy to share and express any flow and is a nice replacement for video clips..:-)

Date: Jan 10-2017.

1. 2018 Odyssey minivan’s modern look is amazing and this fifth generation model would definitely hit market with good responses.. Some of the features I likes are..new safety features, design changes, interior seat flexibilty for second row seats,  better technology to avoid collision, cabin control, more power etc

2. Xiaomi Redmi Note 5

Xiaomi expected to release its Note 5 version in 2017 .. Expected to have resolution 1920×1080 pixels with 2.5d curved IPS and 5.5 inch size..

Rear camera expected to have 16MP with PDAF

Expected processor Snapdragon 652 it’s core

Basic knowledge required to work on QTP/UFT projects

Basic knowledge required to work on QTP/UFT projects

1.    Basic programming knowledge on VB scripting – just to modify the recorded scripts. QTP/UFT allows record/play back, using that application transactions can be recorded and later modified based on requirements. Need to learn usage of functions. Instead of functions, QTP/UFT inbuilt feature “reusable” actions can be used.

2.    Looping and Parameterization – Parameterization is required to change the already recorded data. Basically the user id, password, input values to be entered in the AUT. To repeat a transaction, looping is used. For looping “For-Next” , “Do-while” etc are used

3.    Object Spy & Object Repository– QTP developer can view the run-time/Application object properties and methods of any object in the application. This is helpful during debug mode and find out Dynamic objects. Object Repository is the place where recorded objects are stored by displaying the object properties and values. QTP developer can do some changes on values – using regular expression as an example to handle Dynamic objects.

4.    Import / Export data sheet – This is used for very basic reporting where coding is done to store AUT values, some error validations and input values in QTP datasheet or already imported spreadsheet.

1.       What is action in QTP and what are the types

Action are set of scripts logically divided, which makes the scripts more reusable and understandable. Types of actions are,

1)      Non reusable action – this scripts cannot reused or called to some other scripts.

2)      RE- usable action – this scripts can be reused and called to some other scripts.

2.       What is QTP Repositories and their types

QTP stores objects of the AUT – application under test while recording. Also manually can be added to QTP object repository. Types of object repositories are,

1)      Per action type – which cannot be shared or its local level by usage.

2)      Shared object repository – which can be shared and it is global level by usage.