Apache Jmeter testing bulk static URLs for status 200 OK.

Posted on 2011-10-03
Last Modified: 2012-05-12

Im having a list of URLs (a few hundreds) in a text file. and they dont follow any kind of pattern.

Now I want to paste all these URLs in apache Jmeter and run a test for asserting resopnse code 200 OK.

How can I do this ?
Question by:BToTheAToTheBABA
    LVL 9

    Expert Comment

    It looks to me like Jmeter is a stress-testing system, whereas it looks like you're trying to test specific URL's to make sure they're okay.  Are you wanting to test these URL's on a regular basis?  Are they for the same server (or application) or multiple?

    Author Comment

    Thank you

    They are for different servers and different application.

    I just want to check if they are alive with 200 OK response.

    LVL 9

    Expert Comment

    Are you looking to test them consistently, so you can be alerted when an error occurs?  In that case, I'd suggest a monitoring system like Nagios [].

    Author Comment

    It is similar to nagios but i want it as a desktop app / gadget.
    Bcause the urls to be verified changes quite often. (Changes everyday)
    LVL 9

    Accepted Solution

    Hmm. Well, I'm not sure that Jmeter is up to the task... the documentation I've read seems to indicate that it isn't possible (or at least not easy) to specify a large list of URL's.  It may not be super-simple in Nagios (I haven't used it in years), but I think it would probably be a step in the right direction.

    Personally, I would probably write my own application for it.  A fairly simple PHP page, backed by a text file or database, could be written pretty quickly to add/edit/delete URLs; one page for administration, one for testing said URLs... then just setup a Nagios instance to check the "testing" page, and look for "FAIL".

    Hopefully other experts will be able to chime in with more useful information.

    Author Closing Comment

    Planning to look at Selenium - Web Browser Automation

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
    If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
    Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now