Results 1 to 4 of 4
  1. #1
    lee33 is offline Member
    Join Date
    Jun 2015
    Rep Power

    Default Testing a Website

    How do I go about testing if a webpage directs me to the correct site using TestNG or Junit?

    For example, suppose I am on the facebook webpage and when I type in my username and password I want to test that it directs me to the create webpage and doesn't redirect me to a different webpage or to test to see if the webpage is designed differently than what I wanted, etc.

    I know that this will be exception handling but I am wondering the specific code/structure.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: Testing a Website

    You didn't bother to reply to gimbal2 and jim829's responses on your earlier thread. Not the best way to continue to get help on a forum, that.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Rep Power

    Default Re: Testing a Website

    " Don't abandon Selenium", would be my response to this. JUnit and TestNG are not designed to do these kind of tests.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  4. #4
    trcooke is offline Tim Cooke
    Join Date
    Jul 2014
    Rep Power

    Default Re: Testing a Website

    I would recommend Geb for web driven testing. We have gained considerable mileage with in on the project I work on at work.

Similar Threads

  1. Whitebox testing and testing tables, help please
    By Stefano in forum New To Java
    Replies: 2
    Last Post: 02-07-2013, 05:02 AM
  2. Junit testing, testing list<e> interface
    By mackavelirip in forum New To Java
    Replies: 0
    Last Post: 10-05-2011, 06:08 AM
  3. Replies: 4
    Last Post: 07-02-2011, 03:28 AM
  4. How to download website (Get all link in website)
    By finalmem in forum Advanced Java
    Replies: 0
    Last Post: 11-12-2008, 08:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts