4 Replies Latest reply: Aug 19, 2013 7:46 AM by Fred Lipton RSS

Text not found in error

Fred Lipton

We had a problem with one of the running monitors where the error was "Page doesn't contain text 'My Projects'" but the screenshot that went with the error clearly shows the text 'My Projects' was, in fact, there.  I can understand a one-off but this has occurred 9 times in last 4 days according to the t/a monitor's page.

 

This t/a monitor has been running fine for several weeks and continues to run fine with these exceptions, we made no changes the scripted steps, the error occurred several times over the last few days [so it wasn't likely to be related to the monthly MS patching which occurred early this morning].

 

The IE versions in the players are running IE8 to match our supported browser specs for proper rendering.

 

Anyone else see something like this?

 
  • Re: Text not found in error
    jiri.tomek

    Hello Fred,

    how long is the timeout for text match action? Is there a chance that text does not appear in defined timeframe? Let's say that action timeout is set to default 30 seconds. If text appears after 31 seconds, action fails but before final screenshot is taken, text is there so it's included in the screenshot. Can you try to increase action timeout to see if it helps?

    • Re: Text not found in error
      Fred Lipton

      Hi jiri.tomek;

       

      We had another 'text not found' error occur last evening.  I passed your suggestion along to the t/a script guy.  He inserted a 30 second delay ahead of this step earlier today and we'll be keeping a close eye on it to see if it has the desired effect.  So far, so good.

       

      Thanks...Fred

      • Re: Text not found in error
        jiri.tomek

        Hello Fred,

        you can also just increase timeout of Text Match action instead of adding extra delay before. Delay action can skew durations while increasing action timeout for text match can't.

        • Re: Text not found in error
          Fred Lipton

          Hi Jiri;


          This insertion of a 'delay' prior to the text match does appear to have resolved the false positive.  The Text Match timeout sounds like a better method for the reasons you stated.  We'll try that too and expect the same positive result.  I'll post our findings.


          Thnx!...Fred