Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14408

WizardTest#testCreateApplication and WizardTest#testGoBackToFirstStep are flickering

    XMLWordPrintable

Details

    • N/A
    • N/A
    • org.xwiki.test.ui.appwithinminutes.WizardTest#testCreateApplication|org.xwiki.test.ui.appwithinminutes.WizardTest#testGoBackToFirstStep

    Description

      This test creates App Within Minutes applications using random names that can contain special characters. These special characters can break the xpath selectors we use in the test page objects if we don't do proper escaping. I've fixed some of them but there are a few remaining, such as:

      InvalidSelectorError: Unable to locate an element with the xpath expression //td[contains(@class, 'doc_space')]/a[. = 'WizardTest » testCreateApplication » +K#:$^h&7''â'] because of the following error:
      SyntaxError: The expression is not a legal expression.
      ...
      at org.xwiki.appwithinminutes.test.po.ApplicationsLiveTableElement.viewApplication(ApplicationsLiveTableElement.java:75)
      at org.xwiki.test.ui.appwithinminutes.WizardTest.testCreateApplication(WizardTest.java:236)
      

      The special characters can also generate the following stack trace:

      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - java.lang.IllegalArgumentException: Missing End Delimiter
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.apache.commons.beanutils.expression.DefaultResolver.getIndex(DefaultResolver.java:90)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:911)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:821)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:431)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:473)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:823)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:194)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.server.Server.handle(Server.java:499)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      12:11:24.757 [Thread-5] ERROR o.x.t.i.XWikiLogOutputStream - 	at java.lang.Thread.run(Thread.java:745)
      

      Attachments

        Issue Links

          Activity

            People

              enygma Eduard Moraru
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: