Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: JUntil Test case failure

  1. #1
    Junior Member
    Join Date
    Feb 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default JUntil Test case failure

    I want to learn java coding for specific testcase

    --- Update ---

    import org.junit.After;
    import org.junit.Before;
    import org.junit.Test;
    import static org.hamcrest.Matchers.is;
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertThat;

    import com.cengage.qa.assignment.pages.AwardsGivenPage;
    import com.cengage.qa.assignment.pages.AwardsRewardedPage ;
    import com.cengage.qa.assignment.pages.HomePage;

    public class AwardsReceivedPageTest {

    protected AwardsRewardedPage awardsRewardedPage;
    protected HomePage homePage;
    protected AwardsGivenPage awardsGivenPage;

    @Before
    public void setUp() {
    homePage = new HomePage();
    awardsRewardedPage = homePage.gotoAwardsReceivedPage();
    }

    @After
    public void tearDown() {
    homePage.closeSession();
    }

    @Test
    public void verifyAwardsReceivedPageDisplayed() {
    assertThat(awardsRewardedPage.getTitle(),
    is("Cengage Learning - Awards"));
    }
    I am getting a failure, when i run the junit of "verify awards....." testscript. can you please explain me whats the reason


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: JUntil Test case failure

    Thread moved. Please don't hijack someone else's thread, especially one that is seemingly unrelated to your post.

    I am getting a failure, when i run the junit of "verify awards....." testscript. can you please explain me whats the reason
    Your test case failed. As to why - we can only guess based upon the posted information.

Similar Threads

  1. Else-if statment failure
    By tyb97 in forum What's Wrong With My Code?
    Replies: 6
    Last Post: September 17th, 2011, 08:52 PM
  2. Ho do we select Valid/Interesting values for a test case?
    By subbuchavala in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 11th, 2011, 06:40 PM
  3. [SOLVED] changing datatype failure
    By fartofagony in forum What's Wrong With My Code?
    Replies: 11
    Last Post: September 2nd, 2011, 05:14 PM
  4. Ho do we select Valid/Interesting values for a test case?
    By subbuchavala in forum Java Theory & Questions
    Replies: 2
    Last Post: August 15th, 2011, 11:52 AM
  5. Communications Link Failure
    By aussiemcgr in forum Java Theory & Questions
    Replies: 1
    Last Post: June 14th, 2011, 07:03 PM