Selenium Integration With Jmeter…

Is Jmeter capable of doing Performance testing of an application with Selenium Scripts..?

Answer is yes, this is possible with Jmeter and Selenium Scripts written over in Junit.

  • Jmeter is having set of samplers of doing Different operations. For Integration we have sampler Known as “Junit Request”, this can be used to execute tests written in Junit 3 or junit4 (Selenium)
  • A test Script written junit4 uses Junit annotations, below is the example of the Scripts which is written in Selenium Junit 4

 

For Total Script click on this Link……. Selenium_JunitScript

Once the Scripting is done , Export them as jar files .To export to jar files right click on the project folder -> select Export-> Expand Java folder -> Click on Jar files -> Click next -> select the resources to export -> check the option “Export java source files and resources”-> Choose destination -> finish

Copy the Jar file and paste it in the Junit folder under lib folder of Jmeter. Here is the path in my system “D:\apache-jmeter-2.9\lib\Junit”.

Before proceeding further, Download Selenium Standalone Server at this location “https://code.google.com/p/selenium/downloads/detail?name=selenium-server-standalone-2.39.0.jar

  • Copy the Selenium Standalone server jar file to the lib folder of Jmeter
  • Now open Jmeter, Create a Thread group{right click on testplan-> Select ADD-> Select Thread(users)-> Select Thread Group}
  • Create a “junit Request”{Right click on Thread Group-> Select Add-> Select Sampler-> Select Junit Request}

In the two drop downs (Marked as red) one could be the tests that are created using Junit4 i.e. by extending the Test Case class (Classname)

–          In order to see the tests that are created using Junit annotations, just check the check box “Search for Junit4 annotations” and drop downs would populated accordingly

–          Add the listeners to see the results{Right click on Thread group->Select Add-> Select Listener}

–          Select the test method we want to execute from the “Test Method” drop down and run the test(press Ctrl+R)

–          It will launch the browser and perform the actions as per the test scripts.

–          And finally we can view the results in the listeners. “View result tree in Table” and standard Deviation, Throughput, Mean, Average, Minimum and Maximum time that the samples took to execute could be noted from the “Summary/ Aggregate” reports.

The results are looks like below………    🙂

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1 other subscriber

