Ad Widget

Collapse

Required not working in web scenario step

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • samwise
    Junior Member
    • Feb 2007
    • 19

    #1

    Required not working in web scenario step

    We're trying to test for the existence of a string on a page - we're not getting a match. The documentation shows you simply enter the string - "Homepage of ZABBIX" is the example. Any tips??

    Thanks
    Sam
  • samwise
    Junior Member
    • Feb 2007
    • 19

    #2
    If I was not clear - this is the feature that uses regular expressions to find something on the webpage.

    Comment

    • samwise
      Junior Member
      • Feb 2007
      • 19

      #3
      I added some steps to my scenario that check zabbix.com and google.com - those checks work. Here is the page I am trying to check for "City of Springfield". Is it due to the frames?


      <SCRIPT Language="Javascript" type="text/Javascript">
      <!--
      if (self != top) top.location.replace(self.location); //FrameBuster
      //-->
      </SCRIPT>
      <HTML>
      <HEAD>
      <TITLE>City of Springfield Utilities Login</TITLE>
      </HEAD>
      <FRAMESET ROWS="120,*" frameborder="0" framespacing="0" border="false">
      <FRAME SRC="https://utilities.cityofspringfield.org/uti-img/springfield_header.asp" NAME="Header" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="NO" NORESIZE>
      <FRAMESET COLS="170,*" frameborder="0" framespacing="0" border="false">
      <FRAME SRC="p_uwgptbar?page_name=UWGPDYNA" NAME="left frame" MARGINWIDTH="0" MARGINHEIGHT="0" NORESIZE>
      <FRAME SRC="p_UWGPDYNA" NAME="main" MARGINWIDTH="0" MARGINHEIGHT="0">
      </FRAMESET>
      </FRAMESET>
      </HTML>

      Comment

      • samwise
        Junior Member
        • Feb 2007
        • 19

        #4
        fixed.

        the page was doing a foward - doh.

        Comment

        • skogan
          Member
          • Nov 2007
          • 70

          #5
          If you'll be using regexes in scenarios, you will probably come across a regex bug

          The patch is here: http://www.zabbix.com/forum/showthread.php?t=8888

          Comment

          Working...