junit.framework.AssertionFailedError: Link with text [Delete] found in response.

Atlassian JIRA | Brad Baker [Atlassian] | 10 years ago
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Many of the JIRA func tests use "assertions" to test if a condition is FALSE, catch the exception and then declare that things are OK. Many of the "false" assertions are in the web test helper methods and hence happen over and over again. for example {code} junit.framework.AssertionFailedError: Link with text [Delete] found in response. at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at net.sourceforge.jwebunit.WebTester.assertLinkNotPresentWithText(WebTester.java:627) at net.sourceforge.jwebunit.WebTestCase.assertLinkNotPresentWithText(WebTestCase.java:248) at com.atlassian.jira.webtests.WebTestCaseWrapper.assertLinkNotPresentWithText(WebTestCaseWrapper.java:834) at com.atlassian.jira.webtests.JIRAWebTest.removeAllFieldScreens(JIRAWebTest.java:3605) at com.atlassian.jira.webtests.TestFieldScreens.testFieldScreensOrdering(TestFieldScreens.java:120) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) {code} This means that 1000's of lines of assertion stack traces exceptions are generated during the web tests and hence build logs are inflated. The tests should be tweaked to remove these FALSE POSITIVES.

    Atlassian JIRA | 10 years ago | Brad Baker [Atlassian]
    junit.framework.AssertionFailedError: Link with text [Delete] found in response.
  2. 0

    Intermittent testShellStage failure

    GitHub | 2 years ago | timwr
    junit.framework.AssertionFailedError: MagicToken missing in shell output:
  3. 0

    testCorrectNamesMultiThread fails

    GitHub | 4 years ago | alexnederlof
    junit.framework.AssertionFailedError: Thread 1 ok
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    robotium pressMenuItem or clickOnMenuItem not working

    Stack Overflow | 4 years ago | rocknow
    junit.framework.AssertionFailedError: Text string: 'Disable layers' is not found!
  6. 0

    AssertionFailedError on junit test with Robotium

    Stack Overflow | 4 years ago | k1komans
    junit.framework.AssertionFailedError: Activity named mainActivity can not be returned to

  1. cesarnog 2 times, last 5 months ago
  2. Ábó Szilágyi 5 times, last 11 months ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. junit.framework.AssertionFailedError

    Link with text [Delete] found in response.

    at junit.framework.Assert.fail()
  2. JUnit
    1. junit.framework.Assert.fail(Assert.java:47)
    2. junit.framework.Assert.assertTrue(Assert.java:20)
    2 frames
  3. net.sourceforge.jwebunit
    1. net.sourceforge.jwebunit.WebTester.assertLinkNotPresentWithText(WebTester.java:627)
    2. net.sourceforge.jwebunit.WebTestCase.assertLinkNotPresentWithText(WebTestCase.java:248)
    2 frames
  4. com.atlassian.jira
    1. com.atlassian.jira.webtests.WebTestCaseWrapper.assertLinkNotPresentWithText(WebTestCaseWrapper.java:834)
    2. com.atlassian.jira.webtests.JIRAWebTest.removeAllFieldScreens(JIRAWebTest.java:3605)
    3. com.atlassian.jira.webtests.TestFieldScreens.testFieldScreensOrdering(TestFieldScreens.java:120)
    3 frames
  5. Java RT
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:324)
    4 frames