RSS NetaKsharee

  • Taskara 2015 Telugu Movie DVDscr 300Mb
    Taskara 2015 Telugu Movie DVDscr 300MbMovie Info:Directed by: surya narayanaProduced by: Libra Media And Entertainment LMEMusic By: Kesava KiranWritten by: KiritiStarring: Sampath, Monika Hirmerr, Kireeti Damaraju, Kireeti, Mounika Hirmer And Srinivas GovindRelease dates: 18 December 2015Language of movie: TeluguRating: 4.0/5Taskara is a newly released Telegu movie which has been released this week only. Taskara movie has been directed by surya narayana and here […]
  • Har Har Byomkesh 2015 Full Bengali Movie 700Mb & 300mb Free Download
    Har Har Byomkesh 2015 Full Bengali Movie 700Mb & 300mb Free DownloadMovie Info:Directed by: Arindam SilProduced by: Shrikant Mohta And Mahendra SoniMusic By: Bickram GhoshWritten by: Bandyopadhyay And Sharadindu Starring: Abir Chatterjee, Ritwick Chakraborty, Sohini Sarkar, Nusrat Jahan, Shadab Kamal And Adil Hussain Release dates: 18 December 2015Language of movie: BengaliRating: 4.0/5Har Har Byomkesh is a recently released Bengali movie and Har Har Byomkesh movie […]
  • Har Har Byomkesh 2015 Full Bengali Movie 700Mb & 300mb Free Download
    Har Har Byomkesh 2015 Full Bengali Movie 700Mb & 300mb Free DownloadMovie Info:Directed by: Arindam SilProduced by: Shrikant Mohta And Mahendra SoniMusic By: Bickram GhoshWritten by: Bandyopadhyay And Sharadindu Starring: Abir Chatterjee, Ritwick Chakraborty, Sohini Sarkar, Nusrat Jahan, Shadab Kamal And Adil Hussain Release dates: 18 December 2015Language of movie: BengaliRating: 4.0/5Har Har Byomkesh is a recently released Bengali movie and Har Har Byomkesh movie […]
  • Charlie (2015) Malayalam Movie 700mb Free DVDSCr Download
    Charlie (2015) Malayalam Movie 700mb FreeMovie Info:Directed by: Martin PrakkatProduced by: Joju George, Shebin Backer And Martin PrakkatMusic By: Gopi SundarWritten by: Martin Prakkat And Unni R.Starring: Dulquer Salmaan, Aparna Gopinath, Parvathy, Prithviraj Sukumaran, Chemban Vinod Jose and Nedumudi VenuRelease dates: 18 December 2015Language of movie: MalayalamRating: 4.9/5Charlie is the recently released Malayalam film which has been released this […]
  • Saala Khadoos 2016 Full Hindi Movie 700Mb 300mb Free
    Saala Khadoos 2016 Full Hindi Movie 700Mb 300mb FreeMovie Info:Directed by: Sudha Kongara PrasadProduced by: S. Sashikanth in Tamil and Rajkumar Hirani In HindiWritten by: Sudha Kongara PrasadStarring: R. Madhavan and Ritika SinghRelease dates: 29 January 2016Language of movie: HindiRating: 4.0/5Saala Khadoos movie review Saala Khadoos is a recently released bollywood movie which has been released today only. Saala […]
  • [NetaKsharee] Immediate Need: Product Manager – Eden Prairie, MN – 6+ Months Contract
    The post [NetaKsharee] Immediate Need: Product Manager – Eden Prairie, MN – 6+ Months Contract appeared first on Matrix Placement Services. The post [NetaKsharee] Immediate Need: Product Manager – Eden Prairie, MN – 6+ Months Contract appeared first on Matrix Placement Services. Hi folks, Hope all is well.. Please share your consultant resume to *kkahn@ayrglobal.com […]
  • [NetaKsharee] Windows SCCM Administrator. Denver, CO
    The post [NetaKsharee] Windows SCCM Administrator. Denver, CO appeared first on Matrix Placement Services. The post [NetaKsharee] Windows SCCM Administrator. Denver, CO appeared first on Matrix Placement Services. Hi, Greetings from HYR Global Source! I am Ramesh and working with HYR Global Source Inc. Please go through the below job description and let me know […]
  • [NetaKsharee] Java Big Data Engineer | San Carlos, CA | In person
    The post [NetaKsharee] Java Big Data Engineer | San Carlos, CA | In person appeared first on Matrix Placement Services. The post [NetaKsharee] Java Big Data Engineer | San Carlos, CA | In person appeared first on Matrix Placement Services. *Title: Java Big Data Engineer* *Buy Rate: 6- 7yrs experience ($ 52/hr), 9- 10yrs ($60/hr […]
  • [NetaKsharee] Urgent Requirement :: Network Engineer :: Cleveland, OH :: Need GC and US Citizen Only
    The post [NetaKsharee] Urgent Requirement :: Network Engineer :: Cleveland, OH :: Need GC and US Citizen Only appeared first on Matrix Placement Services. The post [NetaKsharee] Urgent Requirement :: Network Engineer :: Cleveland, OH :: Need GC and US Citizen Only appeared first on Matrix Placement Services. Hi Hope you’re doing great! *Need GC […]
  • [NetaKsharee] Business Analyst w/ Ecommerce & OMS Exp in Columbus, OH
    The post [NetaKsharee] Business Analyst w/ Ecommerce & OMS Exp in Columbus, OH appeared first on Matrix Placement Services. The post [NetaKsharee] Business Analyst w/ Ecommerce & OMS Exp in Columbus, OH appeared first on Matrix Placement Services. Hello, Please share your consultant resume to taherm@usmsystems.com Position: OMS Business Analyst w/ Ecommerce Duration: 6 months […]

Be the first to leave a comment. Don’t be shy.

Join the Discussion

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